mastercard_spendalerts 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/spendalerts/alerts.rb +7 -7
- data/lib/mastercard/api/spendalerts/amount.rb +7 -7
- data/lib/mastercard/api/spendalerts/card.rb +24 -7
- data/lib/mastercard/api/spendalerts/channel.rb +7 -7
- data/lib/mastercard/api/spendalerts/controls.rb +7 -7
- data/lib/mastercard/api/spendalerts/controlshistory.rb +87 -0
- data/lib/mastercard/api/spendalerts/crossborder.rb +7 -7
- data/lib/mastercard/api/spendalerts/{carddisable.rb → declineall.rb} +17 -17
- data/lib/mastercard/api/spendalerts/declines.rb +7 -7
- data/lib/mastercard/api/spendalerts/notification.rb +2 -2
- data/lib/mastercard/api/spendalerts/resourceconfig.rb +1 -1
- data/lib/mastercard/api/spendalerts/txnhistory.rb +87 -0
- data/lib/mastercard/api/spendalerts/verify.rb +2 -2
- data/lib/mastercard_spendalerts.rb +3 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dec5d8f2673f6a77e71c2a8e54e73c640dd1eb2a
|
4
|
+
data.tar.gz: f8d29afcf101078f4db13e191f45e027fe23fd43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a7b8c828fc7605bbddbca4d3e2fb2c43ecb5b204d324b431f2c311597b9cac830d80ba3c0a0ab08aacc43965a6cc8f1bf466f3b39696adeaad07901d2ec2f87
|
7
|
+
data.tar.gz: 0b538a66f0e5580da8fcd2e79f2dc85b82d92ddea188abb2e8c6d2ddc9608ca0519215d100bf03da5d9994639ca405d885f4876cb726ea0a0a2e6a1b63792d7e
|
@@ -37,9 +37,9 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'b3233a53-80e2-4523-93f5-a6ee75952f4c' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts", "delete", [], []),
|
41
|
+
'b608eda9-1f1a-4068-a747-2325799ade0b' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts", "query", [], []),
|
42
|
+
'a42ce6c7-4ad2-4bfc-8106-e64707c0ab73' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts", "create", [], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
@@ -83,7 +83,7 @@ module MasterCard
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
return self.execute("
|
86
|
+
return self.execute("b3233a53-80e2-4523-93f5-a6ee75952f4c", 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("b3233a53-80e2-4523-93f5-a6ee75952f4c", 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("b608eda9-1f1a-4068-a747-2325799ade0b",Alerts.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 [Alerts] of the response of created instance.
|
128
128
|
#@raise [APIException] an exception from the response status
|
129
|
-
return self.execute("
|
129
|
+
return self.execute("a42ce6c7-4ad2-4bfc-8106-e64707c0ab73", Alerts.new(mapObj))
|
130
130
|
end
|
131
131
|
|
132
132
|
|
@@ -37,9 +37,9 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'9b245c27-f926-4f62-a706-9ea42a4eef22' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/transactionamount", "delete", [], []),
|
41
|
+
'edf6241c-46ed-4496-893d-98b69de39318' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/transactionamount", "query", [], []),
|
42
|
+
'b181a686-ecd2-4a0b-85b1-99beaede1e7f' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/transactionamount", "create", [], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
@@ -83,7 +83,7 @@ module MasterCard
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
return self.execute("
|
86
|
+
return self.execute("9b245c27-f926-4f62-a706-9ea42a4eef22", 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("9b245c27-f926-4f62-a706-9ea42a4eef22", 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("edf6241c-46ed-4496-893d-98b69de39318",Amount.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 [Amount] of the response of created instance.
|
128
128
|
#@raise [APIException] an exception from the response status
|
129
|
-
return self.execute("
|
129
|
+
return self.execute("b181a686-ecd2-4a0b-85b1-99beaede1e7f", Amount.new(mapObj))
|
130
130
|
end
|
131
131
|
|
132
132
|
|
@@ -37,9 +37,10 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'8e0e7c35-3311-48f1-9357-59d2a84339c0' => OperationConfig.new("/issuer/v1/card", "create", [], []),
|
41
|
+
'236caeea-a2fd-461b-b1de-4f4527a5f81c' => OperationConfig.new("/issuer/v1/card/uuid", "create", [], []),
|
42
|
+
'f7245020-226a-4c9c-aa56-48d3f273e928' => OperationConfig.new("/issuer/v1/card/{uuid}", "delete", [], []),
|
43
|
+
'26737bc6-218d-486c-8669-49442340858a' => OperationConfig.new("/issuer/v1/card/{uuid}", "create", [], []),
|
43
44
|
|
44
45
|
}
|
45
46
|
|
@@ -66,7 +67,23 @@ module MasterCard
|
|
66
67
|
#@param Dict mapObj, containing the required parameters to create a new object
|
67
68
|
#@return [Card] of the response of created instance.
|
68
69
|
#@raise [APIException] an exception from the response status
|
69
|
-
return self.execute("
|
70
|
+
return self.execute("8e0e7c35-3311-48f1-9357-59d2a84339c0", Card.new(mapObj))
|
71
|
+
end
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
def self.read(mapObj)
|
80
|
+
#
|
81
|
+
#Creates object of type Card
|
82
|
+
#
|
83
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
84
|
+
#@return [Card] of the response of created instance.
|
85
|
+
#@raise [APIException] an exception from the response status
|
86
|
+
return self.execute("236caeea-a2fd-461b-b1de-4f4527a5f81c", Card.new(mapObj))
|
70
87
|
end
|
71
88
|
|
72
89
|
|
@@ -99,7 +116,7 @@ module MasterCard
|
|
99
116
|
end
|
100
117
|
end
|
101
118
|
|
102
|
-
return self.execute("
|
119
|
+
return self.execute("f7245020-226a-4c9c-aa56-48d3f273e928", mapObj)
|
103
120
|
end
|
104
121
|
|
105
122
|
|
@@ -112,7 +129,7 @@ module MasterCard
|
|
112
129
|
#@raise [APIException] an exception from the response status
|
113
130
|
#
|
114
131
|
|
115
|
-
return self.class.execute("
|
132
|
+
return self.class.execute("f7245020-226a-4c9c-aa56-48d3f273e928", self)
|
116
133
|
end
|
117
134
|
|
118
135
|
|
@@ -125,7 +142,7 @@ module MasterCard
|
|
125
142
|
#@param Dict mapObj, containing the required parameters to create a new object
|
126
143
|
#@return [Card] of the response of created instance.
|
127
144
|
#@raise [APIException] an exception from the response status
|
128
|
-
return self.execute("
|
145
|
+
return self.execute("26737bc6-218d-486c-8669-49442340858a", Card.new(mapObj))
|
129
146
|
end
|
130
147
|
|
131
148
|
|
@@ -37,9 +37,9 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'22fbf9bc-c80b-40b0-b5d7-6e971619fb6a' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/channels", "delete", [], []),
|
41
|
+
'127da697-16f9-4cd1-a4ee-5f48ce679172' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/channels", "query", [], []),
|
42
|
+
'356e8dfa-81fd-46a4-b888-88508f25605d' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/channels", "create", [], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
@@ -83,7 +83,7 @@ module MasterCard
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
return self.execute("
|
86
|
+
return self.execute("22fbf9bc-c80b-40b0-b5d7-6e971619fb6a", 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("22fbf9bc-c80b-40b0-b5d7-6e971619fb6a", 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("127da697-16f9-4cd1-a4ee-5f48ce679172",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("356e8dfa-81fd-46a4-b888-88508f25605d", Channel.new(mapObj))
|
130
130
|
end
|
131
131
|
|
132
132
|
|
@@ -37,9 +37,9 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'1b907f56-4d1c-4469-8a9a-63f3e3304fd4' => OperationConfig.new("/issuer/v1/card/{uuid}/controls", "delete", [], []),
|
41
|
+
'b13484c0-e58b-4292-91ae-d7141293f96c' => OperationConfig.new("/issuer/v1/card/{uuid}/controls", "query", [], []),
|
42
|
+
'6fb3dc53-4b8d-448d-a00f-3f4174e5b2f5' => OperationConfig.new("/issuer/v1/card/{uuid}/controls", "create", [], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
@@ -83,7 +83,7 @@ module MasterCard
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
return self.execute("
|
86
|
+
return self.execute("1b907f56-4d1c-4469-8a9a-63f3e3304fd4", 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("1b907f56-4d1c-4469-8a9a-63f3e3304fd4", 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("b13484c0-e58b-4292-91ae-d7141293f96c",Controls.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 [Controls] of the response of created instance.
|
128
128
|
#@raise [APIException] an exception from the response status
|
129
|
-
return self.execute("
|
129
|
+
return self.execute("6fb3dc53-4b8d-448d-a00f-3f4174e5b2f5", Controls.new(mapObj))
|
130
130
|
end
|
131
131
|
|
132
132
|
|
@@ -0,0 +1,87 @@
|
|
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 Spendalerts
|
35
|
+
class Controlshistory < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'811c9e6d-7d40-4c06-bac5-7e2b5a9b8d98' => OperationConfig.new("/issuer/v1/card/{uuid}/history/controls", "query", [], ["from","to","pageNumber","pageSize"]),
|
41
|
+
|
42
|
+
}
|
43
|
+
|
44
|
+
protected
|
45
|
+
|
46
|
+
def self.getOperationConfig(uuid)
|
47
|
+
if @__store.key?(uuid)
|
48
|
+
return @__store[uuid]
|
49
|
+
end
|
50
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
|
51
|
+
end
|
52
|
+
|
53
|
+
def self.getOperationMetadata()
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
55
|
+
end
|
56
|
+
|
57
|
+
public
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
def self.query(criteria)
|
66
|
+
#
|
67
|
+
#Query objects of type Controlshistory by id and optional criteria
|
68
|
+
#@param [Dict] criteria
|
69
|
+
#@return [Controlshistory] object representing the response.
|
70
|
+
#@raise [APIException] an exception from the response status
|
71
|
+
#
|
72
|
+
|
73
|
+
return self.execute("811c9e6d-7d40-4c06-bac5-7e2b5a9b8d98",Controlshistory.new(criteria))
|
74
|
+
end
|
75
|
+
|
76
|
+
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
@@ -37,9 +37,9 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'6b54c0e2-ae99-4376-9115-ff7cb88f39d2' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/crossborder", "delete", [], []),
|
41
|
+
'3d2ce8fd-16e2-4528-a458-7eedd3db1e67' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/crossborder", "query", [], []),
|
42
|
+
'e3c18a26-21fa-48f6-bc5e-7de988db3327' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/crossborder", "create", [], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
@@ -83,7 +83,7 @@ module MasterCard
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
return self.execute("
|
86
|
+
return self.execute("6b54c0e2-ae99-4376-9115-ff7cb88f39d2", 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("6b54c0e2-ae99-4376-9115-ff7cb88f39d2", 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("3d2ce8fd-16e2-4528-a458-7eedd3db1e67",Crossborder.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 [Crossborder] of the response of created instance.
|
128
128
|
#@raise [APIException] an exception from the response status
|
129
|
-
return self.execute("
|
129
|
+
return self.execute("e3c18a26-21fa-48f6-bc5e-7de988db3327", Crossborder.new(mapObj))
|
130
130
|
end
|
131
131
|
|
132
132
|
|
@@ -32,14 +32,14 @@ require "mastercard/core/baseobject"
|
|
32
32
|
module MasterCard
|
33
33
|
module API
|
34
34
|
module Spendalerts
|
35
|
-
class
|
35
|
+
class Declineall < MasterCard::Core::Model::BaseObject
|
36
36
|
include MasterCard::Core::Model
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'7e971e3f-286f-4f3f-8721-d16a2964865d' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines/all", "delete", [], []),
|
41
|
+
'78c3a057-3ffb-4b5f-9ca5-6907fd4f32e3' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines/all", "query", [], []),
|
42
|
+
'f8433535-1b55-48de-89ca-6867056d2658' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines/all", "create", [], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
@@ -63,15 +63,15 @@ module MasterCard
|
|
63
63
|
|
64
64
|
|
65
65
|
def self.deleteById(id, map = nil)
|
66
|
-
#Delete object of type
|
66
|
+
#Delete object of type Declineall by id
|
67
67
|
|
68
68
|
#@param [String] id
|
69
69
|
#@param [Dict] map, containing additional parameters
|
70
|
-
#@return [
|
70
|
+
#@return [Declineall] of the response of the deleted instance.
|
71
71
|
#@raise [APIException] an exception from the response status
|
72
72
|
|
73
73
|
|
74
|
-
mapObj =
|
74
|
+
mapObj = Declineall.new
|
75
75
|
if !(id.nil? || id.to_s.empty?)
|
76
76
|
mapObj.set("id", id)
|
77
77
|
end
|
@@ -83,20 +83,20 @@ module MasterCard
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
return self.execute("
|
86
|
+
return self.execute("7e971e3f-286f-4f3f-8721-d16a2964865d", mapObj)
|
87
87
|
end
|
88
88
|
|
89
89
|
|
90
90
|
def delete
|
91
91
|
#
|
92
|
-
#Delete object of type
|
92
|
+
#Delete object of type Declineall
|
93
93
|
|
94
94
|
#@param [String] id
|
95
|
-
#@return [
|
95
|
+
#@return [Declineall] of the response of the deleted instance.
|
96
96
|
#@raise [APIException] an exception from the response status
|
97
97
|
#
|
98
98
|
|
99
|
-
return self.class.execute("
|
99
|
+
return self.class.execute("7e971e3f-286f-4f3f-8721-d16a2964865d", self)
|
100
100
|
end
|
101
101
|
|
102
102
|
|
@@ -109,24 +109,24 @@ module MasterCard
|
|
109
109
|
|
110
110
|
def self.query(criteria)
|
111
111
|
#
|
112
|
-
#Query objects of type
|
112
|
+
#Query objects of type Declineall by id and optional criteria
|
113
113
|
#@param [Dict] criteria
|
114
|
-
#@return [
|
114
|
+
#@return [Declineall] object representing the response.
|
115
115
|
#@raise [APIException] an exception from the response status
|
116
116
|
#
|
117
117
|
|
118
|
-
return self.execute("
|
118
|
+
return self.execute("78c3a057-3ffb-4b5f-9ca5-6907fd4f32e3",Declineall.new(criteria))
|
119
119
|
end
|
120
120
|
|
121
121
|
|
122
122
|
def self.create(mapObj)
|
123
123
|
#
|
124
|
-
#Creates object of type
|
124
|
+
#Creates object of type Declineall
|
125
125
|
#
|
126
126
|
#@param Dict mapObj, containing the required parameters to create a new object
|
127
|
-
#@return [
|
127
|
+
#@return [Declineall] of the response of created instance.
|
128
128
|
#@raise [APIException] an exception from the response status
|
129
|
-
return self.execute("
|
129
|
+
return self.execute("f8433535-1b55-48de-89ca-6867056d2658", Declineall.new(mapObj))
|
130
130
|
end
|
131
131
|
|
132
132
|
|
@@ -37,9 +37,9 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'75a57f0d-6cb9-4ca9-8d1e-4c28566d8a94' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines", "delete", [], []),
|
41
|
+
'b55e8086-622f-45ef-b2aa-e83a4f029e5e' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines", "query", [], []),
|
42
|
+
'a3c5557b-473d-41c4-bbff-ae6b2f60b4cf' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines", "create", [], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
@@ -83,7 +83,7 @@ module MasterCard
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
return self.execute("
|
86
|
+
return self.execute("75a57f0d-6cb9-4ca9-8d1e-4c28566d8a94", 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("75a57f0d-6cb9-4ca9-8d1e-4c28566d8a94", 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("b55e8086-622f-45ef-b2aa-e83a4f029e5e",Declines.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 [Declines] of the response of created instance.
|
128
128
|
#@raise [APIException] an exception from the response status
|
129
|
-
return self.execute("
|
129
|
+
return self.execute("a3c5557b-473d-41c4-bbff-ae6b2f60b4cf", Declines.new(mapObj))
|
130
130
|
end
|
131
131
|
|
132
132
|
|
@@ -37,7 +37,7 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'd39b2405-e025-4815-912e-3be6c39f2d06' => OperationConfig.new("/issuer/v1/test/notificationUrl", "create", ["x-request-endpoint-uri"], []),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
@@ -64,7 +64,7 @@ module MasterCard
|
|
64
64
|
#@param Dict mapObj, containing the required parameters to create a new object
|
65
65
|
#@return [Notification] of the response of created instance.
|
66
66
|
#@raise [APIException] an exception from the response status
|
67
|
-
return self.execute("
|
67
|
+
return self.execute("d39b2405-e025-4815-912e-3be6c39f2d06", Notification.new(mapObj))
|
68
68
|
end
|
69
69
|
|
70
70
|
|
@@ -0,0 +1,87 @@
|
|
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 Spendalerts
|
35
|
+
class Txnhistory < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'a8b6988c-98e8-49ed-b567-465b36df8177' => OperationConfig.new("/issuer/v1/card/{uuid}/transactions", "query", [], ["from","to","pageNumber","pageSize"]),
|
41
|
+
|
42
|
+
}
|
43
|
+
|
44
|
+
protected
|
45
|
+
|
46
|
+
def self.getOperationConfig(uuid)
|
47
|
+
if @__store.key?(uuid)
|
48
|
+
return @__store[uuid]
|
49
|
+
end
|
50
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
|
51
|
+
end
|
52
|
+
|
53
|
+
def self.getOperationMetadata()
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
55
|
+
end
|
56
|
+
|
57
|
+
public
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
def self.query(criteria)
|
66
|
+
#
|
67
|
+
#Query objects of type Txnhistory by id and optional criteria
|
68
|
+
#@param [Dict] criteria
|
69
|
+
#@return [Txnhistory] object representing the response.
|
70
|
+
#@raise [APIException] an exception from the response status
|
71
|
+
#
|
72
|
+
|
73
|
+
return self.execute("a8b6988c-98e8-49ed-b567-465b36df8177",Txnhistory.new(criteria))
|
74
|
+
end
|
75
|
+
|
76
|
+
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
@@ -37,7 +37,7 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'40be4201-6504-44d0-9bf9-c64602232deb' => OperationConfig.new("/issuer/v1/card/verify/{uuid}", "create", [], []),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
@@ -64,7 +64,7 @@ module MasterCard
|
|
64
64
|
#@param Dict mapObj, containing the required parameters to create a new object
|
65
65
|
#@return [Verify] of the response of created instance.
|
66
66
|
#@raise [APIException] an exception from the response status
|
67
|
-
return self.execute("
|
67
|
+
return self.execute("40be4201-6504-44d0-9bf9-c64602232deb", Verify.new(mapObj))
|
68
68
|
end
|
69
69
|
|
70
70
|
|
@@ -5,10 +5,12 @@ require 'mastercard/api/spendalerts/resourceconfig'
|
|
5
5
|
require 'mastercard/api/spendalerts/alerts'
|
6
6
|
require 'mastercard/api/spendalerts/amount'
|
7
7
|
require 'mastercard/api/spendalerts/card'
|
8
|
-
require 'mastercard/api/spendalerts/carddisable'
|
9
8
|
require 'mastercard/api/spendalerts/channel'
|
10
9
|
require 'mastercard/api/spendalerts/controls'
|
10
|
+
require 'mastercard/api/spendalerts/controlshistory'
|
11
11
|
require 'mastercard/api/spendalerts/crossborder'
|
12
|
+
require 'mastercard/api/spendalerts/declineall'
|
12
13
|
require 'mastercard/api/spendalerts/declines'
|
13
14
|
require 'mastercard/api/spendalerts/notification'
|
15
|
+
require 'mastercard/api/spendalerts/txnhistory'
|
14
16
|
require 'mastercard/api/spendalerts/verify'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mastercard_spendalerts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MasterCard Worldwide
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mastercard_api_core
|
@@ -54,13 +54,15 @@ files:
|
|
54
54
|
- lib/mastercard/api/spendalerts/alerts.rb
|
55
55
|
- lib/mastercard/api/spendalerts/amount.rb
|
56
56
|
- lib/mastercard/api/spendalerts/card.rb
|
57
|
-
- lib/mastercard/api/spendalerts/carddisable.rb
|
58
57
|
- lib/mastercard/api/spendalerts/channel.rb
|
59
58
|
- lib/mastercard/api/spendalerts/controls.rb
|
59
|
+
- lib/mastercard/api/spendalerts/controlshistory.rb
|
60
60
|
- lib/mastercard/api/spendalerts/crossborder.rb
|
61
|
+
- lib/mastercard/api/spendalerts/declineall.rb
|
61
62
|
- lib/mastercard/api/spendalerts/declines.rb
|
62
63
|
- lib/mastercard/api/spendalerts/notification.rb
|
63
64
|
- lib/mastercard/api/spendalerts/resourceconfig.rb
|
65
|
+
- lib/mastercard/api/spendalerts/txnhistory.rb
|
64
66
|
- lib/mastercard/api/spendalerts/verify.rb
|
65
67
|
- lib/mastercard_spendalerts.rb
|
66
68
|
homepage: https://developer.mastercard.com
|