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.
@@ -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
- module API
33
- module Spendalerts
34
- class Verify < MasterCard::Core::Model::BaseObject
35
- include MasterCard::Core::Model
36
- #
33
+ module API
34
+ module Spendalerts
35
+ class Verify < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
37
38
 
38
- @__store = {
39
- '52e0d01c-d613-46c1-9b87-f3f8f7e0f495' => OperationConfig.new("/issuer/v1/card/verify/{uuid}", "create", [], []),
40
-
41
- }
39
+ @__store = {
40
+ '885568b9-094b-4594-b74b-62bc0cf9fa6e' => OperationConfig.new("/issuer/v1/card/verify/{uuid}", "create", [], []),
41
+
42
+ }
42
43
 
43
- protected
44
+ protected
44
45
 
45
- def self.getOperationConfig(uuid)
46
- if @__store.key?(uuid)
47
- return @__store[uuid]
48
- end
49
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
- end
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
- def self.getOperationMetadata()
53
- return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
54
- end
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
+ end
55
56
 
56
- public
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
- end
74
- end
75
- end
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
- require 'mastercard/api/spendalerts/skdconfig'
3
- require 'mastercard/api/spendalerts/declines'
4
- require 'mastercard/api/spendalerts/controls'
5
- require 'mastercard/api/spendalerts/crossborder'
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.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: 2016-11-18 00:00:00.000000000 Z
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.2.0
19
+ version: 1.4.0
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.2.0
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.2.0
29
+ version: 1.4.0
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.2.0
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/skdconfig.rb
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