mastercard_moneysend 1.0.1 → 1.0.2
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/moneysend/cardeligibility.rb +35 -31
- data/lib/mastercard/api/moneysend/cardmapping.rb +98 -86
- data/lib/mastercard/api/moneysend/funding.rb +35 -32
- data/lib/mastercard/api/moneysend/payment.rb +35 -32
- data/lib/mastercard/api/moneysend/{skdconfig.rb → resourceconfig.rb} +70 -22
- data/lib/mastercard/api/moneysend/sanctionscreening.rb +35 -32
- data/lib/mastercard/api/moneysend/transferreversal.rb +35 -32
- data/lib/mastercard_moneysend.rb +6 -4
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48fd855b86338af5b967bab638e572a8210d9b2c
|
4
|
+
data.tar.gz: 331a86ffd027fc1e7e475083bf72af0c0e32eb7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13bed47bfc4cb03d39a2f9d45db918023c29789af0b35800246e98747c9a666718f52659ffcbcc29876bd30cb108067d603729e89cf06b4be4b117dff70c40af
|
7
|
+
data.tar.gz: 5d7687bc6819ed310d736fe75a05dffaab339cc512adc48e891279142184ca5a551e7b3ffda8118627aa56b60ed4a775c32e4ed119645a51eb471ca3a3404ef1
|
@@ -27,52 +27,56 @@
|
|
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 Moneysend
|
35
|
+
class CardEligibility < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
37
38
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
@__store = {
|
40
|
+
'00c0ac0e-a42c-41a3-81da-bf7ea2ad52c4' => OperationConfig.new("/moneysend/v3/eligibility/pan", "update", [], []),
|
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
59
|
|
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
60
|
|
61
|
+
def read
|
62
|
+
#
|
63
|
+
#Updates an object of type CardEligibility
|
64
|
+
#
|
65
|
+
#@return [CardEligibility] object representing the response.
|
66
|
+
#@raise [APIException] an exception from the response status
|
67
|
+
#
|
68
|
+
return self.class.execute("00c0ac0e-a42c-41a3-81da-bf7ea2ad52c4",self)
|
69
|
+
end
|
68
70
|
|
69
71
|
|
70
72
|
|
71
73
|
|
72
74
|
|
73
|
-
|
74
|
-
|
75
|
-
|
75
|
+
|
76
|
+
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
76
80
|
end
|
77
81
|
|
78
82
|
|
@@ -27,141 +27,153 @@
|
|
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 Moneysend
|
35
|
+
class CardMapping < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
37
38
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
39
|
+
@__store = {
|
40
|
+
'd39dda38-e867-4d7f-93f8-658c2ece07e2' => OperationConfig.new("/moneysend/v3/mapping/card", "create", [], []),
|
41
|
+
'8ed8856e-5acc-477e-91ec-e8e42cfd4776' => OperationConfig.new("/moneysend/v3/mapping/card/{mappingId}", "delete", [], []),
|
42
|
+
'4e2db90f-1051-457d-856c-645f7c95cb63' => OperationConfig.new("/moneysend/v3/mapping/subscriber", "update", [], []),
|
43
|
+
'c17fff52-7d25-430c-9e87-8590bb8f6fe6' => OperationConfig.new("/moneysend/v3/mapping/card", "update", [], []),
|
44
|
+
'631bcad2-b81f-4a2f-8bd5-6afe7d6bc162' => OperationConfig.new("/moneysend/v3/mapping/card/{mappingId}", "update", [], []),
|
45
|
+
|
46
|
+
}
|
46
47
|
|
47
|
-
|
48
|
+
protected
|
48
49
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
50
|
+
def self.getOperationConfig(uuid)
|
51
|
+
if @__store.key?(uuid)
|
52
|
+
return @__store[uuid]
|
53
|
+
end
|
54
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
|
55
|
+
end
|
55
56
|
|
56
|
-
|
57
|
-
|
58
|
-
|
57
|
+
def self.getOperationMetadata()
|
58
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
59
|
+
end
|
59
60
|
|
60
|
-
|
61
|
+
public
|
61
62
|
|
62
63
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
64
|
+
def self.create(mapObj)
|
65
|
+
#
|
66
|
+
#Creates object of type CardMapping
|
67
|
+
#
|
68
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
69
|
+
#@return [CardMapping] of the response of created instance.
|
70
|
+
#@raise [APIException] an exception from the response status
|
71
|
+
return self.execute("d39dda38-e867-4d7f-93f8-658c2ece07e2", CardMapping.new(mapObj))
|
72
|
+
end
|
71
73
|
|
72
74
|
|
73
75
|
|
74
76
|
|
75
77
|
|
76
78
|
|
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
79
|
|
87
80
|
|
88
81
|
|
89
82
|
|
83
|
+
def self.deleteById(id, map = nil)
|
84
|
+
#Delete object of type CardMapping by id
|
90
85
|
|
86
|
+
#@param [String] id
|
87
|
+
#@param [Dict] map, containing additional parameters
|
88
|
+
#@return [CardMapping] of the response of the deleted instance.
|
89
|
+
#@raise [APIException] an exception from the response status
|
91
90
|
|
92
91
|
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
92
|
+
mapObj = CardMapping.new
|
93
|
+
if !(id.nil? || id.to_s.empty?)
|
94
|
+
mapObj.set("id", id)
|
95
|
+
end
|
96
|
+
if !map.nil?
|
97
|
+
if map.instance_of? RequestMap
|
98
|
+
mapObj.setAll(map.getObject())
|
99
|
+
else
|
100
|
+
mapObj.setAll(map)
|
101
|
+
end
|
102
|
+
end
|
101
103
|
|
104
|
+
return self.execute("8ed8856e-5acc-477e-91ec-e8e42cfd4776", mapObj)
|
105
|
+
end
|
102
106
|
|
103
107
|
|
108
|
+
def delete
|
109
|
+
#
|
110
|
+
#Delete object of type CardMapping
|
104
111
|
|
112
|
+
#@param [String] id
|
113
|
+
#@return [CardMapping] of the response of the deleted instance.
|
114
|
+
#@raise [APIException] an exception from the response status
|
115
|
+
#
|
105
116
|
|
117
|
+
return self.class.execute("8ed8856e-5acc-477e-91ec-e8e42cfd4776", self)
|
118
|
+
end
|
106
119
|
|
107
120
|
|
108
121
|
|
109
122
|
|
110
|
-
def self.deleteById(id, map = nil)
|
111
|
-
#Delete object of type CardMapping by id
|
112
123
|
|
113
|
-
|
114
|
-
|
115
|
-
|
124
|
+
def deleteSubscriberID
|
125
|
+
#
|
126
|
+
#Updates an object of type CardMapping
|
127
|
+
#
|
128
|
+
#@return [CardMapping] object representing the response.
|
129
|
+
#@raise [APIException] an exception from the response status
|
130
|
+
#
|
131
|
+
return self.class.execute("4e2db90f-1051-457d-856c-645f7c95cb63",self)
|
132
|
+
end
|
116
133
|
|
117
134
|
|
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
135
|
|
130
|
-
return self.execute("3096a58d-72f5-4797-a342-d187ec902341", mapObj)
|
131
|
-
end
|
132
136
|
|
133
137
|
|
134
|
-
def delete
|
135
|
-
#
|
136
|
-
#Delete object of type CardMapping
|
137
138
|
|
138
|
-
#@param str id
|
139
|
-
#@return CardMapping of the response of the deleted instance.
|
140
|
-
#
|
141
139
|
|
142
|
-
return self.class.execute("3096a58d-72f5-4797-a342-d187ec902341", self)
|
143
|
-
end
|
144
140
|
|
141
|
+
def read
|
142
|
+
#
|
143
|
+
#Updates an object of type CardMapping
|
144
|
+
#
|
145
|
+
#@return [CardMapping] object representing the response.
|
146
|
+
#@raise [APIException] an exception from the response status
|
147
|
+
#
|
148
|
+
return self.class.execute("c17fff52-7d25-430c-9e87-8590bb8f6fe6",self)
|
149
|
+
end
|
145
150
|
|
146
151
|
|
147
152
|
|
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
153
|
|
157
154
|
|
158
155
|
|
159
156
|
|
160
157
|
|
158
|
+
def update
|
159
|
+
#
|
160
|
+
#Updates an object of type CardMapping
|
161
|
+
#
|
162
|
+
#@return [CardMapping] object representing the response.
|
163
|
+
#@raise [APIException] an exception from the response status
|
164
|
+
#
|
165
|
+
return self.class.execute("631bcad2-b81f-4a2f-8bd5-6afe7d6bc162",self)
|
166
|
+
end
|
161
167
|
|
162
|
-
|
163
|
-
|
164
|
-
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
end
|
175
|
+
end
|
176
|
+
end
|
165
177
|
end
|
166
178
|
|
167
179
|
|
@@ -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 Moneysend
|
35
|
+
class Funding < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
37
38
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
@__store = {
|
40
|
+
'50fbcb18-fc34-4d7e-bc5f-70c9e1fbc70f' => OperationConfig.new("/moneysend/v3/transfer", "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 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
59
|
|
60
|
+
def self.create(mapObj)
|
61
|
+
#
|
62
|
+
#Creates object of type Funding
|
63
|
+
#
|
64
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
65
|
+
#@return [Funding] of the response of created instance.
|
66
|
+
#@raise [APIException] an exception from the response status
|
67
|
+
return self.execute("50fbcb18-fc34-4d7e-bc5f-70c9e1fbc70f", Funding.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
|
|
@@ -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 Moneysend
|
35
|
+
class Payment < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
37
38
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
@__store = {
|
40
|
+
'3a4eb98d-a602-4c47-8b05-aa25d2fdf0a5' => OperationConfig.new("/moneysend/v3/transfer", "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 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
59
|
|
60
|
+
def self.create(mapObj)
|
61
|
+
#
|
62
|
+
#Creates object of type Payment
|
63
|
+
#
|
64
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
65
|
+
#@return [Payment] of the response of created instance.
|
66
|
+
#@raise [APIException] an exception from the response status
|
67
|
+
return self.execute("3a4eb98d-a602-4c47-8b05-aa25d2fdf0a5", Payment.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
|
|
@@ -24,27 +24,75 @@
|
|
24
24
|
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
25
25
|
# SUCH DAMAGE.
|
26
26
|
#
|
27
|
+
|
28
|
+
require "mastercard/core/constants"
|
29
|
+
require "mastercard/core/config"
|
30
|
+
|
27
31
|
module MasterCard
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
32
|
+
module API
|
33
|
+
module Moneysend
|
34
|
+
class ResourceConfig
|
35
|
+
include MasterCard::Core
|
36
|
+
|
37
|
+
@@instance = nil
|
38
|
+
|
39
|
+
def initialize
|
40
|
+
@name = "moneysend"
|
41
|
+
@override = nil
|
42
|
+
@host = nil
|
43
|
+
@context = nil
|
44
|
+
@version = "1.0.2"
|
45
|
+
|
46
|
+
Config.registerResourceConfig(self)
|
47
|
+
currentEnvironment = Config.getEnvironment()
|
48
|
+
self.setEnvironment(currentEnvironment)
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
|
53
|
+
def self.instance
|
54
|
+
return @@instance
|
55
|
+
end
|
56
|
+
|
57
|
+
|
58
|
+
def getName
|
59
|
+
return @name
|
60
|
+
end
|
61
|
+
|
62
|
+
|
63
|
+
def getHost
|
64
|
+
unless @override.nil? || @override == 0
|
65
|
+
return @override
|
66
|
+
else
|
67
|
+
return @host
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
def getContext
|
72
|
+
return @context
|
73
|
+
end
|
74
|
+
|
75
|
+
def getVersion
|
76
|
+
return @version
|
77
|
+
end
|
78
|
+
|
79
|
+
def setEnvironment(environmet)
|
80
|
+
if Environment::MAPPING.key?(environmet)
|
81
|
+
tuple = Environment::MAPPING[environmet]
|
82
|
+
@host = tuple[0]
|
83
|
+
@context = tuple[1]
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
def setCustomEnvironment(host,context)
|
88
|
+
@host = host
|
89
|
+
@context = context
|
90
|
+
end
|
91
|
+
|
92
|
+
@@instance = ResourceConfig.new
|
93
|
+
|
94
|
+
private_class_method :new
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
50
98
|
end
|
@@ -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 Moneysend
|
35
|
+
class SanctionScreening < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
37
38
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
@__store = {
|
40
|
+
'1bf28602-94d1-423b-a057-04fa5abfc8fc' => OperationConfig.new("/sanctionscore/v3/sanctionscore", "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.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
59
|
|
60
|
+
def self.read(mapObj)
|
61
|
+
#
|
62
|
+
#Creates object of type SanctionScreening
|
63
|
+
#
|
64
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
65
|
+
#@return [SanctionScreening] of the response of created instance.
|
66
|
+
#@raise [APIException] an exception from the response status
|
67
|
+
return self.execute("1bf28602-94d1-423b-a057-04fa5abfc8fc", SanctionScreening.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
|
|
@@ -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 Moneysend
|
35
|
+
class TransferReversal < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
37
38
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
@__store = {
|
40
|
+
'83701c6d-23da-4750-a762-ff6c42af6c05' => OperationConfig.new("/moneysend/v3/transferreversal", "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 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
59
|
|
60
|
+
def self.create(mapObj)
|
61
|
+
#
|
62
|
+
#Creates object of type TransferReversal
|
63
|
+
#
|
64
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
65
|
+
#@return [TransferReversal] of the response of created instance.
|
66
|
+
#@raise [APIException] an exception from the response status
|
67
|
+
return self.execute("83701c6d-23da-4750-a762-ff6c42af6c05", TransferReversal.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
|
|
data/lib/mastercard_moneysend.rb
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
require 'mastercard_api_core'
|
2
|
-
|
3
|
-
require 'mastercard/api/moneysend/
|
2
|
+
|
3
|
+
require 'mastercard/api/moneysend/resourceconfig'
|
4
|
+
|
5
|
+
require 'mastercard/api/moneysend/cardeligibility'
|
4
6
|
require 'mastercard/api/moneysend/cardmapping'
|
5
|
-
require 'mastercard/api/moneysend/
|
7
|
+
require 'mastercard/api/moneysend/funding'
|
6
8
|
require 'mastercard/api/moneysend/payment'
|
7
|
-
require 'mastercard/api/moneysend/
|
9
|
+
require 'mastercard/api/moneysend/sanctionscreening'
|
8
10
|
require 'mastercard/api/moneysend/transferreversal'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mastercard_moneysend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
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-06 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
|
@@ -55,8 +55,8 @@ files:
|
|
55
55
|
- lib/mastercard/api/moneysend/cardmapping.rb
|
56
56
|
- lib/mastercard/api/moneysend/funding.rb
|
57
57
|
- lib/mastercard/api/moneysend/payment.rb
|
58
|
+
- lib/mastercard/api/moneysend/resourceconfig.rb
|
58
59
|
- lib/mastercard/api/moneysend/sanctionscreening.rb
|
59
|
-
- lib/mastercard/api/moneysend/skdconfig.rb
|
60
60
|
- lib/mastercard/api/moneysend/transferreversal.rb
|
61
61
|
- lib/mastercard_moneysend.rb
|
62
62
|
homepage: https://developer.mastercard.com
|