mastercard_spendcontrols 1.0.2 → 1.0.3
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/spendcontrols/alertall.rb +12 -12
- data/lib/mastercard/api/spendcontrols/alerts.rb +12 -12
- data/lib/mastercard/api/spendcontrols/amount.rb +12 -12
- data/lib/mastercard/api/spendcontrols/amountdecline.rb +12 -12
- data/lib/mastercard/api/spendcontrols/batch.rb +116 -0
- data/lib/mastercard/api/spendcontrols/budgetalert.rb +104 -0
- data/lib/mastercard/api/spendcontrols/budgetalertwithbudgetid.rb +160 -0
- data/lib/mastercard/api/spendcontrols/budgetdecline.rb +104 -0
- data/lib/mastercard/api/spendcontrols/budgetdeclinewithbudgetid.rb +160 -0
- data/lib/mastercard/api/spendcontrols/card.rb +44 -14
- data/lib/mastercard/api/spendcontrols/channel.rb +12 -12
- data/lib/mastercard/api/spendcontrols/channeldecline.rb +12 -12
- data/lib/mastercard/api/spendcontrols/combinationctrlsalertresource.rb +104 -0
- data/lib/mastercard/api/spendcontrols/combinationctrlsalertresourcefilterid.rb +160 -0
- data/lib/mastercard/api/spendcontrols/combinationctrlsdeclineresource.rb +86 -0
- data/lib/mastercard/api/spendcontrols/combinationctrlsdeclineresourcefilterid.rb +160 -0
- data/lib/mastercard/api/spendcontrols/combinationctrlsdeclinesresource.rb +87 -0
- data/lib/mastercard/api/spendcontrols/controls.rb +12 -12
- data/lib/mastercard/api/spendcontrols/controlshistory.rb +7 -7
- data/lib/mastercard/api/spendcontrols/crossborder.rb +12 -12
- data/lib/mastercard/api/spendcontrols/crossborderdecline.rb +12 -12
- data/lib/mastercard/api/spendcontrols/declineall.rb +12 -12
- data/lib/mastercard/api/spendcontrols/declines.rb +12 -12
- data/lib/mastercard/api/spendcontrols/geolocationalert.rb +12 -12
- data/lib/mastercard/api/spendcontrols/geolocationdecline.rb +12 -12
- data/lib/mastercard/api/spendcontrols/merchantcategorycodealert.rb +12 -12
- data/lib/mastercard/api/spendcontrols/merchantcategorycodedecline.rb +12 -12
- data/lib/mastercard/api/spendcontrols/notification.rb +7 -7
- data/lib/mastercard/api/spendcontrols/resourceconfig.rb +6 -1
- data/lib/mastercard/api/spendcontrols/txnhistory.rb +7 -7
- data/lib/mastercard/api/spendcontrols/verify.rb +7 -7
- data/lib/mastercard_spendcontrols.rb +10 -0
- metadata +12 -2
@@ -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 Spendcontrols
|
35
|
+
class Budgetdecline < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'1d228076-8d5f-406e-bc95-6a478b20ddae' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/budgets", "query", [], []),
|
41
|
+
'0f24c74b-d563-4cc4-96a6-0adf0b5dff81' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/budgets", "create", [], []),
|
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())
|
56
|
+
end
|
57
|
+
|
58
|
+
public
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
def self.query(criteria)
|
67
|
+
#
|
68
|
+
#Query objects of type Budgetdecline by id and optional criteria
|
69
|
+
#@param [Dict] criteria
|
70
|
+
#@return [Budgetdecline] object representing the response.
|
71
|
+
#@raise [APIException] an exception from the response status
|
72
|
+
#
|
73
|
+
|
74
|
+
return self.execute("1d228076-8d5f-406e-bc95-6a478b20ddae",Budgetdecline.new(criteria))
|
75
|
+
end
|
76
|
+
|
77
|
+
|
78
|
+
def self.create(mapObj)
|
79
|
+
#
|
80
|
+
#Creates object of type Budgetdecline
|
81
|
+
#
|
82
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
83
|
+
#@return [Budgetdecline] of the response of created instance.
|
84
|
+
#@raise [APIException] an exception from the response status
|
85
|
+
return self.execute("0f24c74b-d563-4cc4-96a6-0adf0b5dff81", Budgetdecline.new(mapObj))
|
86
|
+
end
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
@@ -0,0 +1,160 @@
|
|
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 Spendcontrols
|
35
|
+
class BudgetdeclinewithbudgetId < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'd4d4a9ec-2e3e-4b1a-9ea4-cd8d99611cba' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/budgets/{budgetId}", "delete", [], []),
|
41
|
+
'bb172a21-d408-4cdc-ab11-6bf6df9300ce' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/budgets/{budgetId}", "read", [], []),
|
42
|
+
'1dbc08e4-7d78-43fd-b2bc-8d9e4423fae2' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/budgets/{budgetId}", "create", [], []),
|
43
|
+
|
44
|
+
}
|
45
|
+
|
46
|
+
protected
|
47
|
+
|
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
|
+
|
55
|
+
def self.getOperationMetadata()
|
56
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
57
|
+
end
|
58
|
+
|
59
|
+
public
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
def self.deleteById(id, map = nil)
|
66
|
+
#Delete object of type BudgetdeclinewithbudgetId by id
|
67
|
+
|
68
|
+
#@param [String] id
|
69
|
+
#@param [Dict] map, containing additional parameters
|
70
|
+
#@return [BudgetdeclinewithbudgetId] of the response of the deleted instance.
|
71
|
+
#@raise [APIException] an exception from the response status
|
72
|
+
|
73
|
+
|
74
|
+
mapObj = BudgetdeclinewithbudgetId.new
|
75
|
+
if !(id.nil? || id.to_s.empty?)
|
76
|
+
mapObj.set("id", id)
|
77
|
+
end
|
78
|
+
if !map.nil?
|
79
|
+
if map.instance_of? RequestMap
|
80
|
+
mapObj.setAll(map.getObject())
|
81
|
+
else
|
82
|
+
mapObj.setAll(map)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
return self.execute("d4d4a9ec-2e3e-4b1a-9ea4-cd8d99611cba", mapObj)
|
87
|
+
end
|
88
|
+
|
89
|
+
|
90
|
+
def delete
|
91
|
+
#
|
92
|
+
#Delete object of type BudgetdeclinewithbudgetId
|
93
|
+
|
94
|
+
#@param [String] id
|
95
|
+
#@return [BudgetdeclinewithbudgetId] of the response of the deleted instance.
|
96
|
+
#@raise [APIException] an exception from the response status
|
97
|
+
#
|
98
|
+
|
99
|
+
return self.class.execute("d4d4a9ec-2e3e-4b1a-9ea4-cd8d99611cba", self)
|
100
|
+
end
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
def self.read(id, criteria = nil)
|
110
|
+
#
|
111
|
+
#Returns objects of type BudgetdeclinewithbudgetId by id and optional criteria
|
112
|
+
#@param [String] id
|
113
|
+
#@param [Dict] criteria
|
114
|
+
#@return [BudgetdeclinewithbudgetId] object representing the response
|
115
|
+
#@raise [APIException] an exception from the response status
|
116
|
+
|
117
|
+
mapObj = BudgetdeclinewithbudgetId.new
|
118
|
+
if !(id.nil? || id.to_s.empty?)
|
119
|
+
mapObj.set("id", id)
|
120
|
+
end
|
121
|
+
if !criteria.nil?
|
122
|
+
if criteria.instance_of? RequestMap
|
123
|
+
mapObj.setAll(criteria.getObject())
|
124
|
+
else
|
125
|
+
mapObj.setAll(criteria)
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
return self.execute("bb172a21-d408-4cdc-ab11-6bf6df9300ce",BudgetdeclinewithbudgetId.new(mapObj))
|
130
|
+
end
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
def self.create(mapObj)
|
135
|
+
#
|
136
|
+
#Creates object of type BudgetdeclinewithbudgetId
|
137
|
+
#
|
138
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
139
|
+
#@return [BudgetdeclinewithbudgetId] of the response of created instance.
|
140
|
+
#@raise [APIException] an exception from the response status
|
141
|
+
return self.execute("1dbc08e4-7d78-43fd-b2bc-8d9e4423fae2", BudgetdeclinewithbudgetId.new(mapObj))
|
142
|
+
end
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
@@ -37,24 +37,25 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
43
|
-
'
|
40
|
+
'5b858ec8-b61b-4110-bcb1-613c3357ac23' => OperationConfig.new("/issuer/spendcontrols/v1/card", "create", [], []),
|
41
|
+
'8e8f3624-84e4-4d95-b071-cb614ece4201' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}", "read", [], []),
|
42
|
+
'243b1d4c-4046-4a79-b772-a3295cb43e7a' => OperationConfig.new("/issuer/spendcontrols/v1/card/uuid", "create", [], []),
|
43
|
+
'f0ca6c96-88d9-4cd7-9961-bdac05355b15' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}", "delete", [], []),
|
44
|
+
'b199127d-a857-4f4c-b4ae-4a65a79bc2c6' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}", "create", [], []),
|
44
45
|
|
45
46
|
}
|
46
47
|
|
47
48
|
protected
|
48
49
|
|
49
|
-
def self.getOperationConfig(
|
50
|
-
if @__store.key?(
|
51
|
-
return @__store[
|
50
|
+
def self.getOperationConfig(operationUUID)
|
51
|
+
if @__store.key?(operationUUID)
|
52
|
+
return @__store[operationUUID]
|
52
53
|
end
|
53
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
54
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
54
55
|
end
|
55
56
|
|
56
57
|
def self.getOperationMetadata()
|
57
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
58
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
58
59
|
end
|
59
60
|
|
60
61
|
public
|
@@ -67,7 +68,7 @@ module MasterCard
|
|
67
68
|
#@param Dict mapObj, containing the required parameters to create a new object
|
68
69
|
#@return [Card] of the response of created instance.
|
69
70
|
#@raise [APIException] an exception from the response status
|
70
|
-
return self.execute("
|
71
|
+
return self.execute("5b858ec8-b61b-4110-bcb1-613c3357ac23", Card.new(mapObj))
|
71
72
|
end
|
72
73
|
|
73
74
|
|
@@ -76,6 +77,35 @@ module MasterCard
|
|
76
77
|
|
77
78
|
|
78
79
|
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
def self.retrievePan(id, criteria = nil)
|
85
|
+
#
|
86
|
+
#Returns objects of type Card by id and optional criteria
|
87
|
+
#@param [String] id
|
88
|
+
#@param [Dict] criteria
|
89
|
+
#@return [Card] object representing the response
|
90
|
+
#@raise [APIException] an exception from the response status
|
91
|
+
|
92
|
+
mapObj = Card.new
|
93
|
+
if !(id.nil? || id.to_s.empty?)
|
94
|
+
mapObj.set("id", id)
|
95
|
+
end
|
96
|
+
if !criteria.nil?
|
97
|
+
if criteria.instance_of? RequestMap
|
98
|
+
mapObj.setAll(criteria.getObject())
|
99
|
+
else
|
100
|
+
mapObj.setAll(criteria)
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
return self.execute("8e8f3624-84e4-4d95-b071-cb614ece4201",Card.new(mapObj))
|
105
|
+
end
|
106
|
+
|
107
|
+
|
108
|
+
|
79
109
|
def self.read(mapObj)
|
80
110
|
#
|
81
111
|
#Creates object of type Card
|
@@ -83,7 +113,7 @@ module MasterCard
|
|
83
113
|
#@param Dict mapObj, containing the required parameters to create a new object
|
84
114
|
#@return [Card] of the response of created instance.
|
85
115
|
#@raise [APIException] an exception from the response status
|
86
|
-
return self.execute("
|
116
|
+
return self.execute("243b1d4c-4046-4a79-b772-a3295cb43e7a", Card.new(mapObj))
|
87
117
|
end
|
88
118
|
|
89
119
|
|
@@ -116,7 +146,7 @@ module MasterCard
|
|
116
146
|
end
|
117
147
|
end
|
118
148
|
|
119
|
-
return self.execute("
|
149
|
+
return self.execute("f0ca6c96-88d9-4cd7-9961-bdac05355b15", mapObj)
|
120
150
|
end
|
121
151
|
|
122
152
|
|
@@ -129,7 +159,7 @@ module MasterCard
|
|
129
159
|
#@raise [APIException] an exception from the response status
|
130
160
|
#
|
131
161
|
|
132
|
-
return self.class.execute("
|
162
|
+
return self.class.execute("f0ca6c96-88d9-4cd7-9961-bdac05355b15", self)
|
133
163
|
end
|
134
164
|
|
135
165
|
|
@@ -142,7 +172,7 @@ module MasterCard
|
|
142
172
|
#@param Dict mapObj, containing the required parameters to create a new object
|
143
173
|
#@return [Card] of the response of created instance.
|
144
174
|
#@raise [APIException] an exception from the response status
|
145
|
-
return self.execute("
|
175
|
+
return self.execute("b199127d-a857-4f4c-b4ae-4a65a79bc2c6", Card.new(mapObj))
|
146
176
|
end
|
147
177
|
|
148
178
|
|
@@ -37,23 +37,23 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'316d7bfa-44de-4c76-9a24-58ea9c42a5d6' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/channels", "delete", [], []),
|
41
|
+
'cff87464-d3e7-48a6-9604-2f11993b396d' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/channels", "query", [], []),
|
42
|
+
'd03ed8e3-0528-46b8-b627-09d861e1daa0' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/channels", "create", [], []),
|
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())
|
56
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
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("316d7bfa-44de-4c76-9a24-58ea9c42a5d6", 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("316d7bfa-44de-4c76-9a24-58ea9c42a5d6", 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("cff87464-d3e7-48a6-9604-2f11993b396d",Channel.new(criteria))
|
119
119
|
end
|
120
120
|
|
121
121
|
|
@@ -126,7 +126,7 @@ module MasterCard
|
|
126
126
|
#@param Dict mapObj, containing the required parameters to create a new object
|
127
127
|
#@return [Channel] of the response of created instance.
|
128
128
|
#@raise [APIException] an exception from the response status
|
129
|
-
return self.execute("
|
129
|
+
return self.execute("d03ed8e3-0528-46b8-b627-09d861e1daa0", Channel.new(mapObj))
|
130
130
|
end
|
131
131
|
|
132
132
|
|
@@ -37,23 +37,23 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'4dbf24c4-8122-498c-a18a-da6b28828d7c' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/channels", "delete", [], []),
|
41
|
+
'72e801a7-d589-425b-a068-d9d2b285c38b' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/channels", "query", [], []),
|
42
|
+
'eda6ccdf-50ef-4185-8110-7c28be074dae' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/channels", "create", [], []),
|
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())
|
56
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
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("4dbf24c4-8122-498c-a18a-da6b28828d7c", 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("4dbf24c4-8122-498c-a18a-da6b28828d7c", 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("72e801a7-d589-425b-a068-d9d2b285c38b",Channeldecline.new(criteria))
|
119
119
|
end
|
120
120
|
|
121
121
|
|
@@ -126,7 +126,7 @@ module MasterCard
|
|
126
126
|
#@param Dict mapObj, containing the required parameters to create a new object
|
127
127
|
#@return [Channeldecline] of the response of created instance.
|
128
128
|
#@raise [APIException] an exception from the response status
|
129
|
-
return self.execute("
|
129
|
+
return self.execute("eda6ccdf-50ef-4185-8110-7c28be074dae", Channeldecline.new(mapObj))
|
130
130
|
end
|
131
131
|
|
132
132
|
|
@@ -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 Spendcontrols
|
35
|
+
class Combinationctrlsalertresource < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'c344898b-3159-4f1c-bd2a-9f7a3f79d269' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/filters", "query", [], []),
|
41
|
+
'0488283f-61e0-4064-81c9-da163ddf9a4e' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/filters", "create", [], []),
|
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())
|
56
|
+
end
|
57
|
+
|
58
|
+
public
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
def self.query(criteria)
|
67
|
+
#
|
68
|
+
#Query objects of type Combinationctrlsalertresource by id and optional criteria
|
69
|
+
#@param [Dict] criteria
|
70
|
+
#@return [Combinationctrlsalertresource] object representing the response.
|
71
|
+
#@raise [APIException] an exception from the response status
|
72
|
+
#
|
73
|
+
|
74
|
+
return self.execute("c344898b-3159-4f1c-bd2a-9f7a3f79d269",Combinationctrlsalertresource.new(criteria))
|
75
|
+
end
|
76
|
+
|
77
|
+
|
78
|
+
def self.create(mapObj)
|
79
|
+
#
|
80
|
+
#Creates object of type Combinationctrlsalertresource
|
81
|
+
#
|
82
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
83
|
+
#@return [Combinationctrlsalertresource] of the response of created instance.
|
84
|
+
#@raise [APIException] an exception from the response status
|
85
|
+
return self.execute("0488283f-61e0-4064-81c9-da163ddf9a4e", Combinationctrlsalertresource.new(mapObj))
|
86
|
+
end
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|