mastercard_disbursements 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/disbursements/accountinfo.rb +35 -31
- data/lib/mastercard/api/disbursements/accountverification.rb +35 -32
- data/lib/mastercard/api/disbursements/consumer.rb +120 -107
- data/lib/mastercard/api/disbursements/consumeraccount.rb +109 -97
- data/lib/mastercard/api/disbursements/consumercontactid.rb +109 -97
- data/lib/mastercard/api/disbursements/consumergovernmentid.rb +109 -97
- data/lib/mastercard/api/disbursements/disbursement.rb +68 -61
- data/lib/mastercard/api/disbursements/{skdconfig.rb → resourceconfig.rb} +70 -22
- data/lib/mastercard/api/disbursements/sanctionscreening.rb +35 -31
- data/lib/mastercard_disbursements.rb +8 -6
- 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: cf91e1ff478d38d22b718dd8a4263650ac5888d8
|
4
|
+
data.tar.gz: b763f9fbc10ee005dddd4fece62f08aeeef75c57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7daae4bd44dc24bb6f0321a0061ef582094df8c7d7dc96d32e3541447b5923a418d90a02e0d978457d30e561b44b4c3bcf1a2f5f071dcab5fa37418c29c51d9
|
7
|
+
data.tar.gz: b756a49fa06f54b9027ee5856c4f804f34ad88a1e04b780da6f08882b0ac7d9b07fef33b59b058c08024267c064ae25099c168e82a27c8f1546541355c9d267a
|
@@ -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 Disbursements
|
35
|
+
class AccountInfo < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
37
38
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
@__store = {
|
40
|
+
'127350c6-92c0-4fc7-b0fd-3cf472280ba4' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-info", "update", [], ["fields"]),
|
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 AccountInfo
|
62
|
-
#
|
63
|
-
#@return AccountInfo object representing the response.
|
64
|
-
#
|
65
|
-
return self.class.execute("1a2a144d-e8a6-402e-b867-ca2be09e3a13",self)
|
66
|
-
end
|
67
60
|
|
61
|
+
def read
|
62
|
+
#
|
63
|
+
#Updates an object of type AccountInfo
|
64
|
+
#
|
65
|
+
#@return [AccountInfo] object representing the response.
|
66
|
+
#@raise [APIException] an exception from the response status
|
67
|
+
#
|
68
|
+
return self.class.execute("127350c6-92c0-4fc7-b0fd-3cf472280ba4",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,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 Disbursements
|
35
|
+
class AccountVerification < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
37
38
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
@__store = {
|
40
|
+
'9ef8f344-e16a-4bda-96ab-7dd1afcf3726' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-verification", "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 AccountVerification
|
61
|
-
#
|
62
|
-
#@param Dict mapObj, containing the required parameters to create a new object
|
63
|
-
#@return AccountVerification of the response of created instance.
|
64
|
-
#
|
65
|
-
return self.execute("92b1d2c3-4f86-4cc7-99a1-893f1e69de9d", AccountVerification.new(mapObj))
|
66
|
-
end
|
67
59
|
|
60
|
+
def self.read(mapObj)
|
61
|
+
#
|
62
|
+
#Creates object of type AccountVerification
|
63
|
+
#
|
64
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
65
|
+
#@return [AccountVerification] of the response of created instance.
|
66
|
+
#@raise [APIException] an exception from the response status
|
67
|
+
return self.execute("9ef8f344-e16a-4bda-96ab-7dd1afcf3726", AccountVerification.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,81 +27,93 @@
|
|
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 Disbursements
|
35
|
+
class Consumer < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
37
38
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
39
|
+
@__store = {
|
40
|
+
'99e62c50-1f23-4ba4-b3d1-b89339d53b08' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "delete", [], []),
|
41
|
+
'b7812ffb-944e-40cb-a4df-fa1301664cf4' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "create", [], []),
|
42
|
+
'6073cbfb-e0df-4c0e-b219-71f11c696821' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "read", [], []),
|
43
|
+
'1622b775-c178-41b4-aa0d-02aea0c0763b' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "query", [], ["ref","contact_id_uri"]),
|
44
|
+
'285f9d99-8769-42dd-98ca-1e4ba84ccb77' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/search", "create", [], []),
|
45
|
+
'8a96df09-fe68-4508-ae39-c8304867dff2' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "update", [], []),
|
46
|
+
|
47
|
+
}
|
47
48
|
|
48
|
-
|
49
|
+
protected
|
49
50
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
51
|
+
def self.getOperationConfig(uuid)
|
52
|
+
if @__store.key?(uuid)
|
53
|
+
return @__store[uuid]
|
54
|
+
end
|
55
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
|
56
|
+
end
|
56
57
|
|
57
|
-
|
58
|
-
|
59
|
-
|
58
|
+
def self.getOperationMetadata()
|
59
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
60
|
+
end
|
60
61
|
|
61
|
-
|
62
|
+
public
|
62
63
|
|
63
64
|
|
64
65
|
|
65
66
|
|
66
67
|
|
68
|
+
def self.deleteById(id, map = nil)
|
69
|
+
#Delete object of type Consumer by id
|
67
70
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
#@return Consumer object representing the response.
|
73
|
-
#
|
71
|
+
#@param [String] id
|
72
|
+
#@param [Dict] map, containing additional parameters
|
73
|
+
#@return [Consumer] of the response of the deleted instance.
|
74
|
+
#@raise [APIException] an exception from the response status
|
74
75
|
|
75
|
-
return self.execute("560eab18-865e-4066-b8c5-445f71ebf2f5",Consumer.new(criteria))
|
76
|
-
end
|
77
76
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
77
|
+
mapObj = Consumer.new
|
78
|
+
if !(id.nil? || id.to_s.empty?)
|
79
|
+
mapObj.set("id", id)
|
80
|
+
end
|
81
|
+
if !map.nil?
|
82
|
+
if map.instance_of? RequestMap
|
83
|
+
mapObj.setAll(map.getObject())
|
84
|
+
else
|
85
|
+
mapObj.setAll(map)
|
86
|
+
end
|
87
|
+
end
|
87
88
|
|
89
|
+
return self.execute("99e62c50-1f23-4ba4-b3d1-b89339d53b08", mapObj)
|
90
|
+
end
|
88
91
|
|
89
92
|
|
93
|
+
def delete
|
94
|
+
#
|
95
|
+
#Delete object of type Consumer
|
90
96
|
|
97
|
+
#@param [String] id
|
98
|
+
#@return [Consumer] of the response of the deleted instance.
|
99
|
+
#@raise [APIException] an exception from the response status
|
100
|
+
#
|
91
101
|
|
102
|
+
return self.class.execute("99e62c50-1f23-4ba4-b3d1-b89339d53b08", self)
|
103
|
+
end
|
92
104
|
|
93
|
-
def self.listByReferenceContactIDOrGovernmentID(mapObj)
|
94
|
-
#
|
95
|
-
#Creates object of type Consumer
|
96
|
-
#
|
97
|
-
#@param Dict mapObj, containing the required parameters to create a new object
|
98
|
-
#@return Consumer of the response of created instance.
|
99
|
-
#
|
100
|
-
return self.execute("f4b0c676-318e-462c-a563-b16bea5d2d91", Consumer.new(mapObj))
|
101
|
-
end
|
102
105
|
|
103
106
|
|
104
107
|
|
108
|
+
def self.create(mapObj)
|
109
|
+
#
|
110
|
+
#Creates object of type Consumer
|
111
|
+
#
|
112
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
113
|
+
#@return [Consumer] of the response of created instance.
|
114
|
+
#@raise [APIException] an exception from the response status
|
115
|
+
return self.execute("b7812ffb-944e-40cb-a4df-fa1301664cf4", Consumer.new(mapObj))
|
116
|
+
end
|
105
117
|
|
106
118
|
|
107
119
|
|
@@ -109,39 +121,32 @@ module MasterCard
|
|
109
121
|
|
110
122
|
|
111
123
|
|
112
|
-
def self.readByID(id, criteria = nil)
|
113
|
-
#
|
114
|
-
#Returns objects of type Consumer by id and optional criteria
|
115
|
-
#@param str id
|
116
|
-
#@param dict criteria
|
117
|
-
#@return instance of Consumer
|
118
124
|
|
119
|
-
mapObj = Consumer.new
|
120
|
-
if !(id.nil? || id.to_s.empty?)
|
121
|
-
mapObj.set("id", id)
|
122
|
-
end
|
123
|
-
if !criteria.nil?
|
124
|
-
if criteria.instance_of? RequestMap
|
125
|
-
mapObj.setAll(criteria.getObject())
|
126
|
-
else
|
127
|
-
mapObj.setAll(criteria)
|
128
|
-
end
|
129
|
-
end
|
130
125
|
|
131
|
-
return self.execute("ac9615c7-fb44-4f51-8257-b2ec6737507d",Consumer.new(mapObj))
|
132
|
-
end
|
133
126
|
|
134
127
|
|
128
|
+
def self.readByID(id, criteria = nil)
|
129
|
+
#
|
130
|
+
#Returns objects of type Consumer by id and optional criteria
|
131
|
+
#@param [String] id
|
132
|
+
#@param [Dict] criteria
|
133
|
+
#@return [Consumer] object representing the response
|
134
|
+
#@raise [APIException] an exception from the response status
|
135
135
|
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
136
|
+
mapObj = Consumer.new
|
137
|
+
if !(id.nil? || id.to_s.empty?)
|
138
|
+
mapObj.set("id", id)
|
139
|
+
end
|
140
|
+
if !criteria.nil?
|
141
|
+
if criteria.instance_of? RequestMap
|
142
|
+
mapObj.setAll(criteria.getObject())
|
143
|
+
else
|
144
|
+
mapObj.setAll(criteria)
|
145
|
+
end
|
146
|
+
end
|
144
147
|
|
148
|
+
return self.execute("6073cbfb-e0df-4c0e-b219-71f11c696821",Consumer.new(mapObj))
|
149
|
+
end
|
145
150
|
|
146
151
|
|
147
152
|
|
@@ -150,46 +155,54 @@ module MasterCard
|
|
150
155
|
|
151
156
|
|
152
157
|
|
153
|
-
|
154
|
-
|
158
|
+
def self.listByReferenceOrContactID(criteria)
|
159
|
+
#
|
160
|
+
#Query objects of type Consumer by id and optional criteria
|
161
|
+
#@param [Dict] criteria
|
162
|
+
#@return [Consumer] object representing the response.
|
163
|
+
#@raise [APIException] an exception from the response status
|
164
|
+
#
|
155
165
|
|
156
|
-
|
157
|
-
|
158
|
-
#@return Consumer of the response of the deleted instance.
|
166
|
+
return self.execute("1622b775-c178-41b4-aa0d-02aea0c0763b",Consumer.new(criteria))
|
167
|
+
end
|
159
168
|
|
160
169
|
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
end
|
171
|
-
end
|
170
|
+
def self.listByReferenceContactIDOrGovernmentID(mapObj)
|
171
|
+
#
|
172
|
+
#Creates object of type Consumer
|
173
|
+
#
|
174
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
175
|
+
#@return [Consumer] of the response of created instance.
|
176
|
+
#@raise [APIException] an exception from the response status
|
177
|
+
return self.execute("285f9d99-8769-42dd-98ca-1e4ba84ccb77", Consumer.new(mapObj))
|
178
|
+
end
|
172
179
|
|
173
|
-
return self.execute("0a2b21d8-1838-454a-9273-1c9aad0bda12", mapObj)
|
174
|
-
end
|
175
180
|
|
176
181
|
|
177
|
-
def delete
|
178
|
-
#
|
179
|
-
#Delete object of type Consumer
|
180
182
|
|
181
|
-
#@param str id
|
182
|
-
#@return Consumer of the response of the deleted instance.
|
183
|
-
#
|
184
183
|
|
185
|
-
return self.class.execute("0a2b21d8-1838-454a-9273-1c9aad0bda12", self)
|
186
|
-
end
|
187
184
|
|
188
185
|
|
189
186
|
|
190
|
-
|
191
|
-
|
192
|
-
|
187
|
+
def update
|
188
|
+
#
|
189
|
+
#Updates an object of type Consumer
|
190
|
+
#
|
191
|
+
#@return [Consumer] object representing the response.
|
192
|
+
#@raise [APIException] an exception from the response status
|
193
|
+
#
|
194
|
+
return self.class.execute("8a96df09-fe68-4508-ae39-c8304867dff2",self)
|
195
|
+
end
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
193
206
|
end
|
194
207
|
|
195
208
|
|