mastercard_disbursements 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/mastercard/api/disbursements/accountbalance.rb +4 -4
- data/lib/mastercard/api/disbursements/accountinfo.rb +2 -2
- data/lib/mastercard/api/disbursements/accountmapping.rb +2 -2
- data/lib/mastercard/api/disbursements/accountverification.rb +2 -2
- data/lib/mastercard/api/disbursements/disbursement.rb +6 -6
- data/lib/mastercard/api/disbursements/resourceconfig.rb +1 -1
- data/lib/mastercard/api/disbursements/transfernotification.rb +2 -2
- data/lib/mastercard_disbursements.rb +0 -5
- metadata +3 -8
- data/lib/mastercard/api/disbursements/consumer.rb +0 -213
- data/lib/mastercard/api/disbursements/consumeraccount.rb +0 -196
- data/lib/mastercard/api/disbursements/consumercontactid.rb +0 -196
- data/lib/mastercard/api/disbursements/consumergovernmentid.rb +0 -196
- data/lib/mastercard/api/disbursements/sanctionscreening.rb +0 -87
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 25e6e734b5a985c4019e833ae020ff2c53ff314d43c032a5285809f8c07509ed
|
4
|
+
data.tar.gz: 2b1bdbcc7c834a8553022fdf4c4b9c845cc738a57dc049c412209fd03b89c9d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3abae92cc675127ee7d7884a7aae7faee6918332aa168d415e9036fd6122191351e87386b41931862e1767ea2c5b8608894d7b7197ff1fe95250d8fe77d8b015
|
7
|
+
data.tar.gz: 3a7c223c04f10d84daf402a7a8947f3c96dbb694bfca636118fb9ddbef83a02ffb862bd44b0a894bff6c3dcee5f3e850305718cdb75acc70a572f9c0541806b5
|
@@ -37,8 +37,8 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
40
|
+
'2603bcd7-fdfc-4a83-be86-84cd2b10dfab' => OperationConfig.new("/send/v1/partners/{partnerId}/non-card-tokens/{nonCardToken}/account-balance", "query", [], []),
|
41
|
+
'9e3365fb-a625-4323-b329-96160dd7c3b8' => OperationConfig.new("/send/v1/partners/{partnerId}/account-balances", "query", [], []),
|
42
42
|
|
43
43
|
}
|
44
44
|
|
@@ -71,7 +71,7 @@ module MasterCard
|
|
71
71
|
#@raise [APIException] an exception from the response status
|
72
72
|
#
|
73
73
|
|
74
|
-
return self.execute("
|
74
|
+
return self.execute("2603bcd7-fdfc-4a83-be86-84cd2b10dfab",AccountBalance.new(criteria))
|
75
75
|
end
|
76
76
|
|
77
77
|
|
@@ -88,7 +88,7 @@ module MasterCard
|
|
88
88
|
#@raise [APIException] an exception from the response status
|
89
89
|
#
|
90
90
|
|
91
|
-
return self.execute("
|
91
|
+
return self.execute("9e3365fb-a625-4323-b329-96160dd7c3b8",AccountBalance.new(criteria))
|
92
92
|
end
|
93
93
|
|
94
94
|
|
@@ -37,7 +37,7 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'35823148-2230-4e0c-85d5-d49515caec31' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-info", "update", [], ["fields"]),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
@@ -65,7 +65,7 @@ module MasterCard
|
|
65
65
|
#@return [AccountInfo] object representing the response.
|
66
66
|
#@raise [APIException] an exception from the response status
|
67
67
|
#
|
68
|
-
return self.class.execute("
|
68
|
+
return self.class.execute("35823148-2230-4e0c-85d5-d49515caec31",self)
|
69
69
|
end
|
70
70
|
|
71
71
|
|
@@ -37,7 +37,7 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'6b3a5278-e3ff-4d1f-bacd-7dde6b232f9d' => OperationConfig.new("/send/v1/partners/{partnerId}/account-mapping", "update", [], []),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
@@ -65,7 +65,7 @@ module MasterCard
|
|
65
65
|
#@return [AccountMapping] object representing the response.
|
66
66
|
#@raise [APIException] an exception from the response status
|
67
67
|
#
|
68
|
-
return self.class.execute("
|
68
|
+
return self.class.execute("6b3a5278-e3ff-4d1f-bacd-7dde6b232f9d",self)
|
69
69
|
end
|
70
70
|
|
71
71
|
|
@@ -37,7 +37,7 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'622581ca-96b8-4bc9-88ea-66c1e9ce69a5' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-verification", "create", [], []),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
@@ -64,7 +64,7 @@ module MasterCard
|
|
64
64
|
#@param Dict mapObj, containing the required parameters to create a new object
|
65
65
|
#@return [AccountVerification] of the response of created instance.
|
66
66
|
#@raise [APIException] an exception from the response status
|
67
|
-
return self.execute("
|
67
|
+
return self.execute("622581ca-96b8-4bc9-88ea-66c1e9ce69a5", AccountVerification.new(mapObj))
|
68
68
|
end
|
69
69
|
|
70
70
|
|
@@ -37,9 +37,9 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'f2506df7-b1a7-4ae5-8252-07ca6fa0d609' => OperationConfig.new("/send/v1/partners/{partnerId}/disbursements/{disbursementId}", "read", [], []),
|
41
|
+
'3800ec42-43a9-465e-a93b-181aa337658a' => OperationConfig.new("/send/v1/partners/{partnerId}/disbursements", "query", [], ["ref"]),
|
42
|
+
'9c84d7ca-5cc2-4c55-8675-faf2a8c7efc6' => OperationConfig.new("/send/v1/partners/{partnerId}/disbursements/payment", "create", [], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
@@ -83,7 +83,7 @@ module MasterCard
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
return self.execute("
|
86
|
+
return self.execute("f2506df7-b1a7-4ae5-8252-07ca6fa0d609",Disbursement.new(mapObj))
|
87
87
|
end
|
88
88
|
|
89
89
|
|
@@ -101,7 +101,7 @@ module MasterCard
|
|
101
101
|
#@raise [APIException] an exception from the response status
|
102
102
|
#
|
103
103
|
|
104
|
-
return self.execute("
|
104
|
+
return self.execute("3800ec42-43a9-465e-a93b-181aa337658a",Disbursement.new(criteria))
|
105
105
|
end
|
106
106
|
|
107
107
|
|
@@ -112,7 +112,7 @@ module MasterCard
|
|
112
112
|
#@param Dict mapObj, containing the required parameters to create a new object
|
113
113
|
#@return [Disbursement] of the response of created instance.
|
114
114
|
#@raise [APIException] an exception from the response status
|
115
|
-
return self.execute("
|
115
|
+
return self.execute("9c84d7ca-5cc2-4c55-8675-faf2a8c7efc6", Disbursement.new(mapObj))
|
116
116
|
end
|
117
117
|
|
118
118
|
|
@@ -37,7 +37,7 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'64109d07-cc7a-41a4-adf7-b2de84f92641' => OperationConfig.new("/inbound/notification/v1/", "create", [], []),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
@@ -64,7 +64,7 @@ module MasterCard
|
|
64
64
|
#@param Dict mapObj, containing the required parameters to create a new object
|
65
65
|
#@return [TransferNotification] of the response of created instance.
|
66
66
|
#@raise [APIException] an exception from the response status
|
67
|
-
return self.execute("
|
67
|
+
return self.execute("64109d07-cc7a-41a4-adf7-b2de84f92641", TransferNotification.new(mapObj))
|
68
68
|
end
|
69
69
|
|
70
70
|
|
@@ -6,10 +6,5 @@ require 'mastercard/api/disbursements/accountbalance'
|
|
6
6
|
require 'mastercard/api/disbursements/accountinfo'
|
7
7
|
require 'mastercard/api/disbursements/accountmapping'
|
8
8
|
require 'mastercard/api/disbursements/accountverification'
|
9
|
-
require 'mastercard/api/disbursements/consumer'
|
10
|
-
require 'mastercard/api/disbursements/consumeraccount'
|
11
|
-
require 'mastercard/api/disbursements/consumercontactid'
|
12
|
-
require 'mastercard/api/disbursements/consumergovernmentid'
|
13
9
|
require 'mastercard/api/disbursements/disbursement'
|
14
|
-
require 'mastercard/api/disbursements/sanctionscreening'
|
15
10
|
require 'mastercard/api/disbursements/transfernotification'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mastercard_disbursements
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
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: 2019-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mastercard_api_core
|
@@ -55,13 +55,8 @@ files:
|
|
55
55
|
- lib/mastercard/api/disbursements/accountinfo.rb
|
56
56
|
- lib/mastercard/api/disbursements/accountmapping.rb
|
57
57
|
- lib/mastercard/api/disbursements/accountverification.rb
|
58
|
-
- lib/mastercard/api/disbursements/consumer.rb
|
59
|
-
- lib/mastercard/api/disbursements/consumeraccount.rb
|
60
|
-
- lib/mastercard/api/disbursements/consumercontactid.rb
|
61
|
-
- lib/mastercard/api/disbursements/consumergovernmentid.rb
|
62
58
|
- lib/mastercard/api/disbursements/disbursement.rb
|
63
59
|
- lib/mastercard/api/disbursements/resourceconfig.rb
|
64
|
-
- lib/mastercard/api/disbursements/sanctionscreening.rb
|
65
60
|
- lib/mastercard/api/disbursements/transfernotification.rb
|
66
61
|
- lib/mastercard_disbursements.rb
|
67
62
|
homepage: https://developer.mastercard.com
|
@@ -84,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
79
|
version: '0'
|
85
80
|
requirements: []
|
86
81
|
rubyforge_project:
|
87
|
-
rubygems_version: 2.
|
82
|
+
rubygems_version: 2.7.7
|
88
83
|
signing_key:
|
89
84
|
specification_version: 4
|
90
85
|
summary: MasterCard Disbursements SDK
|
@@ -1,213 +0,0 @@
|
|
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 Disbursements
|
35
|
-
class Consumer < MasterCard::Core::Model::BaseObject
|
36
|
-
include MasterCard::Core::Model
|
37
|
-
#
|
38
|
-
|
39
|
-
@__store = {
|
40
|
-
'812eb7a6-1f1e-4614-9186-46d9f71cd632' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "delete", [], []),
|
41
|
-
'060a89d2-6b1e-4c2c-b9fa-015a2995e08a' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "create", [], []),
|
42
|
-
'ea1c313f-91b4-47cb-9ecc-85af9a19b4cb' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "read", [], []),
|
43
|
-
'c88785fc-be1a-4880-a652-ff3c2f12d57a' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "query", [], ["ref","contact_id_uri"]),
|
44
|
-
'781f8c6d-3a95-4428-a286-c6cd85e23cbc' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/search", "create", [], []),
|
45
|
-
'68aa19c2-4fdb-4ed4-8ed2-4fbd372fecc6' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "update", [], []),
|
46
|
-
|
47
|
-
}
|
48
|
-
|
49
|
-
protected
|
50
|
-
|
51
|
-
def self.getOperationConfig(operationUUID)
|
52
|
-
if @__store.key?(operationUUID)
|
53
|
-
return @__store[operationUUID]
|
54
|
-
end
|
55
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
56
|
-
end
|
57
|
-
|
58
|
-
def self.getOperationMetadata()
|
59
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
60
|
-
end
|
61
|
-
|
62
|
-
public
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
def self.deleteById(id, map = nil)
|
69
|
-
#Delete object of type Consumer by id
|
70
|
-
|
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
|
75
|
-
|
76
|
-
|
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
|
88
|
-
|
89
|
-
return self.execute("812eb7a6-1f1e-4614-9186-46d9f71cd632", mapObj)
|
90
|
-
end
|
91
|
-
|
92
|
-
|
93
|
-
def delete
|
94
|
-
#
|
95
|
-
#Delete object of type Consumer
|
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
|
-
#
|
101
|
-
|
102
|
-
return self.class.execute("812eb7a6-1f1e-4614-9186-46d9f71cd632", self)
|
103
|
-
end
|
104
|
-
|
105
|
-
|
106
|
-
|
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("060a89d2-6b1e-4c2c-b9fa-015a2995e08a", Consumer.new(mapObj))
|
116
|
-
end
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
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
|
-
|
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
|
147
|
-
|
148
|
-
return self.execute("ea1c313f-91b4-47cb-9ecc-85af9a19b4cb",Consumer.new(mapObj))
|
149
|
-
end
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
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
|
-
#
|
165
|
-
|
166
|
-
return self.execute("c88785fc-be1a-4880-a652-ff3c2f12d57a",Consumer.new(criteria))
|
167
|
-
end
|
168
|
-
|
169
|
-
|
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("781f8c6d-3a95-4428-a286-c6cd85e23cbc", Consumer.new(mapObj))
|
178
|
-
end
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
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("68aa19c2-4fdb-4ed4-8ed2-4fbd372fecc6",self)
|
195
|
-
end
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
end
|
204
|
-
end
|
205
|
-
end
|
206
|
-
end
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
@@ -1,196 +0,0 @@
|
|
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 Disbursements
|
35
|
-
class ConsumerAccount < MasterCard::Core::Model::BaseObject
|
36
|
-
include MasterCard::Core::Model
|
37
|
-
#
|
38
|
-
|
39
|
-
@__store = {
|
40
|
-
'04b16f75-0ef9-46ca-aee5-517ffb2e5609' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts", "create", [], []),
|
41
|
-
'33425a3c-6efb-4d84-aaa6-376b0d5a395b' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "delete", [], []),
|
42
|
-
'f2686f52-4353-47a8-b347-db7cf76880ce' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "read", [], []),
|
43
|
-
'b520f4a3-26a4-4231-b913-aace08a3c25f' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts", "query", [], ["ref"]),
|
44
|
-
'eb17f0cf-7a35-4423-b268-a296f065fe91' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "update", [], []),
|
45
|
-
|
46
|
-
}
|
47
|
-
|
48
|
-
protected
|
49
|
-
|
50
|
-
def self.getOperationConfig(operationUUID)
|
51
|
-
if @__store.key?(operationUUID)
|
52
|
-
return @__store[operationUUID]
|
53
|
-
end
|
54
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
55
|
-
end
|
56
|
-
|
57
|
-
def self.getOperationMetadata()
|
58
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
59
|
-
end
|
60
|
-
|
61
|
-
public
|
62
|
-
|
63
|
-
|
64
|
-
def self.create(mapObj)
|
65
|
-
#
|
66
|
-
#Creates object of type ConsumerAccount
|
67
|
-
#
|
68
|
-
#@param Dict mapObj, containing the required parameters to create a new object
|
69
|
-
#@return [ConsumerAccount] of the response of created instance.
|
70
|
-
#@raise [APIException] an exception from the response status
|
71
|
-
return self.execute("04b16f75-0ef9-46ca-aee5-517ffb2e5609", ConsumerAccount.new(mapObj))
|
72
|
-
end
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
def self.deleteById(id, map = nil)
|
84
|
-
#Delete object of type ConsumerAccount by id
|
85
|
-
|
86
|
-
#@param [String] id
|
87
|
-
#@param [Dict] map, containing additional parameters
|
88
|
-
#@return [ConsumerAccount] of the response of the deleted instance.
|
89
|
-
#@raise [APIException] an exception from the response status
|
90
|
-
|
91
|
-
|
92
|
-
mapObj = ConsumerAccount.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
|
103
|
-
|
104
|
-
return self.execute("33425a3c-6efb-4d84-aaa6-376b0d5a395b", mapObj)
|
105
|
-
end
|
106
|
-
|
107
|
-
|
108
|
-
def delete
|
109
|
-
#
|
110
|
-
#Delete object of type ConsumerAccount
|
111
|
-
|
112
|
-
#@param [String] id
|
113
|
-
#@return [ConsumerAccount] of the response of the deleted instance.
|
114
|
-
#@raise [APIException] an exception from the response status
|
115
|
-
#
|
116
|
-
|
117
|
-
return self.class.execute("33425a3c-6efb-4d84-aaa6-376b0d5a395b", self)
|
118
|
-
end
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
def self.readByID(id, criteria = nil)
|
128
|
-
#
|
129
|
-
#Returns objects of type ConsumerAccount by id and optional criteria
|
130
|
-
#@param [String] id
|
131
|
-
#@param [Dict] criteria
|
132
|
-
#@return [ConsumerAccount] object representing the response
|
133
|
-
#@raise [APIException] an exception from the response status
|
134
|
-
|
135
|
-
mapObj = ConsumerAccount.new
|
136
|
-
if !(id.nil? || id.to_s.empty?)
|
137
|
-
mapObj.set("id", id)
|
138
|
-
end
|
139
|
-
if !criteria.nil?
|
140
|
-
if criteria.instance_of? RequestMap
|
141
|
-
mapObj.setAll(criteria.getObject())
|
142
|
-
else
|
143
|
-
mapObj.setAll(criteria)
|
144
|
-
end
|
145
|
-
end
|
146
|
-
|
147
|
-
return self.execute("f2686f52-4353-47a8-b347-db7cf76880ce",ConsumerAccount.new(mapObj))
|
148
|
-
end
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
def self.listAll(criteria)
|
158
|
-
#
|
159
|
-
#Query objects of type ConsumerAccount by id and optional criteria
|
160
|
-
#@param [Dict] criteria
|
161
|
-
#@return [ConsumerAccount] object representing the response.
|
162
|
-
#@raise [APIException] an exception from the response status
|
163
|
-
#
|
164
|
-
|
165
|
-
return self.execute("b520f4a3-26a4-4231-b913-aace08a3c25f",ConsumerAccount.new(criteria))
|
166
|
-
end
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
def update
|
171
|
-
#
|
172
|
-
#Updates an object of type ConsumerAccount
|
173
|
-
#
|
174
|
-
#@return [ConsumerAccount] object representing the response.
|
175
|
-
#@raise [APIException] an exception from the response status
|
176
|
-
#
|
177
|
-
return self.class.execute("eb17f0cf-7a35-4423-b268-a296f065fe91",self)
|
178
|
-
end
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
end
|
187
|
-
end
|
188
|
-
end
|
189
|
-
end
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
@@ -1,196 +0,0 @@
|
|
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 Disbursements
|
35
|
-
class ConsumerContactID < MasterCard::Core::Model::BaseObject
|
36
|
-
include MasterCard::Core::Model
|
37
|
-
#
|
38
|
-
|
39
|
-
@__store = {
|
40
|
-
'57795a8d-8a16-4327-9c3a-ea3d849f19e6' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "create", [], []),
|
41
|
-
'86cc8af0-9c9f-45af-b9e2-d385a8a3feea' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "delete", [], []),
|
42
|
-
'2eec4850-b43c-4621-970b-83903e304748' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "read", [], []),
|
43
|
-
'c9f54087-7efc-4951-bbfc-ed0f3890023f' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "query", [], []),
|
44
|
-
'cd34abcd-0b8e-4871-8919-28042b12efbf' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "update", [], []),
|
45
|
-
|
46
|
-
}
|
47
|
-
|
48
|
-
protected
|
49
|
-
|
50
|
-
def self.getOperationConfig(operationUUID)
|
51
|
-
if @__store.key?(operationUUID)
|
52
|
-
return @__store[operationUUID]
|
53
|
-
end
|
54
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
55
|
-
end
|
56
|
-
|
57
|
-
def self.getOperationMetadata()
|
58
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
59
|
-
end
|
60
|
-
|
61
|
-
public
|
62
|
-
|
63
|
-
|
64
|
-
def self.create(mapObj)
|
65
|
-
#
|
66
|
-
#Creates object of type ConsumerContactID
|
67
|
-
#
|
68
|
-
#@param Dict mapObj, containing the required parameters to create a new object
|
69
|
-
#@return [ConsumerContactID] of the response of created instance.
|
70
|
-
#@raise [APIException] an exception from the response status
|
71
|
-
return self.execute("57795a8d-8a16-4327-9c3a-ea3d849f19e6", ConsumerContactID.new(mapObj))
|
72
|
-
end
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
def self.deleteById(id, map = nil)
|
84
|
-
#Delete object of type ConsumerContactID by id
|
85
|
-
|
86
|
-
#@param [String] id
|
87
|
-
#@param [Dict] map, containing additional parameters
|
88
|
-
#@return [ConsumerContactID] of the response of the deleted instance.
|
89
|
-
#@raise [APIException] an exception from the response status
|
90
|
-
|
91
|
-
|
92
|
-
mapObj = ConsumerContactID.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
|
103
|
-
|
104
|
-
return self.execute("86cc8af0-9c9f-45af-b9e2-d385a8a3feea", mapObj)
|
105
|
-
end
|
106
|
-
|
107
|
-
|
108
|
-
def delete
|
109
|
-
#
|
110
|
-
#Delete object of type ConsumerContactID
|
111
|
-
|
112
|
-
#@param [String] id
|
113
|
-
#@return [ConsumerContactID] of the response of the deleted instance.
|
114
|
-
#@raise [APIException] an exception from the response status
|
115
|
-
#
|
116
|
-
|
117
|
-
return self.class.execute("86cc8af0-9c9f-45af-b9e2-d385a8a3feea", self)
|
118
|
-
end
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
def self.read(id, criteria = nil)
|
128
|
-
#
|
129
|
-
#Returns objects of type ConsumerContactID by id and optional criteria
|
130
|
-
#@param [String] id
|
131
|
-
#@param [Dict] criteria
|
132
|
-
#@return [ConsumerContactID] object representing the response
|
133
|
-
#@raise [APIException] an exception from the response status
|
134
|
-
|
135
|
-
mapObj = ConsumerContactID.new
|
136
|
-
if !(id.nil? || id.to_s.empty?)
|
137
|
-
mapObj.set("id", id)
|
138
|
-
end
|
139
|
-
if !criteria.nil?
|
140
|
-
if criteria.instance_of? RequestMap
|
141
|
-
mapObj.setAll(criteria.getObject())
|
142
|
-
else
|
143
|
-
mapObj.setAll(criteria)
|
144
|
-
end
|
145
|
-
end
|
146
|
-
|
147
|
-
return self.execute("2eec4850-b43c-4621-970b-83903e304748",ConsumerContactID.new(mapObj))
|
148
|
-
end
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
def self.listAll(criteria)
|
158
|
-
#
|
159
|
-
#Query objects of type ConsumerContactID by id and optional criteria
|
160
|
-
#@param [Dict] criteria
|
161
|
-
#@return [ConsumerContactID] object representing the response.
|
162
|
-
#@raise [APIException] an exception from the response status
|
163
|
-
#
|
164
|
-
|
165
|
-
return self.execute("c9f54087-7efc-4951-bbfc-ed0f3890023f",ConsumerContactID.new(criteria))
|
166
|
-
end
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
def update
|
171
|
-
#
|
172
|
-
#Updates an object of type ConsumerContactID
|
173
|
-
#
|
174
|
-
#@return [ConsumerContactID] object representing the response.
|
175
|
-
#@raise [APIException] an exception from the response status
|
176
|
-
#
|
177
|
-
return self.class.execute("cd34abcd-0b8e-4871-8919-28042b12efbf",self)
|
178
|
-
end
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
end
|
187
|
-
end
|
188
|
-
end
|
189
|
-
end
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
@@ -1,196 +0,0 @@
|
|
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 Disbursements
|
35
|
-
class ConsumerGovernmentID < MasterCard::Core::Model::BaseObject
|
36
|
-
include MasterCard::Core::Model
|
37
|
-
#
|
38
|
-
|
39
|
-
@__store = {
|
40
|
-
'55637535-fea5-4ca0-bbb5-dbc2e97b923e' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "create", [], []),
|
41
|
-
'cddc7e6b-6095-4d8c-8535-0f9e670b27a7' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "delete", [], []),
|
42
|
-
'26bc0a45-8a40-4933-aeed-e0810825cec6' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "read", [], []),
|
43
|
-
'31feb73f-3c40-4c46-8f19-6feb94d98817' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "query", [], []),
|
44
|
-
'b3cc30a7-6397-468f-a034-12a8192c5816' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "update", [], []),
|
45
|
-
|
46
|
-
}
|
47
|
-
|
48
|
-
protected
|
49
|
-
|
50
|
-
def self.getOperationConfig(operationUUID)
|
51
|
-
if @__store.key?(operationUUID)
|
52
|
-
return @__store[operationUUID]
|
53
|
-
end
|
54
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
55
|
-
end
|
56
|
-
|
57
|
-
def self.getOperationMetadata()
|
58
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
59
|
-
end
|
60
|
-
|
61
|
-
public
|
62
|
-
|
63
|
-
|
64
|
-
def self.create(mapObj)
|
65
|
-
#
|
66
|
-
#Creates object of type ConsumerGovernmentID
|
67
|
-
#
|
68
|
-
#@param Dict mapObj, containing the required parameters to create a new object
|
69
|
-
#@return [ConsumerGovernmentID] of the response of created instance.
|
70
|
-
#@raise [APIException] an exception from the response status
|
71
|
-
return self.execute("55637535-fea5-4ca0-bbb5-dbc2e97b923e", ConsumerGovernmentID.new(mapObj))
|
72
|
-
end
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
def self.deleteById(id, map = nil)
|
84
|
-
#Delete object of type ConsumerGovernmentID by id
|
85
|
-
|
86
|
-
#@param [String] id
|
87
|
-
#@param [Dict] map, containing additional parameters
|
88
|
-
#@return [ConsumerGovernmentID] of the response of the deleted instance.
|
89
|
-
#@raise [APIException] an exception from the response status
|
90
|
-
|
91
|
-
|
92
|
-
mapObj = ConsumerGovernmentID.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
|
103
|
-
|
104
|
-
return self.execute("cddc7e6b-6095-4d8c-8535-0f9e670b27a7", mapObj)
|
105
|
-
end
|
106
|
-
|
107
|
-
|
108
|
-
def delete
|
109
|
-
#
|
110
|
-
#Delete object of type ConsumerGovernmentID
|
111
|
-
|
112
|
-
#@param [String] id
|
113
|
-
#@return [ConsumerGovernmentID] of the response of the deleted instance.
|
114
|
-
#@raise [APIException] an exception from the response status
|
115
|
-
#
|
116
|
-
|
117
|
-
return self.class.execute("cddc7e6b-6095-4d8c-8535-0f9e670b27a7", self)
|
118
|
-
end
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
def self.read(id, criteria = nil)
|
128
|
-
#
|
129
|
-
#Returns objects of type ConsumerGovernmentID by id and optional criteria
|
130
|
-
#@param [String] id
|
131
|
-
#@param [Dict] criteria
|
132
|
-
#@return [ConsumerGovernmentID] object representing the response
|
133
|
-
#@raise [APIException] an exception from the response status
|
134
|
-
|
135
|
-
mapObj = ConsumerGovernmentID.new
|
136
|
-
if !(id.nil? || id.to_s.empty?)
|
137
|
-
mapObj.set("id", id)
|
138
|
-
end
|
139
|
-
if !criteria.nil?
|
140
|
-
if criteria.instance_of? RequestMap
|
141
|
-
mapObj.setAll(criteria.getObject())
|
142
|
-
else
|
143
|
-
mapObj.setAll(criteria)
|
144
|
-
end
|
145
|
-
end
|
146
|
-
|
147
|
-
return self.execute("26bc0a45-8a40-4933-aeed-e0810825cec6",ConsumerGovernmentID.new(mapObj))
|
148
|
-
end
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
def self.listAll(criteria)
|
158
|
-
#
|
159
|
-
#Query objects of type ConsumerGovernmentID by id and optional criteria
|
160
|
-
#@param [Dict] criteria
|
161
|
-
#@return [ConsumerGovernmentID] object representing the response.
|
162
|
-
#@raise [APIException] an exception from the response status
|
163
|
-
#
|
164
|
-
|
165
|
-
return self.execute("31feb73f-3c40-4c46-8f19-6feb94d98817",ConsumerGovernmentID.new(criteria))
|
166
|
-
end
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
def update
|
171
|
-
#
|
172
|
-
#Updates an object of type ConsumerGovernmentID
|
173
|
-
#
|
174
|
-
#@return [ConsumerGovernmentID] object representing the response.
|
175
|
-
#@raise [APIException] an exception from the response status
|
176
|
-
#
|
177
|
-
return self.class.execute("b3cc30a7-6397-468f-a034-12a8192c5816",self)
|
178
|
-
end
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
end
|
187
|
-
end
|
188
|
-
end
|
189
|
-
end
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
@@ -1,87 +0,0 @@
|
|
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 Disbursements
|
35
|
-
class SanctionScreening < MasterCard::Core::Model::BaseObject
|
36
|
-
include MasterCard::Core::Model
|
37
|
-
#
|
38
|
-
|
39
|
-
@__store = {
|
40
|
-
'5e7f74e8-3dc4-4b11-afad-2289b71ce2a7' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/sanction_screening", "update", [], []),
|
41
|
-
|
42
|
-
}
|
43
|
-
|
44
|
-
protected
|
45
|
-
|
46
|
-
def self.getOperationConfig(operationUUID)
|
47
|
-
if @__store.key?(operationUUID)
|
48
|
-
return @__store[operationUUID]
|
49
|
-
end
|
50
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
51
|
-
end
|
52
|
-
|
53
|
-
def self.getOperationMetadata()
|
54
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
55
|
-
end
|
56
|
-
|
57
|
-
public
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
def read
|
62
|
-
#
|
63
|
-
#Updates an object of type SanctionScreening
|
64
|
-
#
|
65
|
-
#@return [SanctionScreening] object representing the response.
|
66
|
-
#@raise [APIException] an exception from the response status
|
67
|
-
#
|
68
|
-
return self.class.execute("5e7f74e8-3dc4-4b11-afad-2289b71ce2a7",self)
|
69
|
-
end
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|