mastercard_disbursements 1.0.2 → 1.0.3
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/disbursements/accountinfo.rb +7 -7
- data/lib/mastercard/api/disbursements/accountmapping.rb +87 -0
- data/lib/mastercard/api/disbursements/accountverification.rb +7 -7
- data/lib/mastercard/api/disbursements/consumer.rb +18 -18
- data/lib/mastercard/api/disbursements/consumeraccount.rb +16 -16
- data/lib/mastercard/api/disbursements/consumercontactid.rb +16 -16
- data/lib/mastercard/api/disbursements/consumergovernmentid.rb +16 -16
- data/lib/mastercard/api/disbursements/disbursement.rb +11 -11
- data/lib/mastercard/api/disbursements/resourceconfig.rb +10 -4
- data/lib/mastercard/api/disbursements/sanctionscreening.rb +7 -7
- data/lib/mastercard/api/disbursements/transfernotification.rb +86 -0
- data/lib/mastercard_disbursements.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: c0e3d13777be969ecd43716c0290bbd494a17079
|
4
|
+
data.tar.gz: a4f8b0b8a8be4101ad2f531b73c95a22268456ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5133fef1fb262614ee119440c54bda5c9b0fd6d60975ca1e8ca5cb431312838522a14a03d2fe267ee38b875fcb442b5e83cf2b773636f21d0b50af2db2c07c3f
|
7
|
+
data.tar.gz: bc7a71677d5b195639765ab8aaea7e8f7118f1bcb1f9ca4bddf724fcbd8962264561bf91bdc96ceba5661ba3d101ecfae38b9e18f49154ba87073e4a0b0bf3ae
|
@@ -37,21 +37,21 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'e827096e-9bc1-4cfe-8b8d-825ea07fb880' => 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("e827096e-9bc1-4cfe-8b8d-825ea07fb880",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 Disbursements
|
35
|
+
class AccountMapping < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'7e8cd3bf-bfed-468f-93a9-87d73ddfa6c7' => 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("7e8cd3bf-bfed-468f-93a9-87d73ddfa6c7",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
|
+
'8531deb8-f263-4b51-b77c-1097f93ccbc1' => 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("8531deb8-f263-4b51-b77c-1097f93ccbc1", 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
|
+
'c28e6bb0-6c64-4f22-aec6-f3f0df1a0d1d' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "delete", [], []),
|
41
|
+
'56ed5e9d-3d71-4c72-afc6-e0d967911b9b' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "create", [], []),
|
42
|
+
'c20b2420-4127-43c9-a11a-25ee2782ddf5' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "read", [], []),
|
43
|
+
'00aca266-3e86-4295-b8d6-473dfb0b4bbe' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "query", [], ["ref","contact_id_uri"]),
|
44
|
+
'0b6a7b34-25c4-4cd8-ae68-009819793ed8' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/search", "create", [], []),
|
45
|
+
'949b8430-dd0f-43ce-b24b-0375505d79ea' => 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("c28e6bb0-6c64-4f22-aec6-f3f0df1a0d1d", 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("c28e6bb0-6c64-4f22-aec6-f3f0df1a0d1d", 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("56ed5e9d-3d71-4c72-afc6-e0d967911b9b", 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("c20b2420-4127-43c9-a11a-25ee2782ddf5",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("00aca266-3e86-4295-b8d6-473dfb0b4bbe",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("0b6a7b34-25c4-4cd8-ae68-009819793ed8", 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("949b8430-dd0f-43ce-b24b-0375505d79ea",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
|
+
'53cfbdfc-0bff-4127-ba72-734a8abaf04a' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts", "create", [], []),
|
41
|
+
'f1dc9317-0579-4138-81ca-501004ad4d5b' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "delete", [], []),
|
42
|
+
'e4104658-0f01-4c02-9094-572e17f28522' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "read", [], []),
|
43
|
+
'23b7f267-0f9e-49d7-b3ca-8bbe14ac8292' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts", "query", [], ["ref"]),
|
44
|
+
'1a469a14-dcd8-4c83-86e8-b617cfcc09c5' => 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("53cfbdfc-0bff-4127-ba72-734a8abaf04a", 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("f1dc9317-0579-4138-81ca-501004ad4d5b", 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("f1dc9317-0579-4138-81ca-501004ad4d5b", 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("e4104658-0f01-4c02-9094-572e17f28522",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("23b7f267-0f9e-49d7-b3ca-8bbe14ac8292",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("1a469a14-dcd8-4c83-86e8-b617cfcc09c5",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
|
+
'6b93825e-12e3-43a6-83b1-4e3c095e8869' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "create", [], []),
|
41
|
+
'aaaf709d-e0b1-41cb-824c-4a281ed3e2a1' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "delete", [], []),
|
42
|
+
'5e2dab8b-62fe-4870-b2bc-80ac9338f12b' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "read", [], []),
|
43
|
+
'349fe6e4-9fac-4699-8a49-b3b0b71d716e' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "query", [], []),
|
44
|
+
'5d6ba530-fc75-4340-a1b7-14481ac7bda2' => 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("6b93825e-12e3-43a6-83b1-4e3c095e8869", 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("aaaf709d-e0b1-41cb-824c-4a281ed3e2a1", 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("aaaf709d-e0b1-41cb-824c-4a281ed3e2a1", 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("5e2dab8b-62fe-4870-b2bc-80ac9338f12b",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("349fe6e4-9fac-4699-8a49-b3b0b71d716e",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("5d6ba530-fc75-4340-a1b7-14481ac7bda2",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
|
+
'e33a52f4-e4eb-4fc0-b4b0-7fb8e021306d' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "create", [], []),
|
41
|
+
'e50fd87c-8501-429b-96a2-bc8757935b68' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "delete", [], []),
|
42
|
+
'9eef4206-aa8d-408e-9a37-caa7f1fb212f' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "read", [], []),
|
43
|
+
'69f2b0cc-4221-4d14-b662-db3372014e6a' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "query", [], []),
|
44
|
+
'f848b479-604a-40c6-adb0-a4f670ea9ac5' => 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("e33a52f4-e4eb-4fc0-b4b0-7fb8e021306d", 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("e50fd87c-8501-429b-96a2-bc8757935b68", 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("e50fd87c-8501-429b-96a2-bc8757935b68", 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("9eef4206-aa8d-408e-9a37-caa7f1fb212f",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("69f2b0cc-4221-4d14-b662-db3372014e6a",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("f848b479-604a-40c6-adb0-a4f670ea9ac5",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
|
+
'2e679cff-6236-42c9-a090-94dcd4479110' => OperationConfig.new("/send/v1/partners/{partnerId}/disbursements/{disbursementId}", "read", [], []),
|
41
|
+
'43553e24-cce8-419c-9989-68f6de68d7c8' => OperationConfig.new("/send/v1/partners/{partnerId}/disbursements", "query", [], ["ref"]),
|
42
|
+
'bbfba47c-9f46-48c7-874f-63957645e5bd' => OperationConfig.new("/send/v1/partners/{partnerId}/disbursements/payment", "create", [], []),
|
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
|
@@ -83,7 +83,7 @@ module MasterCard
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
return self.execute("
|
86
|
+
return self.execute("2e679cff-6236-42c9-a090-94dcd4479110",Disbursement.new(mapObj))
|
87
87
|
end
|
88
88
|
|
89
89
|
|
@@ -101,7 +101,7 @@ module MasterCard
|
|
101
101
|
#@raise [APIException] an exception from the response status
|
102
102
|
#
|
103
103
|
|
104
|
-
return self.execute("
|
104
|
+
return self.execute("43553e24-cce8-419c-9989-68f6de68d7c8",Disbursement.new(criteria))
|
105
105
|
end
|
106
106
|
|
107
107
|
|
@@ -112,7 +112,7 @@ module MasterCard
|
|
112
112
|
#@param Dict mapObj, containing the required parameters to create a new object
|
113
113
|
#@return [Disbursement] of the response of created instance.
|
114
114
|
#@raise [APIException] an exception from the response status
|
115
|
-
return self.execute("
|
115
|
+
return self.execute("bbfba47c-9f46-48c7-874f-63957645e5bd", Disbursement.new(mapObj))
|
116
116
|
end
|
117
117
|
|
118
118
|
|
@@ -37,11 +37,9 @@ module MasterCard
|
|
37
37
|
@@instance = nil
|
38
38
|
|
39
39
|
def initialize
|
40
|
-
@name = "disbursements"
|
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 "disbursements"
|
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 "disbursements: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
|
+
'27ae961e-35c9-4d70-a014-c97f0d1a6c84' => 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("27ae961e-35c9-4d70-a014-c97f0d1a6c84",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 Disbursements
|
35
|
+
class TransferNotification < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'c59e9936-fc42-4152-98c4-903c11e4f6b4' => 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("c59e9936-fc42-4152-98c4-903c11e4f6b4", 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
|
+
|
@@ -3,6 +3,7 @@ require 'mastercard_api_core'
|
|
3
3
|
require 'mastercard/api/disbursements/resourceconfig'
|
4
4
|
|
5
5
|
require 'mastercard/api/disbursements/accountinfo'
|
6
|
+
require 'mastercard/api/disbursements/accountmapping'
|
6
7
|
require 'mastercard/api/disbursements/accountverification'
|
7
8
|
require 'mastercard/api/disbursements/consumer'
|
8
9
|
require 'mastercard/api/disbursements/consumeraccount'
|
@@ -10,3 +11,4 @@ require 'mastercard/api/disbursements/consumercontactid'
|
|
10
11
|
require 'mastercard/api/disbursements/consumergovernmentid'
|
11
12
|
require 'mastercard/api/disbursements/disbursement'
|
12
13
|
require 'mastercard/api/disbursements/sanctionscreening'
|
14
|
+
require 'mastercard/api/disbursements/transfernotification'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mastercard_disbursements
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.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/disbursements/accountinfo.rb
|
55
|
+
- lib/mastercard/api/disbursements/accountmapping.rb
|
55
56
|
- lib/mastercard/api/disbursements/accountverification.rb
|
56
57
|
- lib/mastercard/api/disbursements/consumer.rb
|
57
58
|
- lib/mastercard/api/disbursements/consumeraccount.rb
|
@@ -60,6 +61,7 @@ files:
|
|
60
61
|
- lib/mastercard/api/disbursements/disbursement.rb
|
61
62
|
- lib/mastercard/api/disbursements/resourceconfig.rb
|
62
63
|
- lib/mastercard/api/disbursements/sanctionscreening.rb
|
64
|
+
- lib/mastercard/api/disbursements/transfernotification.rb
|
63
65
|
- lib/mastercard_disbursements.rb
|
64
66
|
homepage: https://developer.mastercard.com
|
65
67
|
licenses:
|