mastercard_p2p 1.0.3 → 1.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab971a4a30aa9f6374d04d36b51c38253f581248
4
- data.tar.gz: 14f8aa82a21027484a91f669ddb41d278cd0757d
3
+ metadata.gz: 4cc06cf600103261958f5486a5d02eedc116c08e
4
+ data.tar.gz: acfd2ac091581360dca651cef9bb6c7bcb715715
5
5
  SHA512:
6
- metadata.gz: b450c6d457b11e75c7d8b6ac00e2c74ad3515773602f22d467b8f00580fd7a4bcad70a9766f04308ade9aff3df9ddc1084eeee9f535b23a261e2a68c4414a639
7
- data.tar.gz: bf410f3bf93fff4a4ec1b681fbba43ee507aa537253d50294b6581c20aea368ef29be1ae8d524d1a071d940a746936bc07352ad7944d30d908a132597e170d39
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
- module API
34
- module P2p
35
- class AccountInfo < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module P2p
35
+ class AccountInfo < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '06a47d52-8d63-46f3-a8af-0a0320979365' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-info", "update", [], ["fields"]),
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
- protected
44
+ protected
45
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
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
- def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
55
- end
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
- public
57
+ public
58
58
 
59
59
 
60
60
 
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("06a47d52-8d63-46f3-a8af-0a0320979365",self)
69
- end
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
- end
78
- end
79
- end
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
- module API
34
- module P2p
35
- class AccountMapping < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module P2p
35
+ class AccountMapping < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '58081f89-b958-4220-8305-eb26ae96d764' => OperationConfig.new("/send/v1/partners/{partnerId}/account-mapping", "update", [], []),
41
-
42
- }
39
+ @__store = {
40
+ '8bb35371-bed8-4190-be92-3a18833dc04e' => OperationConfig.new("/send/v1/partners/{partnerId}/account-mapping", "update", [], []),
41
+
42
+ }
43
43
 
44
- protected
44
+ protected
45
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
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
- def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
55
- end
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
- public
57
+ public
58
58
 
59
59
 
60
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
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
- end
78
- end
79
- end
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
- module API
34
- module P2p
35
- class AccountVerification < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module P2p
35
+ class AccountVerification < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- 'b28deb83-c94b-4578-bdde-b5c8e54d917e' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-verification", "create", [], []),
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
- protected
44
+ protected
45
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
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
- def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
55
- end
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
- public
57
+ public
58
58
 
59
59
 
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("b28deb83-c94b-4578-bdde-b5c8e54d917e", AccountVerification.new(mapObj))
68
- end
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
- end
77
- end
78
- end
76
+ end
77
+ end
78
+ end
79
79
  end
80
80
 
81
81