mastercard_spendcontrols 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,86 @@
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 Verify < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '2c2f1436-3e8f-4649-bfcb-19dc1787044e' => OperationConfig.new("/issuer/v1/card/verify/{uuid}", "create", [], []),
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
+ 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("2c2f1436-3e8f-4649-bfcb-19dc1787044e", Verify.new(mapObj))
68
+ end
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+ end
77
+ end
78
+ end
79
+ end
80
+
81
+
82
+
83
+
84
+
85
+
86
+
@@ -0,0 +1,19 @@
1
+ require 'mastercard_api_core'
2
+
3
+ require 'mastercard/api/spendcontrols/resourceconfig'
4
+
5
+ require 'mastercard/api/spendcontrols/alertall'
6
+ require 'mastercard/api/spendcontrols/alerts'
7
+ require 'mastercard/api/spendcontrols/amount'
8
+ require 'mastercard/api/spendcontrols/amountdecline'
9
+ require 'mastercard/api/spendcontrols/card'
10
+ require 'mastercard/api/spendcontrols/carddisable'
11
+ require 'mastercard/api/spendcontrols/channel'
12
+ require 'mastercard/api/spendcontrols/channeldecline'
13
+ require 'mastercard/api/spendcontrols/controls'
14
+ require 'mastercard/api/spendcontrols/crossborder'
15
+ require 'mastercard/api/spendcontrols/crossborderdecline'
16
+ require 'mastercard/api/spendcontrols/declineall'
17
+ require 'mastercard/api/spendcontrols/declines'
18
+ require 'mastercard/api/spendcontrols/notification'
19
+ require 'mastercard/api/spendcontrols/verify'
metadata ADDED
@@ -0,0 +1,95 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mastercard_spendcontrols
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - MasterCard Worldwide
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-02-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: mastercard_api_core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.4.0
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.4.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 1.4.0
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.4.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: ci_reporter_minitest
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ description: MasterCard Spendcontrols Description
48
+ email:
49
+ - APISupport@mastercard.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - lib/mastercard/api/spendcontrols/alertall.rb
55
+ - lib/mastercard/api/spendcontrols/alerts.rb
56
+ - lib/mastercard/api/spendcontrols/amount.rb
57
+ - lib/mastercard/api/spendcontrols/amountdecline.rb
58
+ - lib/mastercard/api/spendcontrols/card.rb
59
+ - lib/mastercard/api/spendcontrols/carddisable.rb
60
+ - lib/mastercard/api/spendcontrols/channel.rb
61
+ - lib/mastercard/api/spendcontrols/channeldecline.rb
62
+ - lib/mastercard/api/spendcontrols/controls.rb
63
+ - lib/mastercard/api/spendcontrols/crossborder.rb
64
+ - lib/mastercard/api/spendcontrols/crossborderdecline.rb
65
+ - lib/mastercard/api/spendcontrols/declineall.rb
66
+ - lib/mastercard/api/spendcontrols/declines.rb
67
+ - lib/mastercard/api/spendcontrols/notification.rb
68
+ - lib/mastercard/api/spendcontrols/resourceconfig.rb
69
+ - lib/mastercard/api/spendcontrols/verify.rb
70
+ - lib/mastercard_spendcontrols.rb
71
+ homepage: https://developer.mastercard.com
72
+ licenses:
73
+ - BSD-2-Clause
74
+ metadata: {}
75
+ post_install_message:
76
+ rdoc_options: []
77
+ require_paths:
78
+ - lib
79
+ required_ruby_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ required_rubygems_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ requirements: []
90
+ rubyforge_project:
91
+ rubygems_version: 2.5.1
92
+ signing_key:
93
+ specification_version: 4
94
+ summary: MasterCard Spendcontrols SDK
95
+ test_files: []