mastercard_p2p 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mastercard/api/p2p/accountbalance.rb +105 -0
- data/lib/mastercard/api/p2p/accountinfo.rb +32 -32
- data/lib/mastercard/api/p2p/accountmapping.rb +32 -32
- data/lib/mastercard/api/p2p/accountverification.rb +32 -32
- data/lib/mastercard/api/p2p/consumer.rb +112 -112
- data/lib/mastercard/api/p2p/consumeraccount.rb +102 -102
- data/lib/mastercard/api/p2p/consumercontactid.rb +102 -102
- data/lib/mastercard/api/p2p/consumergovernmentid.rb +102 -102
- data/lib/mastercard/api/p2p/paymenttransfer.rb +63 -63
- data/lib/mastercard/api/p2p/resourceconfig.rb +54 -54
- data/lib/mastercard/api/p2p/sanctionscreening.rb +32 -32
- data/lib/mastercard/api/p2p/transfernotification.rb +32 -32
- data/lib/mastercard_p2p.rb +1 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cc06cf600103261958f5486a5d02eedc116c08e
|
4
|
+
data.tar.gz: acfd2ac091581360dca651cef9bb6c7bcb715715
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01ddcb049e5e5803aaffa453b49663939c2bad72781f646216cf2b9804b3f400f0e0dbd5e006110a6669947f342c2c4a23aad533b3b3b19eb87d5afce3f9542c
|
7
|
+
data.tar.gz: 5f24d4560a5d394173ddb3f8fc4f9ad5e09f7bfbc30df00a39cfc7a5cc93dc4dd6d08796bc6b57d091ef7051fc1839ceb52211e553c9cdbc0e151f47c976ef82
|
@@ -0,0 +1,105 @@
|
|
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 AccountBalance < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'89cc222b-920a-4271-8767-c26eba8176e2' => OperationConfig.new("/send/v1/partners/{partnerId}/non-card-tokens/{non-card-tokens}/account-balance", "query", [], []),
|
41
|
+
'451532b2-9517-4df8-983d-fbdfc3d67fb8' => OperationConfig.new("/send/v1/partners/{partnerId}/account-balances", "query", [], []),
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
protected
|
46
|
+
|
47
|
+
def self.getOperationConfig(operationUUID)
|
48
|
+
if @__store.key?(operationUUID)
|
49
|
+
return @__store[operationUUID]
|
50
|
+
end
|
51
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.getOperationMetadata()
|
55
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
56
|
+
end
|
57
|
+
|
58
|
+
public
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
def self.accountBalanceForSpecificAccount(criteria)
|
67
|
+
#
|
68
|
+
#Query objects of type AccountBalance by id and optional criteria
|
69
|
+
#@param [Dict] criteria
|
70
|
+
#@return [AccountBalance] object representing the response.
|
71
|
+
#@raise [APIException] an exception from the response status
|
72
|
+
#
|
73
|
+
|
74
|
+
return self.execute("89cc222b-920a-4271-8767-c26eba8176e2",AccountBalance.new(criteria))
|
75
|
+
end
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
def self.accountBalancesForSpecificPartner(criteria)
|
84
|
+
#
|
85
|
+
#Query objects of type AccountBalance by id and optional criteria
|
86
|
+
#@param [Dict] criteria
|
87
|
+
#@return [AccountBalance] object representing the response.
|
88
|
+
#@raise [APIException] an exception from the response status
|
89
|
+
#
|
90
|
+
|
91
|
+
return self.execute("451532b2-9517-4df8-983d-fbdfc3d67fb8",AccountBalance.new(criteria))
|
92
|
+
end
|
93
|
+
|
94
|
+
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
@@ -30,43 +30,43 @@ require "mastercard/core/model"
|
|
30
30
|
require "mastercard/core/baseobject"
|
31
31
|
|
32
32
|
module MasterCard
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
module API
|
34
|
+
module P2p
|
35
|
+
class AccountInfo < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
39
|
+
@__store = {
|
40
|
+
'80f70c4b-b552-4d51-8b6b-3356d22800ac' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-info", "update", [], ["fields"]),
|
41
|
+
|
42
|
+
}
|
43
43
|
|
44
|
-
|
44
|
+
protected
|
45
45
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
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
52
|
|
53
|
-
|
54
|
-
|
55
|
-
|
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
56
|
|
57
|
-
|
57
|
+
public
|
58
58
|
|
59
59
|
|
60
60
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
61
|
+
def read
|
62
|
+
#
|
63
|
+
#Updates an object of type AccountInfo
|
64
|
+
#
|
65
|
+
#@return [AccountInfo] object representing the response.
|
66
|
+
#@raise [APIException] an exception from the response status
|
67
|
+
#
|
68
|
+
return self.class.execute("80f70c4b-b552-4d51-8b6b-3356d22800ac",self)
|
69
|
+
end
|
70
70
|
|
71
71
|
|
72
72
|
|
@@ -74,9 +74,9 @@ module MasterCard
|
|
74
74
|
|
75
75
|
|
76
76
|
|
77
|
-
|
78
|
-
|
79
|
-
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
80
|
end
|
81
81
|
|
82
82
|
|
@@ -30,43 +30,43 @@ require "mastercard/core/model"
|
|
30
30
|
require "mastercard/core/baseobject"
|
31
31
|
|
32
32
|
module MasterCard
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
module API
|
34
|
+
module P2p
|
35
|
+
class AccountMapping < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
39
|
+
@__store = {
|
40
|
+
'8bb35371-bed8-4190-be92-3a18833dc04e' => OperationConfig.new("/send/v1/partners/{partnerId}/account-mapping", "update", [], []),
|
41
|
+
|
42
|
+
}
|
43
43
|
|
44
|
-
|
44
|
+
protected
|
45
45
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
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
52
|
|
53
|
-
|
54
|
-
|
55
|
-
|
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
56
|
|
57
|
-
|
57
|
+
public
|
58
58
|
|
59
59
|
|
60
60
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
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("8bb35371-bed8-4190-be92-3a18833dc04e",self)
|
69
|
+
end
|
70
70
|
|
71
71
|
|
72
72
|
|
@@ -74,9 +74,9 @@ module MasterCard
|
|
74
74
|
|
75
75
|
|
76
76
|
|
77
|
-
|
78
|
-
|
79
|
-
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
80
|
end
|
81
81
|
|
82
82
|
|
@@ -30,42 +30,42 @@ require "mastercard/core/model"
|
|
30
30
|
require "mastercard/core/baseobject"
|
31
31
|
|
32
32
|
module MasterCard
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
module API
|
34
|
+
module P2p
|
35
|
+
class AccountVerification < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
39
|
+
@__store = {
|
40
|
+
'5f1d1504-bb19-4106-89fd-d851734c2282' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-verification", "create", [], []),
|
41
|
+
|
42
|
+
}
|
43
43
|
|
44
|
-
|
44
|
+
protected
|
45
45
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
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
52
|
|
53
|
-
|
54
|
-
|
55
|
-
|
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
56
|
|
57
|
-
|
57
|
+
public
|
58
58
|
|
59
59
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
60
|
+
def self.read(mapObj)
|
61
|
+
#
|
62
|
+
#Creates object of type AccountVerification
|
63
|
+
#
|
64
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
65
|
+
#@return [AccountVerification] of the response of created instance.
|
66
|
+
#@raise [APIException] an exception from the response status
|
67
|
+
return self.execute("5f1d1504-bb19-4106-89fd-d851734c2282", AccountVerification.new(mapObj))
|
68
|
+
end
|
69
69
|
|
70
70
|
|
71
71
|
|
@@ -73,9 +73,9 @@ module MasterCard
|
|
73
73
|
|
74
74
|
|
75
75
|
|
76
|
-
|
77
|
-
|
78
|
-
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
79
|
end
|
80
80
|
|
81
81
|
|