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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mastercard/api/spendcontrols/alertall.rb +12 -12
  3. data/lib/mastercard/api/spendcontrols/alerts.rb +12 -12
  4. data/lib/mastercard/api/spendcontrols/amount.rb +12 -12
  5. data/lib/mastercard/api/spendcontrols/amountdecline.rb +12 -12
  6. data/lib/mastercard/api/spendcontrols/batch.rb +116 -0
  7. data/lib/mastercard/api/spendcontrols/budgetalert.rb +104 -0
  8. data/lib/mastercard/api/spendcontrols/budgetalertwithbudgetid.rb +160 -0
  9. data/lib/mastercard/api/spendcontrols/budgetdecline.rb +104 -0
  10. data/lib/mastercard/api/spendcontrols/budgetdeclinewithbudgetid.rb +160 -0
  11. data/lib/mastercard/api/spendcontrols/card.rb +44 -14
  12. data/lib/mastercard/api/spendcontrols/channel.rb +12 -12
  13. data/lib/mastercard/api/spendcontrols/channeldecline.rb +12 -12
  14. data/lib/mastercard/api/spendcontrols/combinationctrlsalertresource.rb +104 -0
  15. data/lib/mastercard/api/spendcontrols/combinationctrlsalertresourcefilterid.rb +160 -0
  16. data/lib/mastercard/api/spendcontrols/combinationctrlsdeclineresource.rb +86 -0
  17. data/lib/mastercard/api/spendcontrols/combinationctrlsdeclineresourcefilterid.rb +160 -0
  18. data/lib/mastercard/api/spendcontrols/combinationctrlsdeclinesresource.rb +87 -0
  19. data/lib/mastercard/api/spendcontrols/controls.rb +12 -12
  20. data/lib/mastercard/api/spendcontrols/controlshistory.rb +7 -7
  21. data/lib/mastercard/api/spendcontrols/crossborder.rb +12 -12
  22. data/lib/mastercard/api/spendcontrols/crossborderdecline.rb +12 -12
  23. data/lib/mastercard/api/spendcontrols/declineall.rb +12 -12
  24. data/lib/mastercard/api/spendcontrols/declines.rb +12 -12
  25. data/lib/mastercard/api/spendcontrols/geolocationalert.rb +12 -12
  26. data/lib/mastercard/api/spendcontrols/geolocationdecline.rb +12 -12
  27. data/lib/mastercard/api/spendcontrols/merchantcategorycodealert.rb +12 -12
  28. data/lib/mastercard/api/spendcontrols/merchantcategorycodedecline.rb +12 -12
  29. data/lib/mastercard/api/spendcontrols/notification.rb +7 -7
  30. data/lib/mastercard/api/spendcontrols/resourceconfig.rb +6 -1
  31. data/lib/mastercard/api/spendcontrols/txnhistory.rb +7 -7
  32. data/lib/mastercard/api/spendcontrols/verify.rb +7 -7
  33. data/lib/mastercard_spendcontrols.rb +10 -0
  34. metadata +12 -2
@@ -37,23 +37,23 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
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", [], []),
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(uuid)
49
- if @__store.key?(uuid)
50
- return @__store[uuid]
48
+ def self.getOperationConfig(operationUUID)
49
+ if @__store.key?(operationUUID)
50
+ return @__store[operationUUID]
51
51
  end
52
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
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("84b4a218-6704-468e-838f-67cfbbeab4a1", mapObj)
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("84b4a218-6704-468e-838f-67cfbbeab4a1", self)
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("ef7feba5-f4bf-4012-a032-18778a3cfc76",Crossborderdecline.new(criteria))
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("130e4ba6-759d-4b1d-94c1-bf560a20a568", Crossborderdecline.new(mapObj))
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
- 'a366f86f-f6f1-4c22-9e56-75961019c445' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/all", "delete", [], []),
41
- 'b6966793-c547-4857-b483-62642fe3d994' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/all", "query", [], []),
42
- '6cd51690-8633-4141-ae70-3d5bcb19f286' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/all", "create", [], []),
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(uuid)
49
- if @__store.key?(uuid)
50
- return @__store[uuid]
48
+ def self.getOperationConfig(operationUUID)
49
+ if @__store.key?(operationUUID)
50
+ return @__store[operationUUID]
51
51
  end
52
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
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("a366f86f-f6f1-4c22-9e56-75961019c445", mapObj)
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("a366f86f-f6f1-4c22-9e56-75961019c445", self)
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("b6966793-c547-4857-b483-62642fe3d994",Declineall.new(criteria))
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("6cd51690-8633-4141-ae70-3d5bcb19f286", Declineall.new(mapObj))
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
- 'c0d85a07-9a18-4e77-8626-ddb3cf69073d' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines", "delete", [], []),
41
- '85f1237d-1d2e-4ec5-a4f9-264e769c581a' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines", "query", [], []),
42
- 'fdad2b2b-d646-4cd3-b032-14220f8cb29c' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines", "create", [], []),
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(uuid)
49
- if @__store.key?(uuid)
50
- return @__store[uuid]
48
+ def self.getOperationConfig(operationUUID)
49
+ if @__store.key?(operationUUID)
50
+ return @__store[operationUUID]
51
51
  end
