mastercard_spendalerts 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/mastercard/api/spendalerts/alerts.rb +140 -0
- data/lib/mastercard/api/spendalerts/amount.rb +140 -0
- data/lib/mastercard/api/spendalerts/card.rb +140 -0
- data/lib/mastercard/api/spendalerts/carddisable.rb +140 -0
- data/lib/mastercard/api/spendalerts/channel.rb +140 -0
- data/lib/mastercard/api/spendalerts/controls.rb +140 -0
- data/lib/mastercard/api/spendalerts/crossborder.rb +140 -0
- data/lib/mastercard/api/spendalerts/declines.rb +140 -0
- data/lib/mastercard/api/spendalerts/skdconfig.rb +50 -0
- data/lib/mastercard/api/spendalerts/verify.rb +83 -0
- data/lib/mastercard_spendalerts.rb +11 -0
- metadata +89 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c65d4ca41e299e7df938e4c55366b0f3e1a3328d
|
4
|
+
data.tar.gz: cc2afe5dbd4e724b0ed17b268f76ddf15f355372
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f0c5a9b833b4c1eb49f342f40cad6176bfa605d682ef3d11db155b58071e42255d6e31eb7faebbc746d8b30313f9228f780d0ab497e42379092db0ebc4e30fbc
|
7
|
+
data.tar.gz: 334d13d6a741b6f11c3c64ba3645a5fb7b98c2b7998bd92545cf8d137e4c2365acb0ce8af896dcc3cd4ce0533850e7ddc1d418fb2b6ed8e32179152f00cbfbd7
|
@@ -0,0 +1,140 @@
|
|
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
|
+
|
31
|
+
module MasterCard
|
32
|
+
module API
|
33
|
+
module Spendalerts
|
34
|
+
class Alerts < MasterCard::Core::Model::BaseObject
|
35
|
+
include MasterCard::Core::Model
|
36
|
+
#
|
37
|
+
|
38
|
+
@__store = {
|
39
|
+
'bd46aee9-cf02-478e-9ae1-aed8578078bf' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts", "query", [], []),
|
40
|
+
'69b07938-54af-452e-8d28-2ffb9ca9aec1' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts", "create", [], []),
|
41
|
+
'1ce3ca58-0bc0-4db8-9393-5521ca051198' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts", "delete", [], []),
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
protected
|
46
|
+
|
47
|
+
def self.getOperationConfig(uuid)
|
48
|
+
if @__store.key?(uuid)
|
49
|
+
return @__store[uuid]
|
50
|
+
end
|
51
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.getOperationMetadata()
|
55
|
+
return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
|
56
|
+
end
|
57
|
+
|
58
|
+
public
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
def self.query(criteria)
|
66
|
+
#
|
67
|
+
#Query objects of type Alerts by id and optional criteria
|
68
|
+
#@param type criteria
|
69
|
+
#@return Alerts object representing the response.
|
70
|
+
#
|
71
|
+
|
72
|
+
return self.execute("bd46aee9-cf02-478e-9ae1-aed8578078bf",Alerts.new(criteria))
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.create(mapObj)
|
76
|
+
#
|
77
|
+
#Creates object of type Alerts
|
78
|
+
#
|
79
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
80
|
+
#@return Alerts of the response of created instance.
|
81
|
+
#
|
82
|
+
return self.execute("69b07938-54af-452e-8d28-2ffb9ca9aec1", Alerts.new(mapObj))
|
83
|
+
end
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
def self.deleteById(id, map = nil)
|
94
|
+
#Delete object of type Alerts by id
|
95
|
+
|
96
|
+
#@param str id
|
97
|
+
#@param Dict map, containing additional parameters
|
98
|
+
#@return Alerts of the response of the deleted instance.
|
99
|
+
|
100
|
+
|
101
|
+
mapObj = Alerts.new
|
102
|
+
if !(id.nil? || id.to_s.empty?)
|
103
|
+
mapObj.set("id", id)
|
104
|
+
end
|
105
|
+
if !map.nil?
|
106
|
+
if map.instance_of? RequestMap
|
107
|
+
mapObj.setAll(map.getObject())
|
108
|
+
else
|
109
|
+
mapObj.setAll(map)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
return self.execute("1ce3ca58-0bc0-4db8-9393-5521ca051198", mapObj)
|
114
|
+
end
|
115
|
+
|
116
|
+
|
117
|
+
def delete
|
118
|
+
#
|
119
|
+
#Delete object of type Alerts
|
120
|
+
|
121
|
+
#@param str id
|
122
|
+
#@return Alerts of the response of the deleted instance.
|
123
|
+
#
|
124
|
+
|
125
|
+
return self.class.execute("1ce3ca58-0bc0-4db8-9393-5521ca051198", self)
|
126
|
+
end
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
@@ -0,0 +1,140 @@
|
|
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
|
+
|
31
|
+
module MasterCard
|
32
|
+
module API
|
33
|
+
module Spendalerts
|
34
|
+
class Amount < MasterCard::Core::Model::BaseObject
|
35
|
+
include MasterCard::Core::Model
|
36
|
+
#
|
37
|
+
|
38
|
+
@__store = {
|
39
|
+
'b535df10-7629-4dbd-a1c3-8eb7c7d888be' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/transactionamount", "query", [], []),
|
40
|
+
'84ed20a2-41b5-44d9-9962-bc2dc7a59920' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/transactionamount", "create", [], []),
|
41
|
+
'85938e99-920f-4745-bbcc-40fca423405a' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/transactionamount", "delete", [], []),
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
protected
|
46
|
+
|
47
|
+
def self.getOperationConfig(uuid)
|
48
|
+
if @__store.key?(uuid)
|
49
|
+
return @__store[uuid]
|
50
|
+
end
|
51
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.getOperationMetadata()
|
55
|
+
return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
|
56
|
+
end
|
57
|
+
|
58
|
+
public
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
def self.query(criteria)
|
66
|
+
#
|
67
|
+
#Query objects of type Amount by id and optional criteria
|
68
|
+
#@param type criteria
|
69
|
+
#@return Amount object representing the response.
|
70
|
+
#
|
71
|
+
|
72
|
+
return self.execute("b535df10-7629-4dbd-a1c3-8eb7c7d888be",Amount.new(criteria))
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.create(mapObj)
|
76
|
+
#
|
77
|
+
#Creates object of type Amount
|
78
|
+
#
|
79
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
80
|
+
#@return Amount of the response of created instance.
|
81
|
+
#
|
82
|
+
return self.execute("84ed20a2-41b5-44d9-9962-bc2dc7a59920", Amount.new(mapObj))
|
83
|
+
end
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
def self.deleteById(id, map = nil)
|
94
|
+
#Delete object of type Amount by id
|
95
|
+
|
96
|
+
#@param str id
|
97
|
+
#@param Dict map, containing additional parameters
|
98
|
+
#@return Amount of the response of the deleted instance.
|
99
|
+
|
100
|
+
|
101
|
+
mapObj = Amount.new
|
102
|
+
if !(id.nil? || id.to_s.empty?)
|
103
|
+
mapObj.set("id", id)
|
104
|
+
end
|
105
|
+
if !map.nil?
|
106
|
+
if map.instance_of? RequestMap
|
107
|
+
mapObj.setAll(map.getObject())
|
108
|
+
else
|
109
|
+
mapObj.setAll(map)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
return self.execute("85938e99-920f-4745-bbcc-40fca423405a", mapObj)
|
114
|
+
end
|
115
|
+
|
116
|
+
|
117
|
+
def delete
|
118
|
+
#
|
119
|
+
#Delete object of type Amount
|
120
|
+
|
121
|
+
#@param str id
|
122
|
+
#@return Amount of the response of the deleted instance.
|
123
|
+
#
|
124
|
+
|
125
|
+
return self.class.execute("85938e99-920f-4745-bbcc-40fca423405a", self)
|
126
|
+
end
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
@@ -0,0 +1,140 @@
|
|
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
|
+
|
31
|
+
module MasterCard
|
32
|
+
module API
|
33
|
+
module Spendalerts
|
34
|
+
class Card < MasterCard::Core::Model::BaseObject
|
35
|
+
include MasterCard::Core::Model
|
36
|
+
#
|
37
|
+
|
38
|
+
@__store = {
|
39
|
+
'918f0882-175c-4642-a28b-05bd31d9ee83' => OperationConfig.new("/issuer/v1/card", "create", [], []),
|
40
|
+
'd93e1104-7d82-4436-8fa5-d022479b6fa4' => OperationConfig.new("/issuer/v1/card/{uuid}", "create", [], []),
|
41
|
+
'1a6ac9f5-255b-4216-bbf7-78f667fd6c01' => OperationConfig.new("/issuer/v1/card/{uuid}", "delete", [], []),
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
protected
|
46
|
+
|
47
|
+
def self.getOperationConfig(uuid)
|
48
|
+
if @__store.key?(uuid)
|
49
|
+
return @__store[uuid]
|
50
|
+
end
|
51
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.getOperationMetadata()
|
55
|
+
return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
|
56
|
+
end
|
57
|
+
|
58
|
+
public
|
59
|
+
|
60
|
+
def self.create(mapObj)
|
61
|
+
#
|
62
|
+
#Creates object of type Card
|
63
|
+
#
|
64
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
65
|
+
#@return Card of the response of created instance.
|
66
|
+
#
|
67
|
+
return self.execute("918f0882-175c-4642-a28b-05bd31d9ee83", Card.new(mapObj))
|
68
|
+
end
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
def self.update(mapObj)
|
76
|
+
#
|
77
|
+
#Creates object of type Card
|
78
|
+
#
|
79
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
80
|
+
#@return Card of the response of created instance.
|
81
|
+
#
|
82
|
+
return self.execute("d93e1104-7d82-4436-8fa5-d022479b6fa4", Card.new(mapObj))
|
83
|
+
end
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
def self.deleteById(id, map = nil)
|
94
|
+
#Delete object of type Card by id
|
95
|
+
|
96
|
+
#@param str id
|
97
|
+
#@param Dict map, containing additional parameters
|
98
|
+
#@return Card of the response of the deleted instance.
|
99
|
+
|
100
|
+
|
101
|
+
mapObj = Card.new
|
102
|
+
if !(id.nil? || id.to_s.empty?)
|
103
|
+
mapObj.set("id", id)
|
104
|
+
end
|
105
|
+
if !map.nil?
|
106
|
+
if map.instance_of? RequestMap
|
107
|
+
mapObj.setAll(map.getObject())
|
108
|
+
else
|
109
|
+
mapObj.setAll(map)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
return self.execute("1a6ac9f5-255b-4216-bbf7-78f667fd6c01", mapObj)
|
114
|
+
end
|
115
|
+
|
116
|
+
|
117
|
+
def delete
|
118
|
+
#
|
119
|
+
#Delete object of type Card
|
120
|
+
|
121
|
+
#@param str id
|
122
|
+
#@return Card of the response of the deleted instance.
|
123
|
+
#
|
124
|
+
|
125
|
+
return self.class.execute("1a6ac9f5-255b-4216-bbf7-78f667fd6c01", self)
|
126
|
+
end
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
@@ -0,0 +1,140 @@
|
|
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
|
+
|
31
|
+
module MasterCard
|
32
|
+
module API
|
33
|
+
module Spendalerts
|
34
|
+
class Carddisable < MasterCard::Core::Model::BaseObject
|
35
|
+
include MasterCard::Core::Model
|
36
|
+
#
|
37
|
+
|
38
|
+
@__store = {
|
39
|
+
'bee30387-3b75-4213-9763-fd23a0808220' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines/carddisable", "query", [], []),
|
40
|
+
'd1760213-b036-4815-a2cc-3966c21d11d6' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines/carddisable", "create", [], []),
|
41
|
+
'342a8aa9-ee72-4a96-88a1-b721a2636321' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines/carddisable", "delete", [], []),
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
protected
|
46
|
+
|
47
|
+
def self.getOperationConfig(uuid)
|
48
|
+
if @__store.key?(uuid)
|
49
|
+
return @__store[uuid]
|
50
|
+
end
|
51
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.getOperationMetadata()
|
55
|
+
return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
|
56
|
+
end
|
57
|
+
|
58
|
+
public
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
def self.query(criteria)
|
66
|
+
#
|
67
|
+
#Query objects of type Carddisable by id and optional criteria
|
68
|
+
#@param type criteria
|
69
|
+
#@return Carddisable object representing the response.
|
70
|
+
#
|
71
|
+
|
72
|
+
return self.execute("bee30387-3b75-4213-9763-fd23a0808220",Carddisable.new(criteria))
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.create(mapObj)
|
76
|
+
#
|
77
|
+
#Creates object of type Carddisable
|
78
|
+
#
|
79
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
80
|
+
#@return Carddisable of the response of created instance.
|
81
|
+
#
|
82
|
+
return self.execute("d1760213-b036-4815-a2cc-3966c21d11d6", Carddisable.new(mapObj))
|
83
|
+
end
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
def self.deleteById(id, map = nil)
|
94
|
+
#Delete object of type Carddisable by id
|
95
|
+
|
96
|
+
#@param str id
|
97
|
+
#@param Dict map, containing additional parameters
|
98
|
+
#@return Carddisable of the response of the deleted instance.
|
99
|
+
|
100
|
+
|
101
|
+
mapObj = Carddisable.new
|
102
|
+
if !(id.nil? || id.to_s.empty?)
|
103
|
+
mapObj.set("id", id)
|
104
|
+
end
|
105
|
+
if !map.nil?
|
106
|
+
if map.instance_of? RequestMap
|
107
|
+
mapObj.setAll(map.getObject())
|
108
|
+
else
|
109
|
+
mapObj.setAll(map)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
return self.execute("342a8aa9-ee72-4a96-88a1-b721a2636321", mapObj)
|
114
|
+
end
|
115
|
+
|
116
|
+
|
117
|
+
def delete
|
118
|
+
#
|
119
|
+
#Delete object of type Carddisable
|
120
|
+
|
121
|
+
#@param str id
|
122
|
+
#@return Carddisable of the response of the deleted instance.
|
123
|
+
#
|
124
|
+
|
125
|
+
return self.class.execute("342a8aa9-ee72-4a96-88a1-b721a2636321", self)
|
126
|
+
end
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
@@ -0,0 +1,140 @@
|
|
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
|
+
|
31
|
+
module MasterCard
|
32
|
+
module API
|
33
|
+
module Spendalerts
|
34
|
+
class Channel < MasterCard::Core::Model::BaseObject
|
35
|
+
include MasterCard::Core::Model
|
36
|
+
#
|
37
|
+
|
38
|
+
@__store = {
|
39
|
+
'31714938-6773-411e-851c-501c37b3890c' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/channels", "query", [], []),
|
40
|
+
'1ce30a27-5c02-4b2e-9715-80b346c4a6df' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/channels", "create", [], []),
|
41
|
+
'77ea011e-c6ae-4633-a642-86e1a21bb889' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/channels", "delete", [], []),
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
protected
|
46
|
+
|
47
|
+
def self.getOperationConfig(uuid)
|
48
|
+
if @__store.key?(uuid)
|
49
|
+
return @__store[uuid]
|
50
|
+
end
|
51
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.getOperationMetadata()
|
55
|
+
return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
|
56
|
+
end
|
57
|
+
|
58
|
+
public
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
def self.query(criteria)
|
66
|
+
#
|
67
|
+
#Query objects of type Channel by id and optional criteria
|
68
|
+
#@param type criteria
|
69
|
+
#@return Channel object representing the response.
|
70
|
+
#
|
71
|
+
|
72
|
+
return self.execute("31714938-6773-411e-851c-501c37b3890c",Channel.new(criteria))
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.create(mapObj)
|
76
|
+
#
|
77
|
+
#Creates object of type Channel
|
78
|
+
#
|
79
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
80
|
+
#@return Channel of the response of created instance.
|
81
|
+
#
|
82
|
+
return self.execute("1ce30a27-5c02-4b2e-9715-80b346c4a6df", Channel.new(mapObj))
|
83
|
+
end
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
def self.deleteById(id, map = nil)
|
94
|
+
#Delete object of type Channel by id
|
95
|
+
|
96
|
+
#@param str id
|
97
|
+
#@param Dict map, containing additional parameters
|
98
|
+
#@return Channel of the response of the deleted instance.
|
99
|
+
|
100
|
+
|
101
|
+
mapObj = Channel.new
|
102
|
+
if !(id.nil? || id.to_s.empty?)
|
103
|
+
mapObj.set("id", id)
|
104
|
+
end
|
105
|
+
if !map.nil?
|
106
|
+
if map.instance_of? RequestMap
|
107
|
+
mapObj.setAll(map.getObject())
|
108
|
+
else
|
109
|
+
mapObj.setAll(map)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
return self.execute("77ea011e-c6ae-4633-a642-86e1a21bb889", mapObj)
|
114
|
+
end
|
115
|
+
|
116
|
+
|
117
|
+
def delete
|
118
|
+
#
|
119
|
+
#Delete object of type Channel
|
120
|
+
|
121
|
+
#@param str id
|
122
|
+
#@return Channel of the response of the deleted instance.
|
123
|
+
#
|
124
|
+
|
125
|
+
return self.class.execute("77ea011e-c6ae-4633-a642-86e1a21bb889", self)
|
126
|
+
end
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
@@ -0,0 +1,140 @@
|
|
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
|
+
|
31
|
+
module MasterCard
|
32
|
+
module API
|
33
|
+
module Spendalerts
|
34
|
+
class Controls < MasterCard::Core::Model::BaseObject
|
35
|
+
include MasterCard::Core::Model
|
36
|
+
#
|
37
|
+
|
38
|
+
@__store = {
|
39
|
+
'25f166f2-115a-4c00-88a4-caab8dd3f497' => OperationConfig.new("/issuer/v1/card/{uuid}/controls", "query", [], []),
|
40
|
+
'68c01f1c-d0f0-490c-8c36-52c943c1439e' => OperationConfig.new("/issuer/v1/card/{uuid}/controls", "create", [], []),
|
41
|
+
'dfb60232-b546-447b-b729-7507d1a7044f' => OperationConfig.new("/issuer/v1/card/{uuid}/controls", "delete", [], []),
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
protected
|
46
|
+
|
47
|
+
def self.getOperationConfig(uuid)
|
48
|
+
if @__store.key?(uuid)
|
49
|
+
return @__store[uuid]
|
50
|
+
end
|
51
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.getOperationMetadata()
|
55
|
+
return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
|
56
|
+
end
|
57
|
+
|
58
|
+
public
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
def self.query(criteria)
|
66
|
+
#
|
67
|
+
#Query objects of type Controls by id and optional criteria
|
68
|
+
#@param type criteria
|
69
|
+
#@return Controls object representing the response.
|
70
|
+
#
|
71
|
+
|
72
|
+
return self.execute("25f166f2-115a-4c00-88a4-caab8dd3f497",Controls.new(criteria))
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.create(mapObj)
|
76
|
+
#
|
77
|
+
#Creates object of type Controls
|
78
|
+
#
|
79
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
80
|
+
#@return Controls of the response of created instance.
|
81
|
+
#
|
82
|
+
return self.execute("68c01f1c-d0f0-490c-8c36-52c943c1439e", Controls.new(mapObj))
|
83
|
+
end
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
def self.deleteById(id, map = nil)
|
94
|
+
#Delete object of type Controls by id
|
95
|
+
|
96
|
+
#@param str id
|
97
|
+
#@param Dict map, containing additional parameters
|
98
|
+
#@return Controls of the response of the deleted instance.
|
99
|
+
|
100
|
+
|
101
|
+
mapObj = Controls.new
|
102
|
+
if !(id.nil? || id.to_s.empty?)
|
103
|
+
mapObj.set("id", id)
|
104
|
+
end
|
105
|
+
if !map.nil?
|
106
|
+
if map.instance_of? RequestMap
|
107
|
+
mapObj.setAll(map.getObject())
|
108
|
+
else
|
109
|
+
mapObj.setAll(map)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
return self.execute("dfb60232-b546-447b-b729-7507d1a7044f", mapObj)
|
114
|
+
end
|
115
|
+
|
116
|
+
|
117
|
+
def delete
|
118
|
+
#
|
119
|
+
#Delete object of type Controls
|
120
|
+
|
121
|
+
#@param str id
|
122
|
+
#@return Controls of the response of the deleted instance.
|
123
|
+
#
|
124
|
+
|
125
|
+
return self.class.execute("dfb60232-b546-447b-b729-7507d1a7044f", self)
|
126
|
+
end
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
@@ -0,0 +1,140 @@
|
|
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
|
+
|
31
|
+
module MasterCard
|
32
|
+
module API
|
33
|
+
module Spendalerts
|
34
|
+
class Crossborder < MasterCard::Core::Model::BaseObject
|
35
|
+
include MasterCard::Core::Model
|
36
|
+
#
|
37
|
+
|
38
|
+
@__store = {
|
39
|
+
'5d0b7ee2-6574-462d-8803-b1b38304efc9' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/crossborder", "query", [], []),
|
40
|
+
'd3c8461b-c495-4e83-a879-2bbba6fe9985' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/crossborder", "create", [], []),
|
41
|
+
'8298e85a-978a-48b8-8c35-45519a576743' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/crossborder", "delete", [], []),
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
protected
|
46
|
+
|
47
|
+
def self.getOperationConfig(uuid)
|
48
|
+
if @__store.key?(uuid)
|
49
|
+
return @__store[uuid]
|
50
|
+
end
|
51
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.getOperationMetadata()
|
55
|
+
return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
|
56
|
+
end
|
57
|
+
|
58
|
+
public
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
def self.query(criteria)
|
66
|
+
#
|
67
|
+
#Query objects of type Crossborder by id and optional criteria
|
68
|
+
#@param type criteria
|
69
|
+
#@return Crossborder object representing the response.
|
70
|
+
#
|
71
|
+
|
72
|
+
return self.execute("5d0b7ee2-6574-462d-8803-b1b38304efc9",Crossborder.new(criteria))
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.create(mapObj)
|
76
|
+
#
|
77
|
+
#Creates object of type Crossborder
|
78
|
+
#
|
79
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
80
|
+
#@return Crossborder of the response of created instance.
|
81
|
+
#
|
82
|
+
return self.execute("d3c8461b-c495-4e83-a879-2bbba6fe9985", Crossborder.new(mapObj))
|
83
|
+
end
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
def self.deleteById(id, map = nil)
|
94
|
+
#Delete object of type Crossborder by id
|
95
|
+
|
96
|
+
#@param str id
|
97
|
+
#@param Dict map, containing additional parameters
|
98
|
+
#@return Crossborder of the response of the deleted instance.
|
99
|
+
|
100
|
+
|
101
|
+
mapObj = Crossborder.new
|
102
|
+
if !(id.nil? || id.to_s.empty?)
|
103
|
+
mapObj.set("id", id)
|
104
|
+
end
|
105
|
+
if !map.nil?
|
106
|
+
if map.instance_of? RequestMap
|
107
|
+
mapObj.setAll(map.getObject())
|
108
|
+
else
|
109
|
+
mapObj.setAll(map)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
return self.execute("8298e85a-978a-48b8-8c35-45519a576743", mapObj)
|
114
|
+
end
|
115
|
+
|
116
|
+
|
117
|
+
def delete
|
118
|
+
#
|
119
|
+
#Delete object of type Crossborder
|
120
|
+
|
121
|
+
#@param str id
|
122
|
+
#@return Crossborder of the response of the deleted instance.
|
123
|
+
#
|
124
|
+
|
125
|
+
return self.class.execute("8298e85a-978a-48b8-8c35-45519a576743", self)
|
126
|
+
end
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
@@ -0,0 +1,140 @@
|
|
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
|
+
|
31
|
+
module MasterCard
|
32
|
+
module API
|
33
|
+
module Spendalerts
|
34
|
+
class Declines < MasterCard::Core::Model::BaseObject
|
35
|
+
include MasterCard::Core::Model
|
36
|
+
#
|
37
|
+
|
38
|
+
@__store = {
|
39
|
+
'6e4bc79c-c888-44da-9dce-05e7853336f2' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines", "query", [], []),
|
40
|
+
'885e8563-f626-4535-9428-64343189401b' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines", "create", [], []),
|
41
|
+
'fc28b750-eedf-4b49-9815-4c60dc703531' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines", "delete", [], []),
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
protected
|
46
|
+
|
47
|
+
def self.getOperationConfig(uuid)
|
48
|
+
if @__store.key?(uuid)
|
49
|
+
return @__store[uuid]
|
50
|
+
end
|
51
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.getOperationMetadata()
|
55
|
+
return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
|
56
|
+
end
|
57
|
+
|
58
|
+
public
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
def self.query(criteria)
|
66
|
+
#
|
67
|
+
#Query objects of type Declines by id and optional criteria
|
68
|
+
#@param type criteria
|
69
|
+
#@return Declines object representing the response.
|
70
|
+
#
|
71
|
+
|
72
|
+
return self.execute("6e4bc79c-c888-44da-9dce-05e7853336f2",Declines.new(criteria))
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.create(mapObj)
|
76
|
+
#
|
77
|
+
#Creates object of type Declines
|
78
|
+
#
|
79
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
80
|
+
#@return Declines of the response of created instance.
|
81
|
+
#
|
82
|
+
return self.execute("885e8563-f626-4535-9428-64343189401b", Declines.new(mapObj))
|
83
|
+
end
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
def self.deleteById(id, map = nil)
|
94
|
+
#Delete object of type Declines by id
|
95
|
+
|
96
|
+
#@param str id
|
97
|
+
#@param Dict map, containing additional parameters
|
98
|
+
#@return Declines of the response of the deleted instance.
|
99
|
+
|
100
|
+
|
101
|
+
mapObj = Declines.new
|
102
|
+
if !(id.nil? || id.to_s.empty?)
|
103
|
+
mapObj.set("id", id)
|
104
|
+
end
|
105
|
+
if !map.nil?
|
106
|
+
if map.instance_of? RequestMap
|
107
|
+
mapObj.setAll(map.getObject())
|
108
|
+
else
|
109
|
+
mapObj.setAll(map)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
return self.execute("fc28b750-eedf-4b49-9815-4c60dc703531", mapObj)
|
114
|
+
end
|
115
|
+
|
116
|
+
|
117
|
+
def delete
|
118
|
+
#
|
119
|
+
#Delete object of type Declines
|
120
|
+
|
121
|
+
#@param str id
|
122
|
+
#@return Declines of the response of the deleted instance.
|
123
|
+
#
|
124
|
+
|
125
|
+
return self.class.execute("fc28b750-eedf-4b49-9815-4c60dc703531", self)
|
126
|
+
end
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
@@ -0,0 +1,50 @@
|
|
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
|
+
module MasterCard
|
28
|
+
module API
|
29
|
+
module Spendalerts
|
30
|
+
class SDKConfig
|
31
|
+
|
32
|
+
private
|
33
|
+
@@host = nil
|
34
|
+
|
35
|
+
public
|
36
|
+
def self.setHost(host)
|
37
|
+
@@host = host
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.getHost()
|
41
|
+
return @@host
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.getVersion()
|
45
|
+
return "1.0.0"
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,83 @@
|
|
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
|
+
|
31
|
+
module MasterCard
|
32
|
+
module API
|
33
|
+
module Spendalerts
|
34
|
+
class Verify < MasterCard::Core::Model::BaseObject
|
35
|
+
include MasterCard::Core::Model
|
36
|
+
#
|
37
|
+
|
38
|
+
@__store = {
|
39
|
+
'52e0d01c-d613-46c1-9b87-f3f8f7e0f495' => OperationConfig.new("/issuer/v1/card/verify/{uuid}", "create", [], []),
|
40
|
+
|
41
|
+
}
|
42
|
+
|
43
|
+
protected
|
44
|
+
|
45
|
+
def self.getOperationConfig(uuid)
|
46
|
+
if @__store.key?(uuid)
|
47
|
+
return @__store[uuid]
|
48
|
+
end
|
49
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.getOperationMetadata()
|
53
|
+
return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
|
54
|
+
end
|
55
|
+
|
56
|
+
public
|
57
|
+
|
58
|
+
def self.create(mapObj)
|
59
|
+
#
|
60
|
+
#Creates object of type Verify
|
61
|
+
#
|
62
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
63
|
+
#@return Verify of the response of created instance.
|
64
|
+
#
|
65
|
+
return self.execute("52e0d01c-d613-46c1-9b87-f3f8f7e0f495", Verify.new(mapObj))
|
66
|
+
end
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'mastercard_api_core'
|
2
|
+
require 'mastercard/api/spendalerts/skdconfig'
|
3
|
+
require 'mastercard/api/spendalerts/declines'
|
4
|
+
require 'mastercard/api/spendalerts/controls'
|
5
|
+
require 'mastercard/api/spendalerts/crossborder'
|
6
|
+
require 'mastercard/api/spendalerts/card'
|
7
|
+
require 'mastercard/api/spendalerts/carddisable'
|
8
|
+
require 'mastercard/api/spendalerts/amount'
|
9
|
+
require 'mastercard/api/spendalerts/verify'
|
10
|
+
require 'mastercard/api/spendalerts/alerts'
|
11
|
+
require 'mastercard/api/spendalerts/channel'
|
metadata
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mastercard_spendalerts
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- MasterCard Worldwide
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-11-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: mastercard_api_core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.2.0
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.2.0
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.2.0
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.2.0
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: ci_reporter_minitest
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
type: :development
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
description: MasterCard Spendalerts Description
|
48
|
+
email:
|
49
|
+
- APISupport@mastercard.com
|
50
|
+
executables: []
|
51
|
+
extensions: []
|
52
|
+
extra_rdoc_files: []
|
53
|
+
files:
|
54
|
+
- lib/mastercard/api/spendalerts/alerts.rb
|
55
|
+
- lib/mastercard/api/spendalerts/amount.rb
|
56
|
+
- lib/mastercard/api/spendalerts/card.rb
|
57
|
+
- lib/mastercard/api/spendalerts/carddisable.rb
|
58
|
+
- lib/mastercard/api/spendalerts/channel.rb
|
59
|
+
- lib/mastercard/api/spendalerts/controls.rb
|
60
|
+
- lib/mastercard/api/spendalerts/crossborder.rb
|
61
|
+
- lib/mastercard/api/spendalerts/declines.rb
|
62
|
+
- lib/mastercard/api/spendalerts/skdconfig.rb
|
63
|
+
- lib/mastercard/api/spendalerts/verify.rb
|
64
|
+
- lib/mastercard_spendalerts.rb
|
65
|
+
homepage: https://developer.mastercard.com
|
66
|
+
licenses:
|
67
|
+
- BSD-2-Clause
|
68
|
+
metadata: {}
|
69
|
+
post_install_message:
|
70
|
+
rdoc_options: []
|
71
|
+
require_paths:
|
72
|
+
- lib
|
73
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
requirements: []
|
84
|
+
rubyforge_project:
|
85
|
+
rubygems_version: 2.5.1
|
86
|
+
signing_key:
|
87
|
+
specification_version: 4
|
88
|
+
summary: MasterCard Spendalerts SDK
|
89
|
+
test_files: []
|