mastercard_spendcontrols 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mastercard/api/spendcontrols/alertall.rb +7 -7
- data/lib/mastercard/api/spendcontrols/alerts.rb +7 -7
- data/lib/mastercard/api/spendcontrols/amount.rb +7 -7
- data/lib/mastercard/api/spendcontrols/amountdecline.rb +7 -7
- data/lib/mastercard/api/spendcontrols/card.rb +24 -7
- data/lib/mastercard/api/spendcontrols/channel.rb +7 -7
- data/lib/mastercard/api/spendcontrols/channeldecline.rb +7 -7
- data/lib/mastercard/api/spendcontrols/controls.rb +7 -7
- data/lib/mastercard/api/spendcontrols/controlshistory.rb +87 -0
- data/lib/mastercard/api/spendcontrols/crossborder.rb +7 -7
- data/lib/mastercard/api/spendcontrols/crossborderdecline.rb +7 -7
- data/lib/mastercard/api/spendcontrols/declineall.rb +7 -7
- data/lib/mastercard/api/spendcontrols/declines.rb +7 -7
- data/lib/mastercard/api/spendcontrols/{carddisable.rb → geolocationalert.rb} +17 -17
- data/lib/mastercard/api/spendcontrols/geolocationdecline.rb +148 -0
- data/lib/mastercard/api/spendcontrols/merchantcategorycodealert.rb +148 -0
- data/lib/mastercard/api/spendcontrols/merchantcategorycodedecline.rb +148 -0
- data/lib/mastercard/api/spendcontrols/notification.rb +2 -2
- data/lib/mastercard/api/spendcontrols/resourceconfig.rb +1 -1
- data/lib/mastercard/api/spendcontrols/txnhistory.rb +87 -0
- data/lib/mastercard/api/spendcontrols/verify.rb +2 -2
- data/lib/mastercard_spendcontrols.rb +6 -1
- metadata +8 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8b815923ff6baf02f73e5bf6ada892da034f30d
|
4
|
+
data.tar.gz: b6152ac3f1a529363157e94c2c349d459675d4c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f57fabbb428a5c784e27b39c667ab660487f6256b545c91f3108feb3d9b211601c87dad36d3e4f4969b345701b6859b9c483d95542ec53be082b2c557746864a
|
7
|
+
data.tar.gz: 7b660c3f6d02543bdca649b7f55018f1dbd6811108fdb962f17e416367c8ad2091cb51462f20ea20315d63aea56b969d66b339ead1adc9f50a0d966eada4f1af
|
@@ -37,9 +37,9 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'53c55052-5808-4b77-ac52-454f154fbf81' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/all", "delete", [], []),
|
41
|
+
'35fc8968-a349-4b2f-935c-77a7a3f7b4bd' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/all", "query", [], []),
|
42
|
+
'6da66199-ce40-4b76-a0da-c0d25d26d86a' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/all", "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("53c55052-5808-4b77-ac52-454f154fbf81", 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("53c55052-5808-4b77-ac52-454f154fbf81", 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("35fc8968-a349-4b2f-935c-77a7a3f7b4bd",Alertall.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 [Alertall] of the response of created instance.
|
128
128
|
#@raise [APIException] an exception from the response status
|
129
|
-
return self.execute("
|
129
|
+
return self.execute("6da66199-ce40-4b76-a0da-c0d25d26d86a", Alertall.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
|
+
'8307f215-af2d-4bbf-a12d-69e4e0b02067' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts", "delete", [], []),
|
41
|
+
'eb3d8f9f-085a-4002-98e7-0fda9f52f5ff' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts", "query", [], []),
|
42
|
+
'209ab3d3-c9da-44f5-9d7a-c0eb22d53fb9' => OperationConfig.new("/issuer/spendcontrols/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("8307f215-af2d-4bbf-a12d-69e4e0b02067", 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("8307f215-af2d-4bbf-a12d-69e4e0b02067", 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("eb3d8f9f-085a-4002-98e7-0fda9f52f5ff",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("209ab3d3-c9da-44f5-9d7a-c0eb22d53fb9", 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
|
+
'27e3b26a-7818-4153-aff9-a3d5b66f591a' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/transactionamount", "delete", [], []),
|
41
|
+
'3eacb232-5fbc-4130-bd9f-f5ec70414980' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/transactionamount", "query", [], []),
|
42
|
+
'540b1cf7-e6b2-48c4-9ffa-353d9913d000' => OperationConfig.new("/issuer/spendcontrols/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("27e3b26a-7818-4153-aff9-a3d5b66f591a", 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("27e3b26a-7818-4153-aff9-a3d5b66f591a", 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("3eacb232-5fbc-4130-bd9f-f5ec70414980",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("540b1cf7-e6b2-48c4-9ffa-353d9913d000", 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
|
+
'00cff725-21c0-4f34-8d18-cead0722a7df' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/transactionamount", "create", [], []),
|
41
|
+
'0900e30d-ed5b-4d72-bc12-9fbbcaad3976' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/transactionamount", "delete", [], []),
|
42
|
+
'969fe2b1-fcfb-491f-953c-81b19789f69b' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/transactionamount", "query", [], []),
|
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 [Amountdecline] of the response of created instance.
|
68
68
|
#@raise [APIException] an exception from the response status
|
69
|
-
return self.execute("
|
69
|
+
return self.execute("00cff725-21c0-4f34-8d18-cead0722a7df", Amountdecline.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("0900e30d-ed5b-4d72-bc12-9fbbcaad3976", 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("0900e30d-ed5b-4d72-bc12-9fbbcaad3976", self)
|
116
116
|
end
|
117
117
|
|
118
118
|
|
@@ -131,7 +131,7 @@ module MasterCard
|
|
131
131
|
#@raise [APIException] an exception from the response status
|
132
132
|
#
|
133
133
|
|
134
|
-
return self.execute("
|
134
|
+
return self.execute("969fe2b1-fcfb-491f-953c-81b19789f69b",Amountdecline.new(criteria))
|
135
135
|
end
|
136
136
|
|
137
137
|
|
@@ -37,9 +37,10 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'8766533b-a891-40ce-ac0b-286976ec9a9f' => OperationConfig.new("/issuer/spendcontrols/v1/card", "create", [], []),
|
41
|
+
'89f6737a-642a-4705-9d15-3c8285fac3c5' => OperationConfig.new("/issuer/spendcontrols/v1/card/uuid", "create", [], []),
|
42
|
+
'40223e8b-346b-4797-83ca-31e0c16ae6b6' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}", "delete", [], []),
|
43
|
+
'd0fb3550-785f-4222-869f-1b83f2318772' => OperationConfig.new("/issuer/spendcontrols/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("8766533b-a891-40ce-ac0b-286976ec9a9f", 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("89f6737a-642a-4705-9d15-3c8285fac3c5", 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("40223e8b-346b-4797-83ca-31e0c16ae6b6", 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("40223e8b-346b-4797-83ca-31e0c16ae6b6", 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("d0fb3550-785f-4222-869f-1b83f2318772", 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
|
+
'2128dfbd-be8f-4749-a260-cc486db575bc' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/channels", "delete", [], []),
|
41
|
+
'775f9397-ae3a-4b84-bdfc-16eccb3b6d6a' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/channels", "query", [], []),
|
42
|
+
'f8c8c3b4-034f-4e9a-9b8b-5725260e6014' => OperationConfig.new("/issuer/spendcontrols/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("2128dfbd-be8f-4749-a260-cc486db575bc", 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("2128dfbd-be8f-4749-a260-cc486db575bc", 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("775f9397-ae3a-4b84-bdfc-16eccb3b6d6a",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("f8c8c3b4-034f-4e9a-9b8b-5725260e6014", 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
|
+
'dc0f34b0-ebef-4edb-8a52-bca2f0f24f7f' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/channels", "delete", [], []),
|
41
|
+
'219736b3-6fde-4581-a542-de7c9717680a' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/channels", "query", [], []),
|
42
|
+
'0af40579-daeb-4f3b-9cbc-c97876bda461' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/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("dc0f34b0-ebef-4edb-8a52-bca2f0f24f7f", 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("dc0f34b0-ebef-4edb-8a52-bca2f0f24f7f", 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("219736b3-6fde-4581-a542-de7c9717680a",Channeldecline.new(criteria))
|
119
119
|
end
|
120
120
|
|
121
121
|
|
@@ -126,7 +126,7 @@ module MasterCard
|
|
126
126
|
#@param Dict mapObj, containing the required parameters to create a new object
|
127
127
|
#@return [Channeldecline] of the response of created instance.
|
128
128
|
#@raise [APIException] an exception from the response status
|
129
|
-
return self.execute("
|
129
|
+
return self.execute("0af40579-daeb-4f3b-9cbc-c97876bda461", Channeldecline.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
|
+
'4d9aede9-6e73-40e3-a2f2-1002887a6cf3' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls", "delete", [], []),
|
41
|
+
'2914ab7f-411a-4153-b422-bc75e7740b9d' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls", "query", [], []),
|
42
|
+
'b47956cd-c328-4e5a-a3e6-206252d1dc6e' => OperationConfig.new("/issuer/spendcontrols/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("4d9aede9-6e73-40e3-a2f2-1002887a6cf3", 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("4d9aede9-6e73-40e3-a2f2-1002887a6cf3", 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("2914ab7f-411a-4153-b422-bc75e7740b9d",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("b47956cd-c328-4e5a-a3e6-206252d1dc6e", 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 Spendcontrols
|
35
|
+
class Controlshistory < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'9813fdff-7a94-4cdf-a49c-f62f86448d3c' => OperationConfig.new("/issuer/spendcontrols/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("9813fdff-7a94-4cdf-a49c-f62f86448d3c",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
|
+
'ccf87432-5234-46ab-805e-3ad66aacae7d' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/crossborder", "delete", [], []),
|
41
|
+
'5dd3a077-01ee-4557-b497-9e1ae4532d73' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/crossborder", "query", [], []),
|
42
|
+
'a1288f20-6670-432b-9753-62c751ff3f49' => OperationConfig.new("/issuer/spendcontrols/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("ccf87432-5234-46ab-805e-3ad66aacae7d", 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("ccf87432-5234-46ab-805e-3ad66aacae7d", 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("5dd3a077-01ee-4557-b497-9e1ae4532d73",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("a1288f20-6670-432b-9753-62c751ff3f49", 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
|
+
'84b4a218-6704-468e-838f-67cfbbeab4a1' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/crossborder", "delete", [], []),
|
41
|
+
'ef7feba5-f4bf-4012-a032-18778a3cfc76' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/crossborder", "query", [], []),
|
42
|
+
'130e4ba6-759d-4b1d-94c1-bf560a20a568' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/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("84b4a218-6704-468e-838f-67cfbbeab4a1", 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("84b4a218-6704-468e-838f-67cfbbeab4a1", 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("ef7feba5-f4bf-4012-a032-18778a3cfc76",Crossborderdecline.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 [Crossborderdecline] of the response of created instance.
|
128
128
|
#@raise [APIException] an exception from the response status
|
129
|
-
return self.execute("
|
129
|
+
return self.execute("130e4ba6-759d-4b1d-94c1-bf560a20a568", Crossborderdecline.new(mapObj))
|
130
130
|
end
|
131
131
|
|
132
132
|
|