mastercard_moneysend 1.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f5600678dfe5e0d733de6d977f85661fd222f11b
4
+ data.tar.gz: 53e6b10784486b7f6958aaa811aaf12811efa13a
5
+ SHA512:
6
+ metadata.gz: 428c723d901b46d6c0fb474c90aac02f609df950cdb59ea6b8cc5a704cdf0f32c2bbed41194ac5a1d426c44d9f3a0bb93b2a6cc0947cc09aceaba7c9cec20ab5
7
+ data.tar.gz: 80efd1e8c8ed49028c7c55ee65ba78d969721cdb47b75e5eedcdf93b48a54590323ad35fa269999c0bd88b82ad024ea7f3f7ec072d0a5134e63ac72eaf09117f
@@ -0,0 +1,83 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module Moneysend
34
+ class CardEligibility < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ 'e0745dd7-c8af-4a78-9e92-e84abaaf0877' => OperationConfig.new("/moneysend/v3/eligibility/pan", "update", [], []),
40
+
41
+ }
42
+
43
+ protected
44
+
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
51
+
52
+ def self.getOperationMetadata()
53
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
54
+ end
55
+
56
+ public
57
+
58
+
59
+ def read
60
+ #
61
+ #Updates an object of type CardEligibility
62
+ #
63
+ #@return CardEligibility object representing the response.
64
+ #
65
+ return self.class.execute("e0745dd7-c8af-4a78-9e92-e84abaaf0877",self)
66
+ end
67
+
68
+
69
+
70
+
71
+
72
+
73
+ end
74
+ end
75
+ end
76
+ end
77
+
78
+
79
+
80
+
81
+
82
+
83
+
@@ -0,0 +1,172 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module Moneysend
34
+ class CardMapping < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ '78cb72ba-e35c-451d-9f88-5d6655bf77ef' => OperationConfig.new("/moneysend/v3/mapping/card", "update", [], []),
40
+ 'a86b0610-5336-480e-92ea-59b446262813' => OperationConfig.new("/moneysend/v3/mapping/card", "create", [], []),
41
+ '42c27302-32ba-46e0-9dd2-505c9fe65f37' => OperationConfig.new("/moneysend/v3/mapping/card/{mappingId}", "update", [], []),
42
+ '3096a58d-72f5-4797-a342-d187ec902341' => OperationConfig.new("/moneysend/v3/mapping/card/{mappingId}", "delete", [], []),
43
+ 'caac86a9-b900-461b-8517-ac41d0d7d78e' => OperationConfig.new("/moneysend/v3/mapping/subscriber", "update", [], []),
44
+
45
+ }
46
+
47
+ protected
48
+
49
+ def self.getOperationConfig(uuid)
50
+ if @__store.key?(uuid)
51
+ return @__store[uuid]
52
+ end
53
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
54
+ end
55
+
56
+ def self.getOperationMetadata()
57
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
58
+ end
59
+
60
+ public
61
+
62
+
63
+ def read
64
+ #
65
+ #Updates an object of type CardMapping
66
+ #
67
+ #@return CardMapping object representing the response.
68
+ #
69
+ return self.class.execute("78cb72ba-e35c-451d-9f88-5d6655bf77ef",self)
70
+ end
71
+
72
+
73
+
74
+
75
+
76
+
77
+ def self.create(mapObj)
78
+ #
79
+ #Creates object of type CardMapping
80
+ #
81
+ #@param Dict mapObj, containing the required parameters to create a new object
82
+ #@return CardMapping of the response of created instance.
83
+ #
84
+ return self.execute("a86b0610-5336-480e-92ea-59b446262813", CardMapping.new(mapObj))
85
+ end
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+ def update
94
+ #
95
+ #Updates an object of type CardMapping
96
+ #
97
+ #@return CardMapping object representing the response.
98
+ #
99
+ return self.class.execute("42c27302-32ba-46e0-9dd2-505c9fe65f37",self)
100
+ end
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+ def self.deleteById(id, map = nil)
111
+ #Delete object of type CardMapping by id
112
+
113
+ #@param str id
114
+ #@param Dict map, containing additional parameters
115
+ #@return CardMapping of the response of the deleted instance.
116
+
117
+
118
+ mapObj = CardMapping.new
119
+ if !(id.nil? || id.to_s.empty?)
120
+ mapObj.set("id", id)
121
+ end
122
+ if !map.nil?
123
+ if map.instance_of? RequestMap
124
+ mapObj.setAll(map.getObject())
125
+ else
126
+ mapObj.setAll(map)
127
+ end
128
+ end
129
+
130
+ return self.execute("3096a58d-72f5-4797-a342-d187ec902341", mapObj)
131
+ end
132
+
133
+
134
+ def delete
135
+ #
136
+ #Delete object of type CardMapping
137
+
138
+ #@param str id
139
+ #@return CardMapping of the response of the deleted instance.
140
+ #
141
+
142
+ return self.class.execute("3096a58d-72f5-4797-a342-d187ec902341", self)
143
+ end
144
+
145
+
146
+
147
+
148
+ def deleteSubscriberID
149
+ #
150
+ #Updates an object of type CardMapping
151
+ #
152
+ #@return CardMapping object representing the response.
153
+ #
154
+ return self.class.execute("caac86a9-b900-461b-8517-ac41d0d7d78e",self)
155
+ end
156
+
157
+
158
+
159
+
160
+
161
+
162
+ end
163
+ end
164
+ end
165
+ end
166
+
167
+
168
+
169
+
170
+
171
+
172
+
@@ -0,0 +1,83 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module Moneysend
34
+ class Funding < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ 'ce6848ae-259e-4457-a70c-91d1384d7769' => OperationConfig.new("/moneysend/v3/transfer", "create", [], []),
40
+
41
+ }
42
+
43
+ protected
44
+
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
51
+
52
+ def self.getOperationMetadata()
53
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
54
+ end
55
+
56
+ public
57
+
58
+ def self.create(mapObj)
59
+ #
60
+ #Creates object of type Funding
61
+ #
62
+ #@param Dict mapObj, containing the required parameters to create a new object
63
+ #@return Funding of the response of created instance.
64
+ #
65
+ return self.execute("ce6848ae-259e-4457-a70c-91d1384d7769", Funding.new(mapObj))
66
+ end
67
+
68
+
69
+
70
+
71
+
72
+
73
+ end
74
+ end
75
+ end
76
+ end
77
+
78
+
79
+
80
+
81
+
82
+
83
+
@@ -0,0 +1,83 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module Moneysend
34
+ class Payment < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ 'bc066669-6033-4314-bc57-b168e94ab140' => OperationConfig.new("/moneysend/v3/transfer", "create", [], []),
40
+
41
+ }
42
+
43
+ protected
44
+
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
51
+
52
+ def self.getOperationMetadata()
53
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
54
+ end
55
+
56
+ public
57
+
58
+ def self.create(mapObj)
59
+ #
60
+ #Creates object of type Payment
61
+ #
62
+ #@param Dict mapObj, containing the required parameters to create a new object
63
+ #@return Payment of the response of created instance.
64
+ #
65
+ return self.execute("bc066669-6033-4314-bc57-b168e94ab140", Payment.new(mapObj))
66
+ end
67
+
68
+
69
+
70
+
71
+
72
+
73
+ end
74
+ end
75
+ end
76
+ end
77
+
78
+
79
+
80
+
81
+
82
+
83
+
@@ -0,0 +1,83 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module Moneysend
34
+ class SanctionScreening < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ '100bdbc0-230f-4db4-b74b-5d80c5e28309' => OperationConfig.new("/sanctionscore/v3/sanctionscore", "create", [], []),
40
+
41
+ }
42
+
43
+ protected
44
+
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
51
+
52
+ def self.getOperationMetadata()
53
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
54
+ end
55
+
56
+ public
57
+
58
+ def self.read(mapObj)
59
+ #
60
+ #Creates object of type SanctionScreening
61
+ #
62
+ #@param Dict mapObj, containing the required parameters to create a new object
63
+ #@return SanctionScreening of the response of created instance.
64
+ #
65
+ return self.execute("100bdbc0-230f-4db4-b74b-5d80c5e28309", SanctionScreening.new(mapObj))
66
+ end
67
+
68
+
69
+
70
+
71
+
72
+
73
+ end
74
+ end
75
+ end
76
+ end
77
+
78
+
79
+
80
+
81
+
82
+
83
+
@@ -0,0 +1,50 @@
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
+ module MasterCard
28
+ module API
29
+ module Moneysend
30
+ class SDKConfig
31
+
32
+ private
33
+ @@host = nil
34
+
35
+ public
36
+ def self.setHost(host)
37
+ @@host = host
38
+ end
39
+
40
+ def self.getHost()
41
+ return @@host
42
+ end
43
+
44
+ def self.getVersion()
45
+ return "1.0.1"
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,83 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module Moneysend
34
+ class TransferReversal < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ '54113507-a774-4f1c-a5a4-88cbe233c98a' => OperationConfig.new("/moneysend/v3/transferreversal", "create", [], []),
40
+
41
+ }
42
+
43
+ protected
44
+
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
51
+
52
+ def self.getOperationMetadata()
53
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
54
+ end
55
+
56
+ public
57
+
58
+ def self.create(mapObj)
59
+ #
60
+ #Creates object of type TransferReversal
61
+ #
62
+ #@param Dict mapObj, containing the required parameters to create a new object
63
+ #@return TransferReversal of the response of created instance.
64
+ #
65
+ return self.execute("54113507-a774-4f1c-a5a4-88cbe233c98a", TransferReversal.new(mapObj))
66
+ end
67
+
68
+
69
+
70
+
71
+
72
+
73
+ end
74
+ end
75
+ end
76
+ end
77
+
78
+
79
+
80
+
81
+
82
+
83
+
@@ -0,0 +1,8 @@
1
+ require 'mastercard_api_core'
2
+ require 'mastercard/api/moneysend/funding'
3
+ require 'mastercard/api/moneysend/skdconfig'
4
+ require 'mastercard/api/moneysend/cardmapping'
5
+ require 'mastercard/api/moneysend/sanctionscreening'
6
+ require 'mastercard/api/moneysend/payment'
7
+ require 'mastercard/api/moneysend/cardeligibility'
8
+ require 'mastercard/api/moneysend/transferreversal'
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mastercard_moneysend
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ platform: ruby
6
+ authors:
7
+ - MasterCard Worldwide
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-10-13 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.2.0
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.2.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.2.0
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.2.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 Moneysend Description
48
+ email:
49
+ - APISupport@mastercard.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - lib/mastercard/api/moneysend/cardeligibility.rb
55
+ - lib/mastercard/api/moneysend/cardmapping.rb
56
+ - lib/mastercard/api/moneysend/funding.rb
57
+ - lib/mastercard/api/moneysend/payment.rb
58
+ - lib/mastercard/api/moneysend/sanctionscreening.rb
59
+ - lib/mastercard/api/moneysend/skdconfig.rb
60
+ - lib/mastercard/api/moneysend/transferreversal.rb
61
+ - lib/mastercard_moneysend.rb
62
+ homepage: https://developer.mastercard.com
63
+ licenses:
64
+ - BSD-2-Clause
65
+ metadata: {}
66
+ post_install_message:
67
+ rdoc_options: []
68
+ require_paths:
69
+ - lib
70
+ required_ruby_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ required_rubygems_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ requirements: []
81
+ rubyforge_project:
82
+ rubygems_version: 2.5.1
83
+ signing_key:
84
+ specification_version: 4
85
+ summary: MasterCard Moneysend SDK
86
+ test_files: []