mastercard_spendcontrols 1.0.2 → 1.0.3
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 +12 -12
- data/lib/mastercard/api/spendcontrols/alerts.rb +12 -12
- data/lib/mastercard/api/spendcontrols/amount.rb +12 -12
- data/lib/mastercard/api/spendcontrols/amountdecline.rb +12 -12
- data/lib/mastercard/api/spendcontrols/batch.rb +116 -0
- data/lib/mastercard/api/spendcontrols/budgetalert.rb +104 -0
- data/lib/mastercard/api/spendcontrols/budgetalertwithbudgetid.rb +160 -0
- data/lib/mastercard/api/spendcontrols/budgetdecline.rb +104 -0
- data/lib/mastercard/api/spendcontrols/budgetdeclinewithbudgetid.rb +160 -0
- data/lib/mastercard/api/spendcontrols/card.rb +44 -14
- data/lib/mastercard/api/spendcontrols/channel.rb +12 -12
- data/lib/mastercard/api/spendcontrols/channeldecline.rb +12 -12
- data/lib/mastercard/api/spendcontrols/combinationctrlsalertresource.rb +104 -0
- data/lib/mastercard/api/spendcontrols/combinationctrlsalertresourcefilterid.rb +160 -0
- data/lib/mastercard/api/spendcontrols/combinationctrlsdeclineresource.rb +86 -0
- data/lib/mastercard/api/spendcontrols/combinationctrlsdeclineresourcefilterid.rb +160 -0
- data/lib/mastercard/api/spendcontrols/combinationctrlsdeclinesresource.rb +87 -0
- data/lib/mastercard/api/spendcontrols/controls.rb +12 -12
- data/lib/mastercard/api/spendcontrols/controlshistory.rb +7 -7
- data/lib/mastercard/api/spendcontrols/crossborder.rb +12 -12
- data/lib/mastercard/api/spendcontrols/crossborderdecline.rb +12 -12
- data/lib/mastercard/api/spendcontrols/declineall.rb +12 -12
- data/lib/mastercard/api/spendcontrols/declines.rb +12 -12
- data/lib/mastercard/api/spendcontrols/geolocationalert.rb +12 -12
- data/lib/mastercard/api/spendcontrols/geolocationdecline.rb +12 -12
- data/lib/mastercard/api/spendcontrols/merchantcategorycodealert.rb +12 -12
- data/lib/mastercard/api/spendcontrols/merchantcategorycodedecline.rb +12 -12
- data/lib/mastercard/api/spendcontrols/notification.rb +7 -7
- data/lib/mastercard/api/spendcontrols/resourceconfig.rb +6 -1
- data/lib/mastercard/api/spendcontrols/txnhistory.rb +7 -7
- data/lib/mastercard/api/spendcontrols/verify.rb +7 -7
- data/lib/mastercard_spendcontrols.rb +10 -0
- metadata +12 -2
@@ -37,23 +37,23 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'75486ee3-ded9-4e27-88b0-d8fc2088440e' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/crossborder", "delete", [], []),
|
41
|
+
'd58469ac-6ed8-4f19-9348-8585f8dcaac5' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/crossborder", "query", [], []),
|
42
|
+
'dcdbe9b9-9598-4088-abfd-85e4796fd058' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/crossborder", "create", [], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
46
46
|
protected
|
47
47
|
|
48
|
-
def self.getOperationConfig(
|
49
|
-
if @__store.key?(
|
50
|
-
return @__store[
|
48
|
+
def self.getOperationConfig(operationUUID)
|
49
|
+
if @__store.key?(operationUUID)
|
50
|
+
return @__store[operationUUID]
|
51
51
|
end
|
52
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
52
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
53
53
|
end
|
54
54
|
|
55
55
|
def self.getOperationMetadata()
|
56
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
56
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
57
57
|
end
|
58
58
|
|
59
59
|
public
|
@@ -83,7 +83,7 @@ module MasterCard
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
return self.execute("
|
86
|
+
return self.execute("75486ee3-ded9-4e27-88b0-d8fc2088440e", 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("75486ee3-ded9-4e27-88b0-d8fc2088440e", 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("d58469ac-6ed8-4f19-9348-8585f8dcaac5",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("dcdbe9b9-9598-4088-abfd-85e4796fd058", Crossborderdecline.new(mapObj))
|
130
130
|
end
|
131
131
|
|
132
132
|
|
@@ -37,23 +37,23 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'7f29e6a6-ca35-4b2a-a0c7-ace5df500bd7' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/all", "delete", [], []),
|
41
|
+
'47074fa5-6a55-46a8-960e-f09526134fe6' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/all", "query", [], []),
|
42
|
+
'868af762-d728-4c3a-91c7-1a92106f565a' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/all", "create", [], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
46
46
|
protected
|
47
47
|
|
48
|
-
def self.getOperationConfig(
|
49
|
-
if @__store.key?(
|
50
|
-
return @__store[
|
48
|
+
def self.getOperationConfig(operationUUID)
|
49
|
+
if @__store.key?(operationUUID)
|
50
|
+
return @__store[operationUUID]
|
51
51
|
end
|
52
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
52
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
53
53
|
end
|
54
54
|
|
55
55
|
def self.getOperationMetadata()
|
56
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
56
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
57
57
|
end
|
58
58
|
|
59
59
|
public
|
@@ -83,7 +83,7 @@ module MasterCard
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
return self.execute("
|
86
|
+
return self.execute("7f29e6a6-ca35-4b2a-a0c7-ace5df500bd7", 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("7f29e6a6-ca35-4b2a-a0c7-ace5df500bd7", 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("47074fa5-6a55-46a8-960e-f09526134fe6",Declineall.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 [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("868af762-d728-4c3a-91c7-1a92106f565a", Declineall.new(mapObj))
|
130
130
|
end
|
131
131
|
|
132
132
|
|
@@ -37,23 +37,23 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'528ca69e-948d-4588-8214-dc1bc92c5300' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines", "delete", [], []),
|
41
|
+
'f040a421-d431-4123-93d7-832e93e34959' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines", "query", [], []),
|
42
|
+
'29ccd812-6daa-4509-a6f4-95b049e0f44b' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines", "create", [], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
46
46
|
protected
|
47
47
|
|
48
|
-
def self.getOperationConfig(
|
49
|
-
if @__store.key?(
|
50
|
-
return @__store[
|
48
|
+
def self.getOperationConfig(operationUUID)
|
49
|
+
if @__store.key?(operationUUID)
|
50
|
+
return @__store[operationUUID]
|
51
51
|
end
|
52
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
52
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
53
53
|
end
|
54
54
|
|
55
55
|
def self.getOperationMetadata()
|
56
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
56
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
57
57
|
end
|
58
58
|
|
59
59
|
public
|
@@ -83,7 +83,7 @@ module MasterCard
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
return self.execute("
|
86
|
+
return self.execute("528ca69e-948d-4588-8214-dc1bc92c5300", 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("528ca69e-948d-4588-8214-dc1bc92c5300", 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("f040a421-d431-4123-93d7-832e93e34959",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("29ccd812-6daa-4509-a6f4-95b049e0f44b", Declines.new(mapObj))
|
130
130
|
end
|
131
131
|
|
132
132
|
|
@@ -37,23 +37,23 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'9a6bd740-896e-445b-9620-8c9b10eeb3dc' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/geolocations", "delete", [], []),
|
41
|
+
'6b4b2400-68dc-43c7-a9e5-9eb34798bffb' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/geolocations", "query", [], []),
|
42
|
+
'5fb32ed0-b5f1-4333-9918-e53f9ea23cf0' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/geolocations", "create", [], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
46
46
|
protected
|
47
47
|
|
48
|
-
def self.getOperationConfig(
|
49
|
-
if @__store.key?(
|
50
|
-
return @__store[
|
48
|
+
def self.getOperationConfig(operationUUID)
|
49
|
+
if @__store.key?(operationUUID)
|
50
|
+
return @__store[operationUUID]
|
51
51
|
end
|
52
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
52
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
53
53
|
end
|
54
54
|
|
55
55
|
def self.getOperationMetadata()
|
56
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
56
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
57
57
|
end
|
58
58
|
|
59
59
|
public
|
@@ -83,7 +83,7 @@ module MasterCard
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
return self.execute("
|
86
|
+
return self.execute("9a6bd740-896e-445b-9620-8c9b10eeb3dc", 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("9a6bd740-896e-445b-9620-8c9b10eeb3dc", 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("6b4b2400-68dc-43c7-a9e5-9eb34798bffb",Geolocationalert.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 [Geolocationalert] of the response of created instance.
|
128
128
|
#@raise [APIException] an exception from the response status
|
129
|
-
return self.execute("
|
129
|
+
return self.execute("5fb32ed0-b5f1-4333-9918-e53f9ea23cf0", Geolocationalert.new(mapObj))
|
130
130
|
end
|
131
131
|
|
132
132
|
|
@@ -37,23 +37,23 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'af07395f-698d-464c-a104-7570365bc217' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/geolocations", "delete", [], []),
|
41
|
+
'11603f60-5237-4512-98d1-0a55504f9335' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/geolocations", "query", [], []),
|
42
|
+
'b61aeb69-cf7c-454e-8c61-60493941848d' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/geolocations", "create", [], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
46
46
|
protected
|
47
47
|
|
48
|
-
def self.getOperationConfig(
|
49
|
-
if @__store.key?(
|
50
|
-
return @__store[
|
48
|
+
def self.getOperationConfig(operationUUID)
|
49
|
+
if @__store.key?(operationUUID)
|
50
|
+
return @__store[operationUUID]
|
51
51
|
end
|
52
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
52
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
53
53
|
end
|
54
54
|
|
55
55
|
def self.getOperationMetadata()
|
56
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
56
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
57
57
|
end
|
58
58
|
|
59
59
|
public
|
@@ -83,7 +83,7 @@ module MasterCard
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
return self.execute("
|
86
|
+
return self.execute("af07395f-698d-464c-a104-7570365bc217", 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("af07395f-698d-464c-a104-7570365bc217", 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("11603f60-5237-4512-98d1-0a55504f9335",Geolocationdecline.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 [Geolocationdecline] of the response of created instance.
|
128
128
|
#@raise [APIException] an exception from the response status
|
129
|
-
return self.execute("
|
129
|
+
return self.execute("b61aeb69-cf7c-454e-8c61-60493941848d", Geolocationdecline.new(mapObj))
|
130
130
|
end
|
131
131
|
|
132
132
|
|
@@ -37,23 +37,23 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'eb72d9d4-dd04-4245-8775-8d738240e6c0' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/mccs", "delete", [], []),
|
41
|
+
'853acf62-9e38-4a16-b327-f14d2da5a57a' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/mccs", "query", [], []),
|
42
|
+
'cb60b100-7ccb-47fc-98f2-b290a7fca77c' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/mccs", "create", [], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
46
46
|
protected
|
47
47
|
|
48
|
-
def self.getOperationConfig(
|
49
|
-
if @__store.key?(
|
50
|
-
return @__store[
|
48
|
+
def self.getOperationConfig(operationUUID)
|
49
|
+
if @__store.key?(operationUUID)
|
50
|
+
return @__store[operationUUID]
|
51
51
|
end
|
52
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
52
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
53
53
|
end
|
54
54
|
|
55
55
|
def self.getOperationMetadata()
|
56
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
56
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
57
57
|
end
|
58
58
|
|
59
59
|
public
|
@@ -83,7 +83,7 @@ module MasterCard
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
return self.execute("
|
86
|
+
return self.execute("eb72d9d4-dd04-4245-8775-8d738240e6c0", 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("eb72d9d4-dd04-4245-8775-8d738240e6c0", 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("853acf62-9e38-4a16-b327-f14d2da5a57a",Merchantcategorycodealert.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 [Merchantcategorycodealert] of the response of created instance.
|
128
128
|
#@raise [APIException] an exception from the response status
|
129
|
-
return self.execute("
|
129
|
+
return self.execute("cb60b100-7ccb-47fc-98f2-b290a7fca77c", Merchantcategorycodealert.new(mapObj))
|
130
130
|
end
|
131
131
|
|
132
132
|
|
@@ -37,23 +37,23 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'c820a937-ba32-4955-8cfe-5bbf0751add9' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/mccs", "delete", [], []),
|
41
|
+
'704ca0c5-cba2-43b9-a796-5ac751b07912' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/mccs", "query", [], []),
|
42
|
+
'59e16d71-4a23-4336-80d1-649e5fb5b4d4' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/mccs", "create", [], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
46
46
|
protected
|
47
47
|
|
48
|
-
def self.getOperationConfig(
|
49
|
-
if @__store.key?(
|
50
|
-
return @__store[
|
48
|
+
def self.getOperationConfig(operationUUID)
|
49
|
+
if @__store.key?(operationUUID)
|
50
|
+
return @__store[operationUUID]
|
51
51
|
end
|
52
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
52
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
53
53
|
end
|
54
54
|
|
55
55
|
def self.getOperationMetadata()
|
56
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
56
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
57
57
|
end
|
58
58
|
|
59
59
|
public
|
@@ -83,7 +83,7 @@ module MasterCard
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
return self.execute("
|
86
|
+
return self.execute("c820a937-ba32-4955-8cfe-5bbf0751add9", 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("c820a937-ba32-4955-8cfe-5bbf0751add9", 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("704ca0c5-cba2-43b9-a796-5ac751b07912",Merchantcategorycodedecline.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 [Merchantcategorycodedecline] of the response of created instance.
|
128
128
|
#@raise [APIException] an exception from the response status
|
129
|
-
return self.execute("
|
129
|
+
return self.execute("59e16d71-4a23-4336-80d1-649e5fb5b4d4", Merchantcategorycodedecline.new(mapObj))
|
130
130
|
end
|
131
131
|
|
132
132
|
|
@@ -37,21 +37,21 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'0bfde8d1-433a-4975-a1aa-ecec6363f5a8' => OperationConfig.new("/issuer/spendcontrols/v1/test/notificationUrl", "create", ["x-request-endpoint-uri"], []),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
44
44
|
protected
|
45
45
|
|
46
|
-
def self.getOperationConfig(
|
47
|
-
if @__store.key?(
|
48
|
-
return @__store[
|
46
|
+
def self.getOperationConfig(operationUUID)
|
47
|
+
if @__store.key?(operationUUID)
|
48
|
+
return @__store[operationUUID]
|
49
49
|
end
|
50
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
50
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.getOperationMetadata()
|
54
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
55
55
|
end
|
56
56
|
|
57
57
|
public
|
@@ -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("0bfde8d1-433a-4975-a1aa-ecec6363f5a8", Notification.new(mapObj))
|
68
68
|
end
|
69
69
|
|
70
70
|
|
@@ -41,7 +41,8 @@ module MasterCard
|
|
41
41
|
@override = nil
|
42
42
|
@host = nil
|
43
43
|
@context = nil
|
44
|
-
@version = "1.0.
|
44
|
+
@version = "spendcontrols:1.0.3"
|
45
|
+
@jsonNative = false
|
45
46
|
|
46
47
|
Config.registerResourceConfig(self)
|
47
48
|
currentEnvironment = Config.getEnvironment()
|
@@ -76,6 +77,10 @@ module MasterCard
|
|
76
77
|
return @version
|
77
78
|
end
|
78
79
|
|
80
|
+
def getJsonNative
|
81
|
+
return @jsonNative
|
82
|
+
end
|
83
|
+
|
79
84
|
def setEnvironment(environmet)
|
80
85
|
if Environment::MAPPING.key?(environmet)
|
81
86
|
tuple = Environment::MAPPING[environmet]
|
@@ -37,21 +37,21 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'9f5146e9-4556-4380-a52d-5079df3413ee' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/transactions", "query", [], ["from","to","pageNumber","pageSize"]),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
44
44
|
protected
|
45
45
|
|
46
|
-
def self.getOperationConfig(
|
47
|
-
if @__store.key?(
|
48
|
-
return @__store[
|
46
|
+
def self.getOperationConfig(operationUUID)
|
47
|
+
if @__store.key?(operationUUID)
|
48
|
+
return @__store[operationUUID]
|
49
49
|
end
|
50
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
50
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.getOperationMetadata()
|
54
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
55
55
|
end
|
56
56
|
|
57
57
|
public
|
@@ -70,7 +70,7 @@ module MasterCard
|
|
70
70
|
#@raise [APIException] an exception from the response status
|
71
71
|
#
|
72
72
|
|
73
|
-
return self.execute("
|
73
|
+
return self.execute("9f5146e9-4556-4380-a52d-5079df3413ee",Txnhistory.new(criteria))
|
74
74
|
end
|
75
75
|
|
76
76
|
|
@@ -37,21 +37,21 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'28fdba87-b812-41ed-a13a-a50c4e866969' => OperationConfig.new("/issuer/spendcontrols/v1/card/verify/{uuid}", "create", [], []),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
44
44
|
protected
|
45
45
|
|
46
|
-
def self.getOperationConfig(
|
47
|
-
if @__store.key?(
|
48
|
-
return @__store[
|
46
|
+
def self.getOperationConfig(operationUUID)
|
47
|
+
if @__store.key?(operationUUID)
|
48
|
+
return @__store[operationUUID]
|
49
49
|
end
|
50
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
50
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.getOperationMetadata()
|
54
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
55
55
|
end
|
56
56
|
|
57
57
|
public
|
@@ -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("28fdba87-b812-41ed-a13a-a50c4e866969", Verify.new(mapObj))
|
68
68
|
end
|
69
69
|
|
70
70
|
|
@@ -6,9 +6,19 @@ require 'mastercard/api/spendcontrols/alertall'
|
|
6
6
|
require 'mastercard/api/spendcontrols/alerts'
|
7
7
|
require 'mastercard/api/spendcontrols/amount'
|
8
8
|
require 'mastercard/api/spendcontrols/amountdecline'
|
9
|
+
require 'mastercard/api/spendcontrols/batch'
|
10
|
+
require 'mastercard/api/spendcontrols/budgetalert'
|
11
|
+
require 'mastercard/api/spendcontrols/budgetalertwithbudgetid'
|
12
|
+
require 'mastercard/api/spendcontrols/budgetdecline'
|
13
|
+
require 'mastercard/api/spendcontrols/budgetdeclinewithbudgetid'
|
9
14
|
require 'mastercard/api/spendcontrols/card'
|
10
15
|
require 'mastercard/api/spendcontrols/channel'
|
11
16
|
require 'mastercard/api/spendcontrols/channeldecline'
|
17
|
+
require 'mastercard/api/spendcontrols/combinationctrlsalertresource'
|
18
|
+
require 'mastercard/api/spendcontrols/combinationctrlsalertresourcefilterid'
|
19
|
+
require 'mastercard/api/spendcontrols/combinationctrlsdeclineresource'
|
20
|
+
require 'mastercard/api/spendcontrols/combinationctrlsdeclineresourcefilterid'
|
21
|
+
require 'mastercard/api/spendcontrols/combinationctrlsdeclinesresource'
|
12
22
|
require 'mastercard/api/spendcontrols/controls'
|
13
23
|
require 'mastercard/api/spendcontrols/controlshistory'
|
14
24
|
require 'mastercard/api/spendcontrols/crossborder'
|