mastercard_p2p 1.0.3 → 1.0.4
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/p2p/accountbalance.rb +105 -0
- data/lib/mastercard/api/p2p/accountinfo.rb +32 -32
- data/lib/mastercard/api/p2p/accountmapping.rb +32 -32
- data/lib/mastercard/api/p2p/accountverification.rb +32 -32
- data/lib/mastercard/api/p2p/consumer.rb +112 -112
- data/lib/mastercard/api/p2p/consumeraccount.rb +102 -102
- data/lib/mastercard/api/p2p/consumercontactid.rb +102 -102
- data/lib/mastercard/api/p2p/consumergovernmentid.rb +102 -102
- data/lib/mastercard/api/p2p/paymenttransfer.rb +63 -63
- data/lib/mastercard/api/p2p/resourceconfig.rb +54 -54
- data/lib/mastercard/api/p2p/sanctionscreening.rb +32 -32
- data/lib/mastercard/api/p2p/transfernotification.rb +32 -32
- data/lib/mastercard_p2p.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 P2p
|
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
|
+
'b1f5eb76-2fbd-4c8a-8e29-26dd7bf8242c' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "create", [], []),
|
41
|
+
'f843888c-a34e-4c66-b929-b1ce0e2e6b7d' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "delete", [], []),
|
42
|
+
'7cef3d57-86be-4e93-9e2d-fe0e593fba0f' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "read", [], []),
|
43
|
+
'26933dfd-6a57-4856-a64e-1d9254493287' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "query", [], []),
|
44
|
+
'f0af4736-54c2-4d6f-b30e-9a92217c8efd' => 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("b1f5eb76-2fbd-4c8a-8e29-26dd7bf8242c", 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("f843888c-a34e-4c66-b929-b1ce0e2e6b7d", 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("f843888c-a34e-4c66-b929-b1ce0e2e6b7d", 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("7cef3d57-86be-4e93-9e2d-fe0e593fba0f",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("26933dfd-6a57-4856-a64e-1d9254493287",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("f0af4736-54c2-4d6f-b30e-9a92217c8efd",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 P2p
|
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
|
+
'19b63b77-b081-46af-a7cd-ca20c5896227' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "create", [], []),
|
41
|
+
'66b526c7-3114-4340-bd0f-d73da78c13ee' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "delete", [], []),
|
42
|
+
'bf751363-e8e0-444e-b09f-8359eb3376d3' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "read", [], []),
|
43
|
+
'd56319ef-bdc8-4081-8c49-6bc571ff0d3e' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "query", [], []),
|
44
|
+
'cf4d78a4-2ca9-42d8-bd5a-5e414c662cc3' => 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("19b63b77-b081-46af-a7cd-ca20c5896227", 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("66b526c7-3114-4340-bd0f-d73da78c13ee", 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("66b526c7-3114-4340-bd0f-d73da78c13ee", 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("bf751363-e8e0-444e-b09f-8359eb3376d3",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("d56319ef-bdc8-4081-8c49-6bc571ff0d3e",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("cf4d78a4-2ca9-42d8-bd5a-5e414c662cc3",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
|
|