mastercard_disbursements 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c0e3d13777be969ecd43716c0290bbd494a17079
4
- data.tar.gz: a4f8b0b8a8be4101ad2f531b73c95a22268456ae
3
+ metadata.gz: 26440901cb936901f39c3d0c72d5dca47658b8ce
4
+ data.tar.gz: 5d77b90be0af8f95c37208f2e5489324ea4dd20c
5
5
  SHA512:
6
- metadata.gz: 5133fef1fb262614ee119440c54bda5c9b0fd6d60975ca1e8ca5cb431312838522a14a03d2fe267ee38b875fcb442b5e83cf2b773636f21d0b50af2db2c07c3f
7
- data.tar.gz: bc7a71677d5b195639765ab8aaea7e8f7118f1bcb1f9ca4bddf724fcbd8962264561bf91bdc96ceba5661ba3d101ecfae38b9e18f49154ba87073e4a0b0bf3ae
6
+ metadata.gz: 3898dfc2d86fc97114638ae57927413b5e451b4c25bdf07290a6cdeaa0d3bc50c0f97bc6105ccc4d1f4bfce1abe7be0b5a50afa80bbaa5c748df138d64051355
7
+ data.tar.gz: ecf382ef7ef14cf8b0aa5e81be638d7a9c24ee8390227ad4cb36b39a553a1711a19aa90e243cd13e6440c67ef7298b13fc8a737cde7dc5c2f619b6dcc0d6b30f
@@ -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 Disbursements
35
+ class AccountBalance < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ 'fd199262-d7e9-4685-ba93-e90c011407e8' => OperationConfig.new("/send/v1/partners/{partnerId}/non-card-tokens/{non-card-tokens}/account-balance", "query", [], []),
41
+ '277a68da-cc33-49fc-82e3-7d967fd7eda4' => 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("fd199262-d7e9-4685-ba93-e90c011407e8",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("277a68da-cc33-49fc-82e3-7d967fd7eda4",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 Disbursements
35
- class AccountInfo < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module Disbursements
35
+ class AccountInfo < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- 'e827096e-9bc1-4cfe-8b8d-825ea07fb880' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-info", "update", [], ["fields"]),
41
-
42
- }
39
+ @__store = {
40
+ 'd79dba6e-d329-419d-b745-90f002cb0a88' => 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("e827096e-9bc1-4cfe-8b8d-825ea07fb880",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("d79dba6e-d329-419d-b745-90f002cb0a88",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 Disbursements
35
- class AccountMapping < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module Disbursements
35
+ class AccountMapping < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '7e8cd3bf-bfed-468f-93a9-87d73ddfa6c7' => OperationConfig.new("/send/v1/partners/{partnerId}/account-mapping", "update", [], []),
41
-
42
- }
39
+ @__store = {
40
+ '94a8413f-fc32-47e4-b626-5128b64f1bb8' => 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("7e8cd3bf-bfed-468f-93a9-87d73ddfa6c7",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("94a8413f-fc32-47e4-b626-5128b64f1bb8",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 Disbursements
35
- class AccountVerification < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module Disbursements
35
+ class AccountVerification < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '8531deb8-f263-4b51-b77c-1097f93ccbc1' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-verification", "create", [], []),
41
-
42
- }
39
+ @__store = {
40
+ '8ecd9ebf-317b-44df-b715-aa4e54c8fa9e' => 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("8531deb8-f263-4b51-b77c-1097f93ccbc1", 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("8ecd9ebf-317b-44df-b715-aa4e54c8fa9e", 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