mastercard_p2p 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 219f5799a7e983a6363d57c424303df469b26bde
4
+ data.tar.gz: fcb92eba8c3432e383b9fbc06cfb4aca75b12b60
5
+ SHA512:
6
+ metadata.gz: eb9ff7076f20eef1553f3c6efe7aedd08c9f02c7b2e6a5d63e1de0e4c96e7b75f269630c63d3c5b3457e600f13464b468d59452533f7b75cf908aa1485968882
7
+ data.tar.gz: 3cca874d56c9f07d8eb8d81a1bc4353e9c23811d57a346a67b5ae926da2bff668864b8fd506dc7e26abad9977daf470a1a0cb208439b550ace300c40bf3a6569
@@ -0,0 +1,83 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module P2p
34
+ class AccountInfo < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ 'eafcb4d2-c9fc-46db-8ef5-b1d4c1b5ac08' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-info", "update", [], ["fields"]),
40
+
41
+ }
42
+
43
+ protected
44
+
45
+ def self.getOperationConfig(uuid)
46
+ if @__store.key?(uuid)
47
+ return @__store[uuid]
48
+ end
49
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
+ end
51
+
52
+ def self.getOperationMetadata()
53
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
54
+ end
55
+
56
+ public
57
+
58
+
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("eafcb4d2-c9fc-46db-8ef5-b1d4c1b5ac08",self)
66
+ end
67
+
68
+
69
+
70
+
71
+
72
+
73
+ end
74
+ end
75
+ end
76
+ end
77
+
78
+
79
+
80
+
81
+
82
+
83
+
@@ -0,0 +1,83 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module P2p
34
+ class AccountVerification < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ 'd25178c0-d602-436b-8d2f-e179c00d744d' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-verification", "create", [], []),
40
+
41
+ }
42
+
43
+ protected
44
+
45
+ def self.getOperationConfig(uuid)
46
+ if @__store.key?(uuid)
47
+ return @__store[uuid]
48
+ end
49
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
+ end
51
+
52
+ def self.getOperationMetadata()
53
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
54
+ end
55
+
56
+ public
57
+
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("d25178c0-d602-436b-8d2f-e179c00d744d", AccountVerification.new(mapObj))
66
+ end
67
+
68
+
69
+
70
+
71
+
72
+
73
+ end
74
+ end
75
+ end
76
+ end
77
+
78
+
79
+
80
+
81
+
82
+
83
+
@@ -0,0 +1,200 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module P2p
34
+ class Consumer < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ 'f784f495-b8df-41c3-abca-44ec2eb04624' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "query", [], ["ref","contact_id_uri"]),
40
+ 'abbad0fa-341a-478e-98a2-4ff2ec7ce37f' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "create", [], []),
41
+ '1a7d6c07-f243-4577-8a9f-3f593f6dacc8' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/search", "create", [], []),
42
+ '915e7ecf-f1ec-4c4f-9f2e-62f974837ba3' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "read", [], []),
43
+ '25ec0e85-c158-4250-952c-2cfef6ddb8cf' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "update", [], []),
44
+ '0966aa40-7c74-4ba4-a894-a7c567c8f085' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "delete", [], []),
45
+
46
+ }
47
+
48
+ protected
49
+
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
56
+
57
+ def self.getOperationMetadata()
58
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
59
+ end
60
+
61
+ public
62
+
63
+
64
+
65
+
66
+
67
+
68
+ def self.listByReferenceOrContactID(criteria)
69
+ #
70
+ #Query objects of type Consumer by id and optional criteria
71
+ #@param type criteria
72
+ #@return Consumer object representing the response.
73
+ #
74
+
75
+ return self.execute("f784f495-b8df-41c3-abca-44ec2eb04624",Consumer.new(criteria))
76
+ end
77
+
78
+ def self.create(mapObj)
79
+ #
80
+ #Creates object of type Consumer
81
+ #
82
+ #@param Dict mapObj, containing the required parameters to create a new object
83
+ #@return Consumer of the response of created instance.
84
+ #
85
+ return self.execute("abbad0fa-341a-478e-98a2-4ff2ec7ce37f", Consumer.new(mapObj))
86
+ end
87
+
88
+
89
+
90
+
91
+
92
+
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("1a7d6c07-f243-4577-8a9f-3f593f6dacc8", Consumer.new(mapObj))
101
+ end
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
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
+
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
+
131
+ return self.execute("915e7ecf-f1ec-4c4f-9f2e-62f974837ba3",Consumer.new(mapObj))
132
+ end
133
+
134
+
135
+
136
+ def update
137
+ #
138
+ #Updates an object of type Consumer
139
+ #
140
+ #@return Consumer object representing the response.
141
+ #
142
+ return self.class.execute("25ec0e85-c158-4250-952c-2cfef6ddb8cf",self)
143
+ end
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+ def self.deleteById(id, map = nil)
154
+ #Delete object of type Consumer by id
155
+
156
+ #@param str id
157
+ #@param Dict map, containing additional parameters
158
+ #@return Consumer of the response of the deleted instance.
159
+
160
+
161
+ mapObj = Consumer.new
162
+ if !(id.nil? || id.to_s.empty?)
163
+ mapObj.set("id", id)
164
+ end
165
+ if !map.nil?
166
+ if map.instance_of? RequestMap
167
+ mapObj.setAll(map.getObject())
168
+ else
169
+ mapObj.setAll(map)
170
+ end
171
+ end
172
+
173
+ return self.execute("0966aa40-7c74-4ba4-a894-a7c567c8f085", mapObj)
174
+ end
175
+
176
+
177
+ def delete
178
+ #
179
+ #Delete object of type Consumer
180
+
181
+ #@param str id
182
+ #@return Consumer of the response of the deleted instance.
183
+ #
184
+
185
+ return self.class.execute("0966aa40-7c74-4ba4-a894-a7c567c8f085", self)
186
+ end
187
+
188
+
189
+
190
+ end
191
+ end
192
+ end
193
+ end
194
+
195
+
196
+
197
+
198
+
199
+
200
+
@@ -0,0 +1,184 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module P2p
34
+ class ConsumerAccount < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ '38606076-1a9b-455c-a525-892d3a29e5cb' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts", "query", [], ["ref"]),
40
+ 'ad30d126-530a-493b-b2c3-83005b749ddc' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts", "create", [], []),
41
+ 'df5bf6b1-2a71-4341-a0ff-a34064ffc7d6' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "read", [], []),
42
+ 'b43956b9-01f1-48ca-a4f0-6af29b7370e3' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "update", [], []),
43
+ 'f9a9c285-3b75-4174-944f-dd78a4e20349' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "delete", [], []),
44
+
45
+ }
46
+
47
+ protected
48
+
49
+ def self.getOperationConfig(uuid)
50
+ if @__store.key?(uuid)
51
+ return @__store[uuid]
52
+ end
53
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
54
+ end
55
+
56
+ def self.getOperationMetadata()
57
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
58
+ end
59
+
60
+ public
61
+
62
+
63
+
64
+
65
+
66
+
67
+ def self.listAll(criteria)
68
+ #
69
+ #Query objects of type ConsumerAccount by id and optional criteria
70
+ #@param type criteria
71
+ #@return ConsumerAccount object representing the response.
72
+ #
73
+
74
+ return self.execute("38606076-1a9b-455c-a525-892d3a29e5cb",ConsumerAccount.new(criteria))
75
+ end
76
+
77
+ def self.create(mapObj)
78
+ #
79
+ #Creates object of type ConsumerAccount
80
+ #
81
+ #@param Dict mapObj, containing the required parameters to create a new object
82
+ #@return ConsumerAccount of the response of created instance.
83
+ #
84
+ return self.execute("ad30d126-530a-493b-b2c3-83005b749ddc", ConsumerAccount.new(mapObj))
85
+ end
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+ def self.readByID(id, criteria = nil)
97
+ #
98
+ #Returns objects of type ConsumerAccount by id and optional criteria
99
+ #@param str id
100
+ #@param dict criteria
101
+ #@return instance of ConsumerAccount
102
+
103
+ mapObj = ConsumerAccount.new
104
+ if !(id.nil? || id.to_s.empty?)
105
+ mapObj.set("id", id)
106
+ end
107
+ if !criteria.nil?
108
+ if criteria.instance_of? RequestMap
109
+ mapObj.setAll(criteria.getObject())
110
+ else
111
+ mapObj.setAll(criteria)
112
+ end
113
+ end
114
+
115
+ return self.execute("df5bf6b1-2a71-4341-a0ff-a34064ffc7d6",ConsumerAccount.new(mapObj))
116
+ end
117
+
118
+
119
+
120
+ def update
121
+ #
122
+ #Updates an object of type ConsumerAccount
123
+ #
124
+ #@return ConsumerAccount object representing the response.
125
+ #
126
+ return self.class.execute("b43956b9-01f1-48ca-a4f0-6af29b7370e3",self)
127
+ end
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+ def self.deleteById(id, map = nil)
138
+ #Delete object of type ConsumerAccount by id
139
+
140
+ #@param str id
141
+ #@param Dict map, containing additional parameters
142
+ #@return ConsumerAccount of the response of the deleted instance.
143
+
144
+
145
+ mapObj = ConsumerAccount.new
146
+ if !(id.nil? || id.to_s.empty?)
147
+ mapObj.set("id", id)
148
+ end
149
+ if !map.nil?
150
+ if map.instance_of? RequestMap
151
+ mapObj.setAll(map.getObject())
152
+ else
153
+ mapObj.setAll(map)
154
+ end
155
+ end
156
+
157
+ return self.execute("f9a9c285-3b75-4174-944f-dd78a4e20349", mapObj)
158
+ end
159
+
160
+
161
+ def delete
162
+ #
163
+ #Delete object of type ConsumerAccount
164
+
165
+ #@param str id
166
+ #@return ConsumerAccount of the response of the deleted instance.
167
+ #
168
+
169
+ return self.class.execute("f9a9c285-3b75-4174-944f-dd78a4e20349", self)
170
+ end
171
+
172
+
173
+
174
+ end
175
+ end
176
+ end
177
+ end
178
+
179
+
180
+
181
+
182
+
183
+
184
+
@@ -0,0 +1,184 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module P2p
34
+ class ConsumerContactID < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ 'eaac77eb-dc38-4be6-928d-5feec247e54c' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "query", [], []),
40
+ '021ed7f9-55c4-4803-8498-0a65e092c819' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "create", [], []),
41
+ '7972218b-2e0e-4da4-b2e0-3b0b0f7afaf9' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "read", [], []),
42
+ '74d98545-c94c-4743-9573-a06b03408915' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "update", [], []),
43
+ 'a713cbce-5b0e-4783-b0d9-d29fb9876561' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "delete", [], []),
44
+
45
+ }
46
+
47
+ protected
48
+
49
+ def self.getOperationConfig(uuid)
50
+ if @__store.key?(uuid)
51
+ return @__store[uuid]
52
+ end
53
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
54
+ end
55
+
56
+ def self.getOperationMetadata()
57
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
58
+ end
59
+
60
+ public
61
+
62
+
63
+
64
+
65
+
66
+
67
+ def self.listAll(criteria)
68
+ #
69
+ #Query objects of type ConsumerContactID by id and optional criteria
70
+ #@param type criteria
71
+ #@return ConsumerContactID object representing the response.
72
+ #
73
+
74
+ return self.execute("eaac77eb-dc38-4be6-928d-5feec247e54c",ConsumerContactID.new(criteria))
75
+ end
76
+
77
+ def self.create(mapObj)
78
+ #
79
+ #Creates object of type ConsumerContactID
80
+ #
81
+ #@param Dict mapObj, containing the required parameters to create a new object
82
+ #@return ConsumerContactID of the response of created instance.
83
+ #
84
+ return self.execute("021ed7f9-55c4-4803-8498-0a65e092c819", ConsumerContactID.new(mapObj))
85
+ end
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+ def self.read(id, criteria = nil)
97
+ #
98
+ #Returns objects of type ConsumerContactID by id and optional criteria
99
+ #@param str id
100
+ #@param dict criteria
101
+ #@return instance of ConsumerContactID
102
+
103
+ mapObj = ConsumerContactID.new
104
+ if !(id.nil? || id.to_s.empty?)
105
+ mapObj.set("id", id)
106
+ end
107
+ if !criteria.nil?
108
+ if criteria.instance_of? RequestMap
109
+ mapObj.setAll(criteria.getObject())
110
+ else
111
+ mapObj.setAll(criteria)
112
+ end
113
+ end
114
+
115
+ return self.execute("7972218b-2e0e-4da4-b2e0-3b0b0f7afaf9",ConsumerContactID.new(mapObj))
116
+ end
117
+
118
+
119
+
120
+ def update
121
+ #
122
+ #Updates an object of type ConsumerContactID
123
+ #
124
+ #@return ConsumerContactID object representing the response.
125
+ #
126
+ return self.class.execute("74d98545-c94c-4743-9573-a06b03408915",self)
127
+ end
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+ def self.deleteById(id, map = nil)
138
+ #Delete object of type ConsumerContactID by id
139
+
140
+ #@param str id
141
+ #@param Dict map, containing additional parameters
142
+ #@return ConsumerContactID of the response of the deleted instance.
143
+
144
+
145
+ mapObj = ConsumerContactID.new
146
+ if !(id.nil? || id.to_s.empty?)
147
+ mapObj.set("id", id)
148
+ end
149
+ if !map.nil?
150
+ if map.instance_of? RequestMap
151
+ mapObj.setAll(map.getObject())
152
+ else
153
+ mapObj.setAll(map)
154
+ end
155
+ end
156
+
157
+ return self.execute("a713cbce-5b0e-4783-b0d9-d29fb9876561", mapObj)
158
+ end
159
+
160
+
161
+ def delete
162
+ #
163
+ #Delete object of type ConsumerContactID
164
+
165
+ #@param str id
166
+ #@return ConsumerContactID of the response of the deleted instance.
167
+ #
168
+
169
+ return self.class.execute("a713cbce-5b0e-4783-b0d9-d29fb9876561", self)
170
+ end
171
+
172
+
173
+
174
+ end
175
+ end
176
+ end
177
+ end
178
+
179
+
180
+
181
+
182
+
183
+
184
+
@@ -0,0 +1,184 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module P2p
34
+ class ConsumerGovernmentID < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ 'a1084965-3822-4ff8-bda6-134d4d92ef1d' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "query", [], []),
40
+ 'a054b04e-9c68-4c33-9b4a-2c8863dac8bc' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "create", [], []),
41
+ '6f50a437-cea4-4356-b5fe-9ca69a15a16a' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "read", [], []),
42
+ 'd80883bb-8151-4036-8ced-9dba84c7f2f8' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "update", [], []),
43
+ '7fee36ad-b660-4d0e-84d5-885b5ed07c6f' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "delete", [], []),
44
+
45
+ }
46
+
47
+ protected
48
+
49
+ def self.getOperationConfig(uuid)
50
+ if @__store.key?(uuid)
51
+ return @__store[uuid]
52
+ end
53
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
54
+ end
55
+
56
+ def self.getOperationMetadata()
57
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
58
+ end
59
+
60
+ public
61
+
62
+
63
+
64
+
65
+
66
+
67
+ def self.listAll(criteria)
68
+ #
69
+ #Query objects of type ConsumerGovernmentID by id and optional criteria
70
+ #@param type criteria
71
+ #@return ConsumerGovernmentID object representing the response.
72
+ #
73
+
74
+ return self.execute("a1084965-3822-4ff8-bda6-134d4d92ef1d",ConsumerGovernmentID.new(criteria))
75
+ end
76
+
77
+ def self.create(mapObj)
78
+ #
79
+ #Creates object of type ConsumerGovernmentID
80
+ #
81
+ #@param Dict mapObj, containing the required parameters to create a new object
82
+ #@return ConsumerGovernmentID of the response of created instance.
83
+ #
84
+ return self.execute("a054b04e-9c68-4c33-9b4a-2c8863dac8bc", ConsumerGovernmentID.new(mapObj))
85
+ end
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+ def self.read(id, criteria = nil)
97
+ #
98
+ #Returns objects of type ConsumerGovernmentID by id and optional criteria
99
+ #@param str id
100
+ #@param dict criteria
101
+ #@return instance of ConsumerGovernmentID
102
+
103
+ mapObj = ConsumerGovernmentID.new
104
+ if !(id.nil? || id.to_s.empty?)
105
+ mapObj.set("id", id)
106
+ end
107
+ if !criteria.nil?
108
+ if criteria.instance_of? RequestMap
109
+ mapObj.setAll(criteria.getObject())
110
+ else
111
+ mapObj.setAll(criteria)
112
+ end
113
+ end
114
+
115
+ return self.execute("6f50a437-cea4-4356-b5fe-9ca69a15a16a",ConsumerGovernmentID.new(mapObj))
116
+ end
117
+
118
+
119
+
120
+ def update
121
+ #
122
+ #Updates an object of type ConsumerGovernmentID
123
+ #
124
+ #@return ConsumerGovernmentID object representing the response.
125
+ #
126
+ return self.class.execute("d80883bb-8151-4036-8ced-9dba84c7f2f8",self)
127
+ end
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+ def self.deleteById(id, map = nil)
138
+ #Delete object of type ConsumerGovernmentID by id
139
+
140
+ #@param str id
141
+ #@param Dict map, containing additional parameters
142
+ #@return ConsumerGovernmentID of the response of the deleted instance.
143
+
144
+
145
+ mapObj = ConsumerGovernmentID.new
146
+ if !(id.nil? || id.to_s.empty?)
147
+ mapObj.set("id", id)
148
+ end
149
+ if !map.nil?
150
+ if map.instance_of? RequestMap
151
+ mapObj.setAll(map.getObject())
152
+ else
153
+ mapObj.setAll(map)
154
+ end
155
+ end
156
+
157
+ return self.execute("7fee36ad-b660-4d0e-84d5-885b5ed07c6f", mapObj)
158
+ end
159
+
160
+
161
+ def delete
162
+ #
163
+ #Delete object of type ConsumerGovernmentID
164
+
165
+ #@param str id
166
+ #@return ConsumerGovernmentID of the response of the deleted instance.
167
+ #
168
+
169
+ return self.class.execute("7fee36ad-b660-4d0e-84d5-885b5ed07c6f", self)
170
+ end
171
+
172
+
173
+
174
+ end
175
+ end
176
+ end
177
+ end
178
+
179
+
180
+
181
+
182
+
183
+
184
+
@@ -0,0 +1,127 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module P2p
34
+ class PaymentTransfer < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ 'ef527a93-05a8-424c-a515-d71923463c86' => OperationConfig.new("/send/v1/partners/{partnerId}/transfers", "query", [], ["ref"]),
40
+ 'a478f31c-b345-46a9-89d0-fb62e2410bfe' => OperationConfig.new("/send/v1/partners/{partnerId}/transfers/payment", "create", [], []),
41
+ 'f29279cd-348f-4234-8e84-63b85be78631' => OperationConfig.new("/send/v1/partners/{partnerId}/transfers/{transferId}", "read", [], []),
42
+
43
+ }
44
+
45
+ protected
46
+
47
+ def self.getOperationConfig(uuid)
48
+ if @__store.key?(uuid)
49
+ return @__store[uuid]
50
+ end
51
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
52
+ end
53
+
54
+ def self.getOperationMetadata()
55
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
56
+ end
57
+
58
+ public
59
+
60
+
61
+
62
+
63
+
64
+
65
+ def self.readByReference(criteria)
66
+ #
67
+ #Query objects of type PaymentTransfer by id and optional criteria
68
+ #@param type criteria
69
+ #@return PaymentTransfer object representing the response.
70
+ #
71
+
72
+ return self.execute("ef527a93-05a8-424c-a515-d71923463c86",PaymentTransfer.new(criteria))
73
+ end
74
+
75
+ def self.create(mapObj)
76
+ #
77
+ #Creates object of type PaymentTransfer
78
+ #
79
+ #@param Dict mapObj, containing the required parameters to create a new object
80
+ #@return PaymentTransfer of the response of created instance.
81
+ #
82
+ return self.execute("a478f31c-b345-46a9-89d0-fb62e2410bfe", PaymentTransfer.new(mapObj))
83
+ end
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+ def self.readByID(id, criteria = nil)
95
+ #
96
+ #Returns objects of type PaymentTransfer by id and optional criteria
97
+ #@param str id
98
+ #@param dict criteria
99
+ #@return instance of PaymentTransfer
100
+
101
+ mapObj = PaymentTransfer.new
102
+ if !(id.nil? || id.to_s.empty?)
103
+ mapObj.set("id", id)
104
+ end
105
+ if !criteria.nil?
106
+ if criteria.instance_of? RequestMap
107
+ mapObj.setAll(criteria.getObject())
108
+ else
109
+ mapObj.setAll(criteria)
110
+ end
111
+ end
112
+
113
+ return self.execute("f29279cd-348f-4234-8e84-63b85be78631",PaymentTransfer.new(mapObj))
114
+ end
115
+
116
+
117
+ end
118
+ end
119
+ end
120
+ end
121
+
122
+
123
+
124
+
125
+
126
+
127
+
@@ -0,0 +1,83 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module P2p
34
+ class SanctionScreening < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ '1fb90a76-567d-4f80-9716-0d6121a6d2ba' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/sanction_screening", "update", [], []),
40
+
41
+ }
42
+
43
+ protected
44
+
45
+ def self.getOperationConfig(uuid)
46
+ if @__store.key?(uuid)
47
+ return @__store[uuid]
48
+ end
49
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
+ end
51
+
52
+ def self.getOperationMetadata()
53
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
54
+ end
55
+
56
+ public
57
+
58
+
59
+ def read
60
+ #
61
+ #Updates an object of type SanctionScreening
62
+ #
63
+ #@return SanctionScreening object representing the response.
64
+ #
65
+ return self.class.execute("1fb90a76-567d-4f80-9716-0d6121a6d2ba",self)
66
+ end
67
+
68
+
69
+
70
+
71
+
72
+
73
+ end
74
+ end
75
+ end
76
+ end
77
+
78
+
79
+
80
+
81
+
82
+
83
+
@@ -0,0 +1,50 @@
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
+ module MasterCard
28
+ module API
29
+ module P2p
30
+ class SDKConfig
31
+
32
+ private
33
+ @@host = nil
34
+
35
+ public
36
+ def self.setHost(host)
37
+ @@host = host
38
+ end
39
+
40
+ def self.getHost()
41
+ return @@host
42
+ end
43
+
44
+ def self.getVersion()
45
+ return "1.0.1"
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,10 @@
1
+ require 'mastercard_api_core'
2
+ require 'mastercard/api/p2p/skdconfig'
3
+ require 'mastercard/api/p2p/consumergovernmentid'
4
+ require 'mastercard/api/p2p/consumeraccount'
5
+ require 'mastercard/api/p2p/consumer'
6
+ require 'mastercard/api/p2p/sanctionscreening'
7
+ require 'mastercard/api/p2p/paymenttransfer'
8
+ require 'mastercard/api/p2p/accountinfo'
9
+ require 'mastercard/api/p2p/consumercontactid'
10
+ require 'mastercard/api/p2p/accountverification'
metadata ADDED
@@ -0,0 +1,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mastercard_p2p
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ platform: ruby
6
+ authors:
7
+ - MasterCard Worldwide
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-11-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: mastercard_api_core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.2.0
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.2.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 1.2.0
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.2.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: ci_reporter_minitest
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ description: MasterCard P2p Description
48
+ email:
49
+ - APISupport@mastercard.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - lib/mastercard/api/p2p/accountinfo.rb
55
+ - lib/mastercard/api/p2p/accountverification.rb
56
+ - lib/mastercard/api/p2p/consumer.rb
57
+ - lib/mastercard/api/p2p/consumeraccount.rb
58
+ - lib/mastercard/api/p2p/consumercontactid.rb
59
+ - lib/mastercard/api/p2p/consumergovernmentid.rb
60
+ - lib/mastercard/api/p2p/paymenttransfer.rb
61
+ - lib/mastercard/api/p2p/sanctionscreening.rb
62
+ - lib/mastercard/api/p2p/skdconfig.rb
63
+ - lib/mastercard_p2p.rb
64
+ homepage: https://developer.mastercard.com
65
+ licenses:
66
+ - BSD-2-Clause
67
+ metadata: {}
68
+ post_install_message:
69
+ rdoc_options: []
70
+ require_paths:
71
+ - lib
72
+ required_ruby_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ requirements: []
83
+ rubyforge_project:
84
+ rubygems_version: 2.5.1
85
+ signing_key:
86
+ specification_version: 4
87
+ summary: MasterCard P2p SDK
88
+ test_files: []