mastercard_disbursements 1.0.3 → 1.0.4
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 +4 -4
- data/lib/mastercard/api/disbursements/accountbalance.rb +105 -0
- data/lib/mastercard/api/disbursements/accountinfo.rb +32 -32
- data/lib/mastercard/api/disbursements/accountmapping.rb +32 -32
- data/lib/mastercard/api/disbursements/accountverification.rb +32 -32
- data/lib/mastercard/api/disbursements/consumer.rb +112 -112
- data/lib/mastercard/api/disbursements/consumeraccount.rb +102 -102
- data/lib/mastercard/api/disbursements/consumercontactid.rb +102 -102
- data/lib/mastercard/api/disbursements/consumergovernmentid.rb +102 -102
- data/lib/mastercard/api/disbursements/disbursement.rb +63 -63
- data/lib/mastercard/api/disbursements/resourceconfig.rb +54 -54
- data/lib/mastercard/api/disbursements/sanctionscreening.rb +32 -32
- data/lib/mastercard/api/disbursements/transfernotification.rb +32 -32
- data/lib/mastercard_disbursements.rb +1 -0
- metadata +5 -4
@@ -30,46 +30,46 @@ require "mastercard/core/model"
|
|
30
30
|
require "mastercard/core/baseobject"
|
31
31
|
|
32
32
|
module MasterCard
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
module API
|
34
|
+
module Disbursements
|
35
|
+
class ConsumerContactID < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
39
|
+
@__store = {
|
40
|
+
'e5861402-6f9b-4d51-9795-abc92daf2682' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "create", [], []),
|
41
|
+
'e344ecac-2a50-4fe8-8962-ceaa0a457339' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "delete", [], []),
|
42
|
+
'69c21e1b-b149-4502-850c-834545a3ce9a' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "read", [], []),
|
43
|
+
'a712c036-dd92-41ce-a846-69c7e2e7bcd4' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "query", [], []),
|
44
|
+
'29e4ec01-00ee-47f9-abab-585b8379d7bd' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "update", [], []),
|
45
|
+
|
46
|
+
}
|
47
47
|
|
48
|
-
|
48
|
+
protected
|
49
49
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
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
56
|
|
57
|
-
|
58
|
-
|
59
|
-
|
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
60
|
|
61
|
-
|
61
|
+
public
|
62
62
|
|
63
63
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
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("e5861402-6f9b-4d51-9795-abc92daf2682", ConsumerContactID.new(mapObj))
|
72
|
+
end
|
73
73
|
|
74
74
|
|
75
75
|
|
@@ -80,42 +80,42 @@ module MasterCard
|
|
80
80
|
|
81
81
|
|
82
82
|
|
83
|
-
|
84
|
-
|
83
|
+
def self.deleteById(id, map = nil)
|
84
|
+
#Delete object of type ConsumerContactID by id
|
85
85
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
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
90
|
|
91
91
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
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
103
|
|
104
|
-
|
105
|
-
|
104
|
+
return self.execute("e344ecac-2a50-4fe8-8962-ceaa0a457339", mapObj)
|
105
|
+
end
|
106
106
|
|
107
107
|
|
108
|
-
|
109
|
-
|
110
|
-
|
108
|
+
def delete
|
109
|
+
#
|
110
|
+
#Delete object of type ConsumerContactID
|
111
111
|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
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
116
|
|
117
|
-
|
118
|
-
|
117
|
+
return self.class.execute("e344ecac-2a50-4fe8-8962-ceaa0a457339", self)
|
118
|
+
end
|
119
119
|
|
120
120
|
|
121
121
|
|
@@ -124,28 +124,28 @@ module MasterCard
|
|
124
124
|
|
125
125
|
|
126
126
|
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
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
134
|
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
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
146
|
|
147
|
-
|
148
|
-
|
147
|
+
return self.execute("69c21e1b-b149-4502-850c-834545a3ce9a",ConsumerContactID.new(mapObj))
|
148
|
+
end
|
149
149
|
|
150
150
|
|
151
151
|
|
@@ -154,28 +154,28 @@ module MasterCard
|
|
154
154
|
|
155
155
|
|
156
156
|
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
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
164
|
|
165
|
-
|
166
|
-
|
165
|
+
return self.execute("a712c036-dd92-41ce-a846-69c7e2e7bcd4",ConsumerContactID.new(criteria))
|
166
|
+
end
|
167
167
|
|
168
168
|
|
169
169
|
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
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("29e4ec01-00ee-47f9-abab-585b8379d7bd",self)
|
178
|
+
end
|
179
179
|
|
180
180
|
|
181
181
|
|
@@ -183,9 +183,9 @@ module MasterCard
|
|
183
183
|
|
184
184
|
|
185
185
|
|
186
|
-
|
187
|
-
|
188
|
-
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|
189
189
|
end
|
190
190
|
|
191
191
|
|
@@ -30,46 +30,46 @@ require "mastercard/core/model"
|
|
30
30
|
require "mastercard/core/baseobject"
|
31
31
|
|
32
32
|
module MasterCard
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
module API
|
34
|
+
module Disbursements
|
35
|
+
class ConsumerGovernmentID < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
39
|
+
@__store = {
|
40
|
+
'ea608dfe-001f-48f7-ba04-376d73bf93b9' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "create", [], []),
|
41
|
+
'4f3ebd3d-6491-40b1-8638-93767f20207d' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "delete", [], []),
|
42
|
+
'9ba6eb72-8a77-4ed2-8727-070b65b65984' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "read", [], []),
|
43
|
+
'349e72a0-523f-431f-bd8b-ed3b8aae4979' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "query", [], []),
|
44
|
+
'2fcda330-e7e5-4c00-bda1-94db94b19ef7' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "update", [], []),
|
45
|
+
|
46
|
+
}
|
47
47
|
|
48
|
-
|
48
|
+
protected
|
49
49
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
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
56
|
|
57
|
-
|
58
|
-
|
59
|
-
|
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
60
|
|
61
|
-
|
61
|
+
public
|
62
62
|
|
63
63
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
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("ea608dfe-001f-48f7-ba04-376d73bf93b9", ConsumerGovernmentID.new(mapObj))
|
72
|
+
end
|
73
73
|
|
74
74
|
|
75
75
|
|
@@ -80,42 +80,42 @@ module MasterCard
|
|
80
80
|
|
81
81
|
|
82
82
|
|
83
|
-
|
84
|
-
|
83
|
+
def self.deleteById(id, map = nil)
|
84
|
+
#Delete object of type ConsumerGovernmentID by id
|
85
85
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
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
90
|
|
91
91
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
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
103
|
|
104
|
-
|
105
|
-
|
104
|
+
return self.execute("4f3ebd3d-6491-40b1-8638-93767f20207d", mapObj)
|
105
|
+
end
|
106
106
|
|
107
107
|
|
108
|
-
|
109
|
-
|
110
|
-
|
108
|
+
def delete
|
109
|
+
#
|
110
|
+
#Delete object of type ConsumerGovernmentID
|
111
111
|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
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
116
|
|
117
|
-
|
118
|
-
|
117
|
+
return self.class.execute("4f3ebd3d-6491-40b1-8638-93767f20207d", self)
|
118
|
+
end
|
119
119
|
|
120
120
|
|
121
121
|
|
@@ -124,28 +124,28 @@ module MasterCard
|
|
124
124
|
|
125
125
|
|
126
126
|
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
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
134
|
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
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
146
|
|
147
|
-
|
148
|
-
|
147
|
+
return self.execute("9ba6eb72-8a77-4ed2-8727-070b65b65984",ConsumerGovernmentID.new(mapObj))
|
148
|
+
end
|
149
149
|
|
150
150
|
|
151
151
|
|
@@ -154,28 +154,28 @@ module MasterCard
|
|
154
154
|
|
155
155
|
|
156
156
|
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
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
164
|
|
165
|
-
|
166
|
-
|
165
|
+
return self.execute("349e72a0-523f-431f-bd8b-ed3b8aae4979",ConsumerGovernmentID.new(criteria))
|
166
|
+
end
|
167
167
|
|
168
168
|
|
169
169
|
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
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("2fcda330-e7e5-4c00-bda1-94db94b19ef7",self)
|
178
|
+
end
|
179
179
|
|
180
180
|
|
181
181
|
|
@@ -183,9 +183,9 @@ module MasterCard
|
|
183
183
|
|
184
184
|
|
185
185
|
|
186
|
-
|
187
|
-
|
188
|
-
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|
189
189
|
end
|
190
190
|
|
191
191
|
|