mastercard_spendalerts 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mastercard/api/spendalerts/alerts.rb +7 -7
- data/lib/mastercard/api/spendalerts/amount.rb +7 -7
- data/lib/mastercard/api/spendalerts/card.rb +7 -7
- data/lib/mastercard/api/spendalerts/carddisable.rb +7 -7
- data/lib/mastercard/api/spendalerts/channel.rb +7 -7
- data/lib/mastercard/api/spendalerts/controls.rb +7 -7
- data/lib/mastercard/api/spendalerts/crossborder.rb +7 -7
- data/lib/mastercard/api/spendalerts/declines.rb +7 -7
- data/lib/mastercard/api/spendalerts/notification.rb +86 -0
- data/lib/mastercard/api/spendalerts/resourceconfig.rb +1 -1
- data/lib/mastercard/api/spendalerts/verify.rb +2 -2
- data/lib/mastercard_spendalerts.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bda3310785588a4b2cd4d458056833d2340b0e34
|
4
|
+
data.tar.gz: d0a01fcf1159663186a51500652af07b6c622770
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a77bac7e9d7c8fa9f1474230734c551a0bddf794cbf1e8ae1702cbd66d3c447886c9b0513b71eef38c5ace7b9e6a6390e1f90f5c7071d95ecffb7c9869035e2
|
7
|
+
data.tar.gz: 21bfd9b5e74f51c42a9b86a70803cc29744958f5c26c15d18b1e004d8c77a1d932119e84e116daf7384f6f16611218c8f64961d4310024ad4752f3641ef2e8a3
|
@@ -37,9 +37,9 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'5f7b292e-491f-4b9a-a7ef-e10142791b1b' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts", "delete", [], []),
|
41
|
+
'0006ff75-d453-4bfc-834d-2abf2cd7f61d' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts", "query", [], []),
|
42
|
+
'fce45809-cbb9-43cf-ac1c-31f51bbe09ba' => 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("5f7b292e-491f-4b9a-a7ef-e10142791b1b", 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("5f7b292e-491f-4b9a-a7ef-e10142791b1b", 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("0006ff75-d453-4bfc-834d-2abf2cd7f61d",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("fce45809-cbb9-43cf-ac1c-31f51bbe09ba", 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
|
+
'a5c9a827-c514-4bf3-ac0c-a2ff161466fc' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/transactionamount", "delete", [], []),
|
41
|
+
'88ff1fb5-3e98-43af-9428-e76afebeb144' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/transactionamount", "query", [], []),
|
42
|
+
'cb10f18f-0c63-4576-a361-f815604fcc20' => 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("a5c9a827-c514-4bf3-ac0c-a2ff161466fc", 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("a5c9a827-c514-4bf3-ac0c-a2ff161466fc", 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("88ff1fb5-3e98-43af-9428-e76afebeb144",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("cb10f18f-0c63-4576-a361-f815604fcc20", Amount.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
|
+
'35f7e126-bf08-468b-9b60-3421f31bb3ed' => OperationConfig.new("/issuer/v1/card", "create", [], []),
|
41
|
+
'61fe408d-ca42-467a-a51f-ae92377bfdfc' => OperationConfig.new("/issuer/v1/card/{uuid}", "delete", [], []),
|
42
|
+
'0f1e097f-f374-4b73-8275-a0fe2d59082a' => OperationConfig.new("/issuer/v1/card/{uuid}", "create", [], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
@@ -66,7 +66,7 @@ module MasterCard
|
|
66
66
|
#@param Dict mapObj, containing the required parameters to create a new object
|
67
67
|
#@return [Card] of the response of created instance.
|
68
68
|
#@raise [APIException] an exception from the response status
|
69
|
-
return self.execute("
|
69
|
+
return self.execute("35f7e126-bf08-468b-9b60-3421f31bb3ed", Card.new(mapObj))
|
70
70
|
end
|
71
71
|
|
72
72
|
|
@@ -99,7 +99,7 @@ module MasterCard
|
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|
102
|
-
return self.execute("
|
102
|
+
return self.execute("61fe408d-ca42-467a-a51f-ae92377bfdfc", mapObj)
|
103
103
|
end
|
104
104
|
|
105
105
|
|
@@ -112,7 +112,7 @@ module MasterCard
|
|
112
112
|
#@raise [APIException] an exception from the response status
|
113
113
|
#
|
114
114
|
|
115
|
-
return self.class.execute("
|
115
|
+
return self.class.execute("61fe408d-ca42-467a-a51f-ae92377bfdfc", self)
|
116
116
|
end
|
117
117
|
|
118
118
|
|
@@ -125,7 +125,7 @@ module MasterCard
|
|
125
125
|
#@param Dict mapObj, containing the required parameters to create a new object
|
126
126
|
#@return [Card] of the response of created instance.
|
127
127
|
#@raise [APIException] an exception from the response status
|
128
|
-
return self.execute("
|
128
|
+
return self.execute("0f1e097f-f374-4b73-8275-a0fe2d59082a", Card.new(mapObj))
|
129
129
|
end
|
130
130
|
|
131
131
|
|
@@ -37,9 +37,9 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'11a0da60-2960-4955-bf17-535e42cdb621' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines/carddisable", "delete", [], []),
|
41
|
+
'4bf11d4d-a2b4-4d26-90b7-e66a7390bd65' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines/carddisable", "query", [], []),
|
42
|
+
'0f14f81d-bc29-40e5-9445-fb7d28c4d1de' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines/carddisable", "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("11a0da60-2960-4955-bf17-535e42cdb621", 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("11a0da60-2960-4955-bf17-535e42cdb621", 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("4bf11d4d-a2b4-4d26-90b7-e66a7390bd65",Carddisable.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 [Carddisable] of the response of created instance.
|
128
128
|
#@raise [APIException] an exception from the response status
|
129
|
-
return self.execute("
|
129
|
+
return self.execute("0f14f81d-bc29-40e5-9445-fb7d28c4d1de", Carddisable.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
|
+
'4007bf29-ccee-4af3-9da8-cee51ae22eb7' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/channels", "delete", [], []),
|
41
|
+
'ec11e8eb-bd5a-4a1a-bf94-cc176235ca8f' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/channels", "query", [], []),
|
42
|
+
'45a0cfeb-56b7-4906-b7a7-db66c372aa6c' => 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("4007bf29-ccee-4af3-9da8-cee51ae22eb7", 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("4007bf29-ccee-4af3-9da8-cee51ae22eb7", 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("ec11e8eb-bd5a-4a1a-bf94-cc176235ca8f",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("45a0cfeb-56b7-4906-b7a7-db66c372aa6c", 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
|
+
'688aaeb6-cc72-4fdc-b926-76c89af49080' => OperationConfig.new("/issuer/v1/card/{uuid}/controls", "delete", [], []),
|
41
|
+
'655d611a-69f4-49ca-856a-1aa5d7a7b79c' => OperationConfig.new("/issuer/v1/card/{uuid}/controls", "query", [], []),
|
42
|
+
'5d0d5500-8856-4faf-8753-2ea793b627c6' => 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("688aaeb6-cc72-4fdc-b926-76c89af49080", 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("688aaeb6-cc72-4fdc-b926-76c89af49080", 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("655d611a-69f4-49ca-856a-1aa5d7a7b79c",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("5d0d5500-8856-4faf-8753-2ea793b627c6", Controls.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
|
+
'9e08979e-b5fc-4b58-b58d-10c91fc9bda9' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/crossborder", "delete", [], []),
|
41
|
+
'04e75575-b816-44bb-85bc-7824bb98da68' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/crossborder", "query", [], []),
|
42
|
+
'23d527b5-2a09-441d-8ba4-4dfe7a36113c' => 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("9e08979e-b5fc-4b58-b58d-10c91fc9bda9", 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("9e08979e-b5fc-4b58-b58d-10c91fc9bda9", 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("04e75575-b816-44bb-85bc-7824bb98da68",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("23d527b5-2a09-441d-8ba4-4dfe7a36113c", Crossborder.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
|
+
'743a2509-54af-427b-85a4-9c3f4f122e3f' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines", "delete", [], []),
|
41
|
+
'6b0d4472-7721-4dde-a835-a686b31a3388' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines", "query", [], []),
|
42
|
+
'a5833eeb-ddb0-43e4-9d2f-43625bfef654' => 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("743a2509-54af-427b-85a4-9c3f4f122e3f", 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("743a2509-54af-427b-85a4-9c3f4f122e3f", 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("6b0d4472-7721-4dde-a835-a686b31a3388",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("a5833eeb-ddb0-43e4-9d2f-43625bfef654", Declines.new(mapObj))
|
130
130
|
end
|
131
131
|
|
132
132
|
|
@@ -0,0 +1,86 @@
|
|
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 Notification < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'9b710b6c-f803-4c91-a626-5313d07eb0a6' => OperationConfig.new("/issuer/v1/test/notificationUrl", "create", ["x-request-endpoint-uri"], []),
|
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
|
+
def self.create(mapObj)
|
61
|
+
#
|
62
|
+
#Creates object of type Notification
|
63
|
+
#
|
64
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
65
|
+
#@return [Notification] of the response of created instance.
|
66
|
+
#@raise [APIException] an exception from the response status
|
67
|
+
return self.execute("9b710b6c-f803-4c91-a626-5313d07eb0a6", Notification.new(mapObj))
|
68
|
+
end
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
@@ -37,7 +37,7 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'ba067d72-27fe-4850-a069-14016df4ef4a' => 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("ba067d72-27fe-4850-a069-14016df4ef4a", Verify.new(mapObj))
|
68
68
|
end
|
69
69
|
|
70
70
|
|
@@ -10,4 +10,5 @@ require 'mastercard/api/spendalerts/channel'
|
|
10
10
|
require 'mastercard/api/spendalerts/controls'
|
11
11
|
require 'mastercard/api/spendalerts/crossborder'
|
12
12
|
require 'mastercard/api/spendalerts/declines'
|
13
|
+
require 'mastercard/api/spendalerts/notification'
|
13
14
|
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.2
|
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-02-
|
11
|
+
date: 2017-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mastercard_api_core
|
@@ -59,6 +59,7 @@ files:
|
|
59
59
|
- lib/mastercard/api/spendalerts/controls.rb
|
60
60
|
- lib/mastercard/api/spendalerts/crossborder.rb
|
61
61
|
- lib/mastercard/api/spendalerts/declines.rb
|
62
|
+
- lib/mastercard/api/spendalerts/notification.rb
|
62
63
|
- lib/mastercard/api/spendalerts/resourceconfig.rb
|
63
64
|
- lib/mastercard/api/spendalerts/verify.rb
|
64
65
|
- lib/mastercard_spendalerts.rb
|