mastercard_p2p 1.0.2 → 1.0.3
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/p2p/accountinfo.rb +7 -7
- data/lib/mastercard/api/p2p/accountmapping.rb +87 -0
- data/lib/mastercard/api/p2p/accountverification.rb +7 -7
- data/lib/mastercard/api/p2p/consumer.rb +18 -18
- data/lib/mastercard/api/p2p/consumeraccount.rb +16 -16
- data/lib/mastercard/api/p2p/consumercontactid.rb +16 -16
- data/lib/mastercard/api/p2p/consumergovernmentid.rb +16 -16
- data/lib/mastercard/api/p2p/paymenttransfer.rb +11 -11
- data/lib/mastercard/api/p2p/resourceconfig.rb +10 -4
- data/lib/mastercard/api/p2p/sanctionscreening.rb +7 -7
- data/lib/mastercard/api/p2p/transfernotification.rb +86 -0
- data/lib/mastercard_p2p.rb +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab971a4a30aa9f6374d04d36b51c38253f581248
|
4
|
+
data.tar.gz: 14f8aa82a21027484a91f669ddb41d278cd0757d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b450c6d457b11e75c7d8b6ac00e2c74ad3515773602f22d467b8f00580fd7a4bcad70a9766f04308ade9aff3df9ddc1084eeee9f535b23a261e2a68c4414a639
|
7
|
+
data.tar.gz: bf410f3bf93fff4a4ec1b681fbba43ee507aa537253d50294b6581c20aea368ef29be1ae8d524d1a071d940a746936bc07352ad7944d30d908a132597e170d39
|
@@ -37,21 +37,21 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'06a47d52-8d63-46f3-a8af-0a0320979365' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-info", "update", [], ["fields"]),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
44
44
|
protected
|
45
45
|
|
46
|
-
def self.getOperationConfig(
|
47
|
-
if @__store.key?(
|
48
|
-
return @__store[
|
46
|
+
def self.getOperationConfig(operationUUID)
|
47
|
+
if @__store.key?(operationUUID)
|
48
|
+
return @__store[operationUUID]
|
49
49
|
end
|
50
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
50
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.getOperationMetadata()
|
54
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
55
55
|
end
|
56
56
|
|
57
57
|
public
|
@@ -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("06a47d52-8d63-46f3-a8af-0a0320979365",self)
|
69
69
|
end
|
70
70
|
|
71
71
|
|
@@ -0,0 +1,87 @@
|
|
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 P2p
|
35
|
+
class AccountMapping < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'58081f89-b958-4220-8305-eb26ae96d764' => OperationConfig.new("/send/v1/partners/{partnerId}/account-mapping", "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 create
|
62
|
+
#
|
63
|
+
#Updates an object of type AccountMapping
|
64
|
+
#
|
65
|
+
#@return [AccountMapping] object representing the response.
|
66
|
+
#@raise [APIException] an exception from the response status
|
67
|
+
#
|
68
|
+
return self.class.execute("58081f89-b958-4220-8305-eb26ae96d764",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
|
+
|
@@ -37,21 +37,21 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'b28deb83-c94b-4578-bdde-b5c8e54d917e' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-verification", "create", [], []),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
44
44
|
protected
|
45
45
|
|
46
|
-
def self.getOperationConfig(
|
47
|
-
if @__store.key?(
|
48
|
-
return @__store[
|
46
|
+
def self.getOperationConfig(operationUUID)
|
47
|
+
if @__store.key?(operationUUID)
|
48
|
+
return @__store[operationUUID]
|
49
49
|
end
|
50
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
50
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.getOperationMetadata()
|
54
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
55
55
|
end
|
56
56
|
|
57
57
|
public
|
@@ -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("b28deb83-c94b-4578-bdde-b5c8e54d917e", AccountVerification.new(mapObj))
|
68
68
|
end
|
69
69
|
|
70
70
|
|
@@ -37,26 +37,26 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
43
|
-
'
|
44
|
-
'
|
45
|
-
'
|
40
|
+
'b79fd8dc-7735-40ac-af33-e76721e78faf' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "delete", [], []),
|
41
|
+
'9b76495e-46cd-4655-98d4-0510625bcf82' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "create", [], []),
|
42
|
+
'8db8f0d4-7953-4555-b45b-6ef4c41a7485' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "read", [], []),
|
43
|
+
'ac2f477b-2198-4f29-9c73-8c8245eebbf7' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "query", [], ["ref","contact_id_uri"]),
|
44
|
+
'bf3f1e2e-391b-46df-8e0a-dcfaf3a787d7' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/search", "create", [], []),
|
45
|
+
'962e662e-8c42-4976-afe8-0e59896da1cb' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "update", [], []),
|
46
46
|
|
47
47
|
}
|
48
48
|
|
49
49
|
protected
|
50
50
|
|
51
|
-
def self.getOperationConfig(
|
52
|
-
if @__store.key?(
|
53
|
-
return @__store[
|
51
|
+
def self.getOperationConfig(operationUUID)
|
52
|
+
if @__store.key?(operationUUID)
|
53
|
+
return @__store[operationUUID]
|
54
54
|
end
|
55
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
55
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
56
56
|
end
|
57
57
|
|
58
58
|
def self.getOperationMetadata()
|
59
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
59
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
60
60
|
end
|
61
61
|
|
62
62
|
public
|
@@ -86,7 +86,7 @@ module MasterCard
|
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
-
return self.execute("
|
89
|
+
return self.execute("b79fd8dc-7735-40ac-af33-e76721e78faf", mapObj)
|
90
90
|
end
|
91
91
|
|
92
92
|
|
@@ -99,7 +99,7 @@ module MasterCard
|
|
99
99
|
#@raise [APIException] an exception from the response status
|
100
100
|
#
|
101
101
|
|
102
|
-
return self.class.execute("
|
102
|
+
return self.class.execute("b79fd8dc-7735-40ac-af33-e76721e78faf", self)
|
103
103
|
end
|
104
104
|
|
105
105
|
|
@@ -112,7 +112,7 @@ module MasterCard
|
|
112
112
|
#@param Dict mapObj, containing the required parameters to create a new object
|
113
113
|
#@return [Consumer] of the response of created instance.
|
114
114
|
#@raise [APIException] an exception from the response status
|
115
|
-
return self.execute("
|
115
|
+
return self.execute("9b76495e-46cd-4655-98d4-0510625bcf82", Consumer.new(mapObj))
|
116
116
|
end
|
117
117
|
|
118
118
|
|
@@ -145,7 +145,7 @@ module MasterCard
|
|
145
145
|
end
|
146
146
|
end
|
147
147
|
|
148
|
-
return self.execute("
|
148
|
+
return self.execute("8db8f0d4-7953-4555-b45b-6ef4c41a7485",Consumer.new(mapObj))
|
149
149
|
end
|
150
150
|
|
151
151
|
|
@@ -163,7 +163,7 @@ module MasterCard
|
|
163
163
|
#@raise [APIException] an exception from the response status
|
164
164
|
#
|
165
165
|
|
166
|
-
return self.execute("
|
166
|
+
return self.execute("ac2f477b-2198-4f29-9c73-8c8245eebbf7",Consumer.new(criteria))
|
167
167
|
end
|
168
168
|
|
169
169
|
|
@@ -174,7 +174,7 @@ module MasterCard
|
|
174
174
|
#@param Dict mapObj, containing the required parameters to create a new object
|
175
175
|
#@return [Consumer] of the response of created instance.
|
176
176
|
#@raise [APIException] an exception from the response status
|
177
|
-
return self.execute("
|
177
|
+
return self.execute("bf3f1e2e-391b-46df-8e0a-dcfaf3a787d7", Consumer.new(mapObj))
|
178
178
|
end
|
179
179
|
|
180
180
|
|
@@ -191,7 +191,7 @@ module MasterCard
|
|
191
191
|
#@return [Consumer] object representing the response.
|
192
192
|
#@raise [APIException] an exception from the response status
|
193
193
|
#
|
194
|
-
return self.class.execute("
|
194
|
+
return self.class.execute("962e662e-8c42-4976-afe8-0e59896da1cb",self)
|
195
195
|
end
|
196
196
|
|
197
197
|
|
@@ -37,25 +37,25 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
43
|
-
'
|
44
|
-
'
|
40
|
+
'7f0c5bb0-4ad8-441b-a8c6-fc882c3cbed7' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts", "create", [], []),
|
41
|
+
'3fa04f34-dd82-45b7-8f7b-e0d080f8b879' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "delete", [], []),
|
42
|
+
'cbe5f959-f155-4f8d-a489-4a1d01c4f6d4' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "read", [], []),
|
43
|
+
'69f23f24-ee62-4b24-a6f4-eed874c3d969' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts", "query", [], ["ref"]),
|
44
|
+
'4316fb2b-461b-4806-8e32-a65da6a230e1' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "update", [], []),
|
45
45
|
|
46
46
|
}
|
47
47
|
|
48
48
|
protected
|
49
49
|
|
50
|
-
def self.getOperationConfig(
|
51
|
-
if @__store.key?(
|
52
|
-
return @__store[
|
50
|
+
def self.getOperationConfig(operationUUID)
|
51
|
+
if @__store.key?(operationUUID)
|
52
|
+
return @__store[operationUUID]
|
53
53
|
end
|
54
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
54
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
55
55
|
end
|
56
56
|
|
57
57
|
def self.getOperationMetadata()
|
58
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
58
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
59
59
|
end
|
60
60
|
|
61
61
|
public
|
@@ -68,7 +68,7 @@ module MasterCard
|
|
68
68
|
#@param Dict mapObj, containing the required parameters to create a new object
|
69
69
|
#@return [ConsumerAccount] of the response of created instance.
|
70
70
|
#@raise [APIException] an exception from the response status
|
71
|
-
return self.execute("
|
71
|
+
return self.execute("7f0c5bb0-4ad8-441b-a8c6-fc882c3cbed7", ConsumerAccount.new(mapObj))
|
72
72
|
end
|
73
73
|
|
74
74
|
|
@@ -101,7 +101,7 @@ module MasterCard
|
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
104
|
-
return self.execute("
|
104
|
+
return self.execute("3fa04f34-dd82-45b7-8f7b-e0d080f8b879", mapObj)
|
105
105
|
end
|
106
106
|
|
107
107
|
|
@@ -114,7 +114,7 @@ module MasterCard
|
|
114
114
|
#@raise [APIException] an exception from the response status
|
115
115
|
#
|
116
116
|
|
117
|
-
return self.class.execute("
|
117
|
+
return self.class.execute("3fa04f34-dd82-45b7-8f7b-e0d080f8b879", self)
|
118
118
|
end
|
119
119
|
|
120
120
|
|
@@ -144,7 +144,7 @@ module MasterCard
|
|
144
144
|
end
|
145
145
|
end
|
146
146
|
|
147
|
-
return self.execute("
|
147
|
+
return self.execute("cbe5f959-f155-4f8d-a489-4a1d01c4f6d4",ConsumerAccount.new(mapObj))
|
148
148
|
end
|
149
149
|
|
150
150
|
|
@@ -162,7 +162,7 @@ module MasterCard
|
|
162
162
|
#@raise [APIException] an exception from the response status
|
163
163
|
#
|
164
164
|
|
165
|
-
return self.execute("
|
165
|
+
return self.execute("69f23f24-ee62-4b24-a6f4-eed874c3d969",ConsumerAccount.new(criteria))
|
166
166
|
end
|
167
167
|
|
168
168
|
|
@@ -174,7 +174,7 @@ module MasterCard
|
|
174
174
|
#@return [ConsumerAccount] object representing the response.
|
175
175
|
#@raise [APIException] an exception from the response status
|
176
176
|
#
|
177
|
-
return self.class.execute("
|
177
|
+
return self.class.execute("4316fb2b-461b-4806-8e32-a65da6a230e1",self)
|
178
178
|
end
|
179
179
|
|
180
180
|
|
@@ -37,25 +37,25 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
43
|
-
'
|
44
|
-
'
|
40
|
+
'9343433e-ade4-4f9f-8825-815d5b226db4' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "create", [], []),
|
41
|
+
'9e9f121d-c9ef-463c-a790-4a0bade6e588' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "delete", [], []),
|
42
|
+
'59c2b7c6-f391-4a6b-addd-78bf38796891' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "read", [], []),
|
43
|
+
'95d62e99-61fc-4800-8b29-69bba486e9ba' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "query", [], []),
|
44
|
+
'2621ec54-e136-415c-a962-3a4914a23598' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "update", [], []),
|
45
45
|
|
46
46
|
}
|
47
47
|
|
48
48
|
protected
|
49
49
|
|
50
|
-
def self.getOperationConfig(
|
51
|
-
if @__store.key?(
|
52
|
-
return @__store[
|
50
|
+
def self.getOperationConfig(operationUUID)
|
51
|
+
if @__store.key?(operationUUID)
|
52
|
+
return @__store[operationUUID]
|
53
53
|
end
|
54
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
54
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
55
55
|
end
|
56
56
|
|
57
57
|
def self.getOperationMetadata()
|
58
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
58
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
59
59
|
end
|
60
60
|
|
61
61
|
public
|
@@ -68,7 +68,7 @@ module MasterCard
|
|
68
68
|
#@param Dict mapObj, containing the required parameters to create a new object
|
69
69
|
#@return [ConsumerContactID] of the response of created instance.
|
70
70
|
#@raise [APIException] an exception from the response status
|
71
|
-
return self.execute("
|
71
|
+
return self.execute("9343433e-ade4-4f9f-8825-815d5b226db4", ConsumerContactID.new(mapObj))
|
72
72
|
end
|
73
73
|
|
74
74
|
|
@@ -101,7 +101,7 @@ module MasterCard
|
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
104
|
-
return self.execute("
|
104
|
+
return self.execute("9e9f121d-c9ef-463c-a790-4a0bade6e588", mapObj)
|
105
105
|
end
|
106
106
|
|
107
107
|
|
@@ -114,7 +114,7 @@ module MasterCard
|
|
114
114
|
#@raise [APIException] an exception from the response status
|
115
115
|
#
|
116
116
|
|
117
|
-
return self.class.execute("
|
117
|
+
return self.class.execute("9e9f121d-c9ef-463c-a790-4a0bade6e588", self)
|
118
118
|
end
|
119
119
|
|
120
120
|
|
@@ -144,7 +144,7 @@ module MasterCard
|
|
144
144
|
end
|
145
145
|
end
|
146
146
|
|
147
|
-
return self.execute("
|
147
|
+
return self.execute("59c2b7c6-f391-4a6b-addd-78bf38796891",ConsumerContactID.new(mapObj))
|
148
148
|
end
|
149
149
|
|
150
150
|
|
@@ -162,7 +162,7 @@ module MasterCard
|
|
162
162
|
#@raise [APIException] an exception from the response status
|
163
163
|
#
|
164
164
|
|
165
|
-
return self.execute("
|
165
|
+
return self.execute("95d62e99-61fc-4800-8b29-69bba486e9ba",ConsumerContactID.new(criteria))
|
166
166
|
end
|
167
167
|
|
168
168
|
|
@@ -174,7 +174,7 @@ module MasterCard
|
|
174
174
|
#@return [ConsumerContactID] object representing the response.
|
175
175
|
#@raise [APIException] an exception from the response status
|
176
176
|
#
|
177
|
-
return self.class.execute("
|
177
|
+
return self.class.execute("2621ec54-e136-415c-a962-3a4914a23598",self)
|
178
178
|
end
|
179
179
|
|
180
180
|
|
@@ -37,25 +37,25 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
43
|
-
'
|
44
|
-
'
|
40
|
+
'0e7a124a-42c5-41ad-b8b9-992aba858097' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "create", [], []),
|
41
|
+
'0c61d389-6600-4277-8666-fe2b4c93d31f' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "delete", [], []),
|
42
|
+
'af9ad524-87db-44d2-9f53-e74739e912fa' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "read", [], []),
|
43
|
+
'3a83c575-acea-44a2-abfc-c0bd27a7c88f' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "query", [], []),
|
44
|
+
'9a36b3f9-301e-41f6-aff4-ad3f6b334b50' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "update", [], []),
|
45
45
|
|
46
46
|
}
|
47
47
|
|
48
48
|
protected
|
49
49
|
|
50
|
-
def self.getOperationConfig(
|
51
|
-
if @__store.key?(
|
52
|
-
return @__store[
|
50
|
+
def self.getOperationConfig(operationUUID)
|
51
|
+
if @__store.key?(operationUUID)
|
52
|
+
return @__store[operationUUID]
|
53
53
|
end
|
54
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
54
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
55
55
|
end
|
56
56
|
|
57
57
|
def self.getOperationMetadata()
|
58
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
58
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
59
59
|
end
|
60
60
|
|
61
61
|
public
|
@@ -68,7 +68,7 @@ module MasterCard
|
|
68
68
|
#@param Dict mapObj, containing the required parameters to create a new object
|
69
69
|
#@return [ConsumerGovernmentID] of the response of created instance.
|
70
70
|
#@raise [APIException] an exception from the response status
|
71
|
-
return self.execute("
|
71
|
+
return self.execute("0e7a124a-42c5-41ad-b8b9-992aba858097", ConsumerGovernmentID.new(mapObj))
|
72
72
|
end
|
73
73
|
|
74
74
|
|
@@ -101,7 +101,7 @@ module MasterCard
|
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
104
|
-
return self.execute("
|
104
|
+
return self.execute("0c61d389-6600-4277-8666-fe2b4c93d31f", mapObj)
|
105
105
|
end
|
106
106
|
|
107
107
|
|
@@ -114,7 +114,7 @@ module MasterCard
|
|
114
114
|
#@raise [APIException] an exception from the response status
|
115
115
|
#
|
116
116
|
|
117
|
-
return self.class.execute("
|
117
|
+
return self.class.execute("0c61d389-6600-4277-8666-fe2b4c93d31f", self)
|
118
118
|
end
|
119
119
|
|
120
120
|
|
@@ -144,7 +144,7 @@ module MasterCard
|
|
144
144
|
end
|
145
145
|
end
|
146
146
|
|
147
|
-
return self.execute("
|
147
|
+
return self.execute("af9ad524-87db-44d2-9f53-e74739e912fa",ConsumerGovernmentID.new(mapObj))
|
148
148
|
end
|
149
149
|
|
150
150
|
|
@@ -162,7 +162,7 @@ module MasterCard
|
|
162
162
|
#@raise [APIException] an exception from the response status
|
163
163
|
#
|
164
164
|
|
165
|
-
return self.execute("
|
165
|
+
return self.execute("3a83c575-acea-44a2-abfc-c0bd27a7c88f",ConsumerGovernmentID.new(criteria))
|
166
166
|
end
|
167
167
|
|
168
168
|
|
@@ -174,7 +174,7 @@ module MasterCard
|
|
174
174
|
#@return [ConsumerGovernmentID] object representing the response.
|
175
175
|
#@raise [APIException] an exception from the response status
|
176
176
|
#
|
177
|
-
return self.class.execute("
|
177
|
+
return self.class.execute("9a36b3f9-301e-41f6-aff4-ad3f6b334b50",self)
|
178
178
|
end
|
179
179
|
|
180
180
|
|
@@ -37,23 +37,23 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'917e705c-868d-431d-919d-cdf8eec46c7c' => OperationConfig.new("/send/v1/partners/{partnerId}/transfers/payment", "create", [], []),
|
41
|
+
'1523ec77-5aac-4db8-83bc-1c89cd5d2a2e' => OperationConfig.new("/send/v1/partners/{partnerId}/transfers/{transferId}", "read", [], []),
|
42
|
+
'5b098a7c-d14f-4f8e-904a-3efc37c7f1f3' => OperationConfig.new("/send/v1/partners/{partnerId}/transfers", "query", [], ["ref"]),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
46
46
|
protected
|
47
47
|
|
48
|
-
def self.getOperationConfig(
|
49
|
-
if @__store.key?(
|
50
|
-
return @__store[
|
48
|
+
def self.getOperationConfig(operationUUID)
|
49
|
+
if @__store.key?(operationUUID)
|
50
|
+
return @__store[operationUUID]
|
51
51
|
end
|
52
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
52
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
53
53
|
end
|
54
54
|
|
55
55
|
def self.getOperationMetadata()
|
56
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
56
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
57
57
|
end
|
58
58
|
|
59
59
|
public
|
@@ -66,7 +66,7 @@ module MasterCard
|
|
66
66
|
#@param Dict mapObj, containing the required parameters to create a new object
|
67
67
|
#@return [PaymentTransfer] of the response of created instance.
|
68
68
|
#@raise [APIException] an exception from the response status
|
69
|
-
return self.execute("
|
69
|
+
return self.execute("917e705c-868d-431d-919d-cdf8eec46c7c", PaymentTransfer.new(mapObj))
|
70
70
|
end
|
71
71
|
|
72
72
|
|
@@ -99,7 +99,7 @@ module MasterCard
|
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|
102
|
-
return self.execute("
|
102
|
+
return self.execute("1523ec77-5aac-4db8-83bc-1c89cd5d2a2e",PaymentTransfer.new(mapObj))
|
103
103
|
end
|
104
104
|
|
105
105
|
|
@@ -117,7 +117,7 @@ module MasterCard
|
|
117
117
|
#@raise [APIException] an exception from the response status
|
118
118
|
#
|
119
119
|
|
120
|
-
return self.execute("
|
120
|
+
return self.execute("5b098a7c-d14f-4f8e-904a-3efc37c7f1f3",PaymentTransfer.new(criteria))
|
121
121
|
end
|
122
122
|
|
123
123
|
|
@@ -37,11 +37,9 @@ module MasterCard
|
|
37
37
|
@@instance = nil
|
38
38
|
|
39
39
|
def initialize
|
40
|
-
@name = "p2p"
|
41
40
|
@override = nil
|
42
41
|
@host = nil
|
43
42
|
@context = nil
|
44
|
-
@version = "1.0.2"
|
45
43
|
|
46
44
|
Config.registerResourceConfig(self)
|
47
45
|
currentEnvironment = Config.getEnvironment()
|
@@ -56,7 +54,7 @@ module MasterCard
|
|
56
54
|
|
57
55
|
|
58
56
|
def getName
|
59
|
-
return
|
57
|
+
return "p2p"
|
60
58
|
end
|
61
59
|
|
62
60
|
|
@@ -73,7 +71,15 @@ module MasterCard
|
|
73
71
|
end
|
74
72
|
|
75
73
|
def getVersion
|
76
|
-
return
|
74
|
+
return "p2p:1.0.3"
|
75
|
+
end
|
76
|
+
|
77
|
+
def getJsonNative
|
78
|
+
return false
|
79
|
+
end
|
80
|
+
|
81
|
+
def getContentTypeOverride
|
82
|
+
return nil
|
77
83
|
end
|
78
84
|
|
79
85
|
def setEnvironment(environmet)
|
@@ -37,21 +37,21 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'b5dcf9ff-5314-4a5f-90d6-99823be7fec3' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/sanction_screening", "update", [], []),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
44
44
|
protected
|
45
45
|
|
46
|
-
def self.getOperationConfig(
|
47
|
-
if @__store.key?(
|
48
|
-
return @__store[
|
46
|
+
def self.getOperationConfig(operationUUID)
|
47
|
+
if @__store.key?(operationUUID)
|
48
|
+
return @__store[operationUUID]
|
49
49
|
end
|
50
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
50
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.getOperationMetadata()
|
54
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
55
55
|
end
|
56
56
|
|
57
57
|
public
|
@@ -65,7 +65,7 @@ module MasterCard
|
|
65
65
|
#@return [SanctionScreening] 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("b5dcf9ff-5314-4a5f-90d6-99823be7fec3",self)
|
69
69
|
end
|
70
70
|
|
71
71
|
|
@@ -0,0 +1,86 @@
|
|
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 P2p
|
35
|
+
class TransferNotification < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'77f61848-ea17-4b8f-be55-077ff0691bd4' => OperationConfig.new("/inbound/notification/v1/", "create", [], []),
|
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
|
+
def self.notification(mapObj)
|
61
|
+
#
|
62
|
+
#Creates object of type TransferNotification
|
63
|
+
#
|
64
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
65
|
+
#@return [TransferNotification] of the response of created instance.
|
66
|
+
#@raise [APIException] an exception from the response status
|
67
|
+
return self.execute("77f61848-ea17-4b8f-be55-077ff0691bd4", TransferNotification.new(mapObj))
|
68
|
+
end
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
data/lib/mastercard_p2p.rb
CHANGED
@@ -3,6 +3,7 @@ require 'mastercard_api_core'
|
|
3
3
|
require 'mastercard/api/p2p/resourceconfig'
|
4
4
|
|
5
5
|
require 'mastercard/api/p2p/accountinfo'
|
6
|
+
require 'mastercard/api/p2p/accountmapping'
|
6
7
|
require 'mastercard/api/p2p/accountverification'
|
7
8
|
require 'mastercard/api/p2p/consumer'
|
8
9
|
require 'mastercard/api/p2p/consumeraccount'
|
@@ -10,3 +11,4 @@ require 'mastercard/api/p2p/consumercontactid'
|
|
10
11
|
require 'mastercard/api/p2p/consumergovernmentid'
|
11
12
|
require 'mastercard/api/p2p/paymenttransfer'
|
12
13
|
require 'mastercard/api/p2p/sanctionscreening'
|
14
|
+
require 'mastercard/api/p2p/transfernotification'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mastercard_p2p
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
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: 2018-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mastercard_api_core
|
@@ -52,6 +52,7 @@ extensions: []
|
|
52
52
|
extra_rdoc_files: []
|
53
53
|
files:
|
54
54
|
- lib/mastercard/api/p2p/accountinfo.rb
|
55
|
+
- lib/mastercard/api/p2p/accountmapping.rb
|
55
56
|
- lib/mastercard/api/p2p/accountverification.rb
|
56
57
|
- lib/mastercard/api/p2p/consumer.rb
|
57
58
|
- lib/mastercard/api/p2p/consumeraccount.rb
|
@@ -60,6 +61,7 @@ files:
|
|
60
61
|
- lib/mastercard/api/p2p/paymenttransfer.rb
|
61
62
|
- lib/mastercard/api/p2p/resourceconfig.rb
|
62
63
|
- lib/mastercard/api/p2p/sanctionscreening.rb
|
64
|
+
- lib/mastercard/api/p2p/transfernotification.rb
|
63
65
|
- lib/mastercard_p2p.rb
|
64
66
|
homepage: https://developer.mastercard.com
|
65
67
|
licenses:
|