52
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
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("c0d85a07-9a18-4e77-8626-ddb3cf69073d", mapObj)
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("c0d85a07-9a18-4e77-8626-ddb3cf69073d", self)
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("85f1237d-1d2e-4ec5-a4f9-264e769c581a",Declines.new(criteria))
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("fdad2b2b-d646-4cd3-b032-14220f8cb29c", Declines.new(mapObj))
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
- 'f29dd6e8-e908-40a1-ae1c-380e63a9ff69' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/geolocations", "delete", [], []),
41
- '2b70c5a2-700f-4eb3-9d17-6637a917c34a' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/geolocations", "query", [], []),
42
- 'a8d9b869-616e-4a56-854e-6c542290aa26' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/geolocations", "create", [], []),
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(uuid)
49
- if @__store.key?(uuid)
50
- return @__store[uuid]
48
+ def self.getOperationConfig(operationUUID)
49
+ if @__store.key?(operationUUID)
50
+ return @__store[operationUUID]
51
51
  end
52
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
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("f29dd6e8-e908-40a1-ae1c-380e63a9ff69", mapObj)
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("f29dd6e8-e908-40a1-ae1c-380e63a9ff69", self)
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("2b70c5a2-700f-4eb3-9d17-6637a917c34a",Geolocationalert.new(criteria))
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("a8d9b869-616e-4a56-854e-6c542290aa26", Geolocationalert.new(mapObj))
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
- 'db8fa073-adbc-4096-bf1e-5e20d4e1e111' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/geolocations", "delete", [], []),
41
- '7525fc83-bbed-4e5c-8c08-4e5965283f38' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/geolocations", "query", [], []),
42
- '31a05bb8-cf99-4c41-bd6c-2035e12fa551' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/geolocations", "create", [], []),
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(uuid)
49
- if @__store.key?(uuid)
50
- return @__store[uuid]
48
+ def self.getOperationConfig(operationUUID)
49
+ if @__store.key?(operationUUID)
50
+ return @__store[operationUUID]
51
51
  end
52
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
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("db8fa073-adbc-4096-bf1e-5e20d4e1e111", mapObj)
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("db8fa073-adbc-4096-bf1e-5e20d4e1e111", self)
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("7525fc83-bbed-4e5c-8c08-4e5965283f38",Geolocationdecline.new(criteria))
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("31a05bb8-cf99-4c41-bd6c-2035e12fa551", Geolocationdecline.new(mapObj))
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
- '2937cb10-16d5-4438-848a-628e57a46c41' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/mccs", "delete", [], []),
41
- 'a1dbf5ee-c956-42b3-bb02-a1c01b901b6f' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/mccs", "query", [], []),
42
- 'ac6c82c0-b53b-4594-a50a-a76b52b64ac0' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/alerts/mccs", "create", [], []),
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(uuid)
49
- if @__store.key?(uuid)
50
- return @__store[uuid]
48
+ def self.getOperationConfig(operationUUID)
49
+ if @__store.key?(operationUUID)
50
+ return @__store[operationUUID]
51
51
  end
52
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
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("2937cb10-16d5-4438-848a-628e57a46c41", mapObj)
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("2937cb10-16d5-4438-848a-628e57a46c41", self)
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("a1dbf5ee-c956-42b3-bb02-a1c01b901b6f",Merchantcategorycodealert.new(criteria))
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("ac6c82c0-b53b-4594-a50a-a76b52b64ac0", Merchantcategorycodealert.new(mapObj))
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
- '550a7b9c-8159-4123-888b-c5da06646d73' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/mccs", "delete", [], []),
41
- 'dcb512d9-8ba5-4f60-bf36-68a55407e52e' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/mccs", "query", [], []),
42
- '4977329d-2a5b-45de-b8fc-3110fe0c3465' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/controls/declines/mccs", "create", [], []),
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(uuid)
49
- if @__store.key?(uuid)
50
- return @__store[uuid]
48
+ def self.getOperationConfig(operationUUID)
49
+ if @__store.key?(operationUUID)
50
+ return @__store[operationUUID]
51
51
  end
52
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
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("550a7b9c-8159-4123-888b-c5da06646d73", mapObj)
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("550a7b9c-8159-4123-888b-c5da06646d73", self)
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("dcb512d9-8ba5-4f60-bf36-68a55407e52e",Merchantcategorycodedecline.new(criteria))
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("4977329d-2a5b-45de-b8fc-3110fe0c3465", Merchantcategorycodedecline.new(mapObj))
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
- 'd9359b5c-f886-462a-8a67-464790e94dcd' => OperationConfig.new("/issuer/spendcontrols/v1/test/notificationUrl", "create", ["x-request-endpoint-uri"], []),
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(uuid)
47
- if @__store.key?(uuid)
48
- return @__store[uuid]
46
+ def self.getOperationConfig(operationUUID)
47
+ if @__store.key?(operationUUID)
48
+ return @__store[operationUUID]
49
49
  end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
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("d9359b5c-f886-462a-8a67-464790e94dcd", Notification.new(mapObj))
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.2"
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
- '790e21ca-eabc-4c30-addd-8fc8670e6702' => OperationConfig.new("/issuer/spendcontrols/v1/card/{uuid}/transactions", "query", [], ["from","to","pageNumber","pageSize"]),
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(uuid)
47
- if @__store.key?(uuid)
48
- return @__store[uuid]
46
+ def self.getOperationConfig(operationUUID)
47
+ if @__store.key?(operationUUID)
48
+ return @__store[operationUUID]
49
49
  end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
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("790e21ca-eabc-4c30-addd-8fc8670e6702",Txnhistory.new(criteria))
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
- '4a153ad8-9a84-46e7-9e0e-ca9c3fa7e358' => OperationConfig.new("/issuer/spendcontrols/v1/card/verify/{uuid}", "create", [], []),
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(uuid)
47
- if @__store.key?(uuid)
48
- return @__store[uuid]
46
+ def self.getOperationConfig(operationUUID)
47
+ if @__store.key?(operationUUID)
48
+ return @__store[operationUUID]
49
49
  end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
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("4a153ad8-9a84-46e7-9e0e-ca9c3fa7e358", Verify.new(mapObj))
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'