mastercard_spendalerts 1.0.0 → 1.0.1
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 +76 -68
- data/lib/mastercard/api/spendalerts/amount.rb +76 -68
- data/lib/mastercard/api/spendalerts/card.rb +76 -69
- data/lib/mastercard/api/spendalerts/carddisable.rb +76 -68
- data/lib/mastercard/api/spendalerts/channel.rb +76 -68
- data/lib/mastercard/api/spendalerts/controls.rb +76 -68
- data/lib/mastercard/api/spendalerts/crossborder.rb +76 -68
- data/lib/mastercard/api/spendalerts/declines.rb +76 -68
- data/lib/mastercard/api/spendalerts/{skdconfig.rb → resourceconfig.rb} +70 -22
- data/lib/mastercard/api/spendalerts/verify.rb +35 -32
- data/lib/mastercard_spendalerts.rb +9 -7
- metadata +7 -7
@@ -27,52 +27,55 @@
|
|
27
27
|
|
28
28
|
|
29
29
|
require "mastercard/core/model"
|
30
|
+
require "mastercard/core/baseobject"
|
30
31
|
|
31
32
|
module MasterCard
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
33
|
+
module API
|
34
|
+
module Spendalerts
|
35
|
+
class Verify < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
37
38
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
@__store = {
|
40
|
+
'885568b9-094b-4594-b74b-62bc0cf9fa6e' => OperationConfig.new("/issuer/v1/card/verify/{uuid}", "create", [], []),
|
41
|
+
|
42
|
+
}
|
42
43
|
|
43
|
-
|
44
|
+
protected
|
44
45
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
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
|
51
52
|
|
52
|
-
|
53
|
-
|
54
|
-
|
53
|
+
def self.getOperationMetadata()
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
55
|
+
end
|
55
56
|
|
56
|
-
|
57
|
+
public
|
57
58
|
|
58
|
-
def self.create(mapObj)
|
59
|
-
#
|
60
|
-
#Creates object of type Verify
|
61
|
-
#
|
62
|
-
#@param Dict mapObj, containing the required parameters to create a new object
|
63
|
-
#@return Verify of the response of created instance.
|
64
|
-
#
|
65
|
-
return self.execute("52e0d01c-d613-46c1-9b87-f3f8f7e0f495", Verify.new(mapObj))
|
66
|
-
end
|
67
59
|
|
60
|
+
def self.create(mapObj)
|
61
|
+
#
|
62
|
+
#Creates object of type Verify
|
63
|
+
#
|
64
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
65
|
+
#@return [Verify] of the response of created instance.
|
66
|
+
#@raise [APIException] an exception from the response status
|
67
|
+
return self.execute("885568b9-094b-4594-b74b-62bc0cf9fa6e", Verify.new(mapObj))
|
68
|
+
end
|
68
69
|
|
69
70
|
|
70
71
|
|
71
72
|
|
72
73
|
|
73
|
-
|
74
|
-
|
75
|
-
|
74
|
+
|
75
|
+
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
76
79
|
end
|
77
80
|
|
78
81
|
|
@@ -1,11 +1,13 @@
|
|
1
1
|
require 'mastercard_api_core'
|
2
|
-
|
3
|
-
require 'mastercard/api/spendalerts/
|
4
|
-
|
5
|
-
require 'mastercard/api/spendalerts/
|
2
|
+
|
3
|
+
require 'mastercard/api/spendalerts/resourceconfig'
|
4
|
+
|
5
|
+
require 'mastercard/api/spendalerts/alerts'
|
6
|
+
require 'mastercard/api/spendalerts/amount'
|
6
7
|
require 'mastercard/api/spendalerts/card'
|
7
8
|
require 'mastercard/api/spendalerts/carddisable'
|
8
|
-
require 'mastercard/api/spendalerts/amount'
|
9
|
-
require 'mastercard/api/spendalerts/verify'
|
10
|
-
require 'mastercard/api/spendalerts/alerts'
|
11
9
|
require 'mastercard/api/spendalerts/channel'
|
10
|
+
require 'mastercard/api/spendalerts/controls'
|
11
|
+
require 'mastercard/api/spendalerts/crossborder'
|
12
|
+
require 'mastercard/api/spendalerts/declines'
|
13
|
+
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MasterCard Worldwide
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mastercard_api_core
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.4.0
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.
|
22
|
+
version: 1.4.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.
|
29
|
+
version: 1.4.0
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.
|
32
|
+
version: 1.4.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: ci_reporter_minitest
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +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/
|
62
|
+
- lib/mastercard/api/spendalerts/resourceconfig.rb
|
63
63
|
- lib/mastercard/api/spendalerts/verify.rb
|
64
64
|
- lib/mastercard_spendalerts.rb
|
65
65
|
homepage: https://developer.mastercard.com
|