mastercard_disbursements 1.0.1 → 1.0.2

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: 1daa3dd149ba984f937c0025e327d3c509b9818e
4
- data.tar.gz: 8c8bdba89a0073e23c68a2da65ab22f7952e03f2
3
+ metadata.gz: cf91e1ff478d38d22b718dd8a4263650ac5888d8
4
+ data.tar.gz: b763f9fbc10ee005dddd4fece62f08aeeef75c57
5
5
  SHA512:
6
- metadata.gz: 488894b451f57bbd00ae0d645fdde7f7e2d4b554f27f93a6ef6aaaf1a42b373fa809744c2ab17a3f77b414441103deda91a71f495a1f497274b76ceeb14e0a17
7
- data.tar.gz: 54fa382f25cc815af26af7caf602d112bc245d0b13694dd0250ac6444d00bc01bb0cb9acb470025d54be09d6c010bfed9ee7e4af31b71be8cfd8542162c7fa1f
6
+ metadata.gz: d7daae4bd44dc24bb6f0321a0061ef582094df8c7d7dc96d32e3541447b5923a418d90a02e0d978457d30e561b44b4c3bcf1a2f5f071dcab5fa37418c29c51d9
7
+ data.tar.gz: b756a49fa06f54b9027ee5856c4f804f34ad88a1e04b780da6f08882b0ac7d9b07fef33b59b058c08024267c064ae25099c168e82a27c8f1546541355c9d267a
@@ -27,52 +27,56 @@
27
27
 
28
28
 
29
29
  require "mastercard/core/model"
30
+ require "mastercard/core/baseobject"
30
31
 
31
32
  module MasterCard
32
- module API
33
- module Disbursements
34
- class AccountInfo < MasterCard::Core::Model::BaseObject
35
- include MasterCard::Core::Model
36
- #
33
+ module API
34
+ module Disbursements
35
+ class AccountInfo < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
37
38
 
38
- @__store = {
39
- '1a2a144d-e8a6-402e-b867-ca2be09e3a13' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-info", "update", [], ["fields"]),
40
-
41
- }
39
+ @__store = {
40
+ '127350c6-92c0-4fc7-b0fd-3cf472280ba4' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-info", "update", [], ["fields"]),
41
+
42
+ }
42
43
 
43
- protected
44
+ protected
44
45
 
45
- def self.getOperationConfig(uuid)
46
- if @__store.key?(uuid)
47
- return @__store[uuid]
48
- end
49
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
- end
46
+ def self.getOperationConfig(uuid)
47
+ if @__store.key?(uuid)
48
+ return @__store[uuid]
49
+ end
50
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
51
+ end
51
52
 
52
- def self.getOperationMetadata()
53
- return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
54
- end
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
+ end
55
56
 
56
- public
57
+ public
57
58
 
58
59
 
59
- def read
60
- #
61
- #Updates an object of type AccountInfo
62
- #
63
- #@return AccountInfo object representing the response.
64
- #
65
- return self.class.execute("1a2a144d-e8a6-402e-b867-ca2be09e3a13",self)
66
- end
67
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("127350c6-92c0-4fc7-b0fd-3cf472280ba4",self)
69
+ end
68
70
 
69
71
 
70
72
 
71
73
 
72
74
 
73
- end
74
- end
75
- end
75
+
76
+
77
+ end
78
+ end
79
+ end
76
80
  end
77
81
 
78
82
 
@@ -27,52 +27,55 @@
27
27
 
28
28
 
29
29
  require "mastercard/core/model"
30
+ require "mastercard/core/baseobject"
30
31
 
31
32
  module MasterCard
32
- module API
33
- module Disbursements
34
- class AccountVerification < MasterCard::Core::Model::BaseObject
35
- include MasterCard::Core::Model
36
- #
33
+ module API
34
+ module Disbursements
35
+ class AccountVerification < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
37
38
 
38
- @__store = {
39
- '92b1d2c3-4f86-4cc7-99a1-893f1e69de9d' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-verification", "create", [], []),
40
-
41
- }
39
+ @__store = {
40
+ '9ef8f344-e16a-4bda-96ab-7dd1afcf3726' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-verification", "create", [], []),
41
+
42
+ }
42
43
 
43
- protected
44
+ protected
44
45
 
45
- def self.getOperationConfig(uuid)
46
- if @__store.key?(uuid)
47
- return @__store[uuid]
48
- end
49
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
- end
46
+ def self.getOperationConfig(uuid)
47
+ if @__store.key?(uuid)
48
+ return @__store[uuid]
49
+ end
50
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
51
+ end
51
52
 
52
- def self.getOperationMetadata()
53
- return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
54
- end
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
+ end
55
56
 
56
- public
57
+ public
57
58
 
58
- def self.read(mapObj)
59
- #
60
- #Creates object of type AccountVerification
61
- #
62
- #@param Dict mapObj, containing the required parameters to create a new object
63
- #@return AccountVerification of the response of created instance.
64
- #
65
- return self.execute("92b1d2c3-4f86-4cc7-99a1-893f1e69de9d", AccountVerification.new(mapObj))
66
- end
67
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("9ef8f344-e16a-4bda-96ab-7dd1afcf3726", AccountVerification.new(mapObj))
68
+ end
68
69
 
69
70
 
70
71
 
71
72
 
72
73
 
73
- end
74
- end
75
- end
74
+
75
+
76
+ end
77
+ end
78
+ end
76
79
  end
77
80
 
78
81
 
@@ -27,81 +27,93 @@
27
27
 
28
28
 
29
29
  require "mastercard/core/model"
30
+ require "mastercard/core/baseobject"
30
31
 
31
32
  module MasterCard
32
- module API
33
- module Disbursements
34
- class Consumer < MasterCard::Core::Model::BaseObject
35
- include MasterCard::Core::Model
36
- #
33
+ module API
34
+ module Disbursements
35
+ class Consumer < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
37
38
 
38
- @__store = {
39
- '560eab18-865e-4066-b8c5-445f71ebf2f5' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "query", [], ["ref","contact_id_uri"]),
40
- 'af046838-40a5-44e1-a38a-50519fe5c8ee' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "create", [], []),
41
- 'f4b0c676-318e-462c-a563-b16bea5d2d91' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/search", "create", [], []),
42
- 'ac9615c7-fb44-4f51-8257-b2ec6737507d' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "read", [], []),
43
- '0330276d-2910-4985-bdd9-b158b0fdc8cf' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "update", [], []),
44
- '0a2b21d8-1838-454a-9273-1c9aad0bda12' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "delete", [], []),
45
-
46
- }
39
+ @__store = {
40
+ '99e62c50-1f23-4ba4-b3d1-b89339d53b08' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "delete", [], []),
41
+ 'b7812ffb-944e-40cb-a4df-fa1301664cf4' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "create", [], []),
42
+ '6073cbfb-e0df-4c0e-b219-71f11c696821' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "read", [], []),
43
+ '1622b775-c178-41b4-aa0d-02aea0c0763b' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "query", [], ["ref","contact_id_uri"]),
44
+ '285f9d99-8769-42dd-98ca-1e4ba84ccb77' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/search", "create", [], []),
45
+ '8a96df09-fe68-4508-ae39-c8304867dff2' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "update", [], []),
46
+
47
+ }
47
48
 
48
- protected
49
+ protected
49
50
 
50
- def self.getOperationConfig(uuid)
51
- if @__store.key?(uuid)
52
- return @__store[uuid]
53
- end
54
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
55
- end
51
+ def self.getOperationConfig(uuid)
52
+ if @__store.key?(uuid)
53
+ return @__store[uuid]
54
+ end
55
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
56
+ end
56
57
 
57
- def self.getOperationMetadata()
58
- return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
59
- end
58
+ def self.getOperationMetadata()
59
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
60
+ end
60
61
 
61
- public
62
+ public
62
63
 
63
64
 
64
65
 
65
66
 
66
67
 
68
+ def self.deleteById(id, map = nil)
69
+ #Delete object of type Consumer by id
67
70
 
68
- def self.listByReferenceOrContactID(criteria)
69
- #
70
- #Query objects of type Consumer by id and optional criteria
71
- #@param type criteria
72
- #@return Consumer object representing the response.
73
- #
71
+ #@param [String] id
72
+ #@param [Dict] map, containing additional parameters
73
+ #@return [Consumer] of the response of the deleted instance.
74
+ #@raise [APIException] an exception from the response status
74
75
 
75
- return self.execute("560eab18-865e-4066-b8c5-445f71ebf2f5",Consumer.new(criteria))
76
- end
77
76
 
78
- def self.create(mapObj)
79
- #
80
- #Creates object of type Consumer
81
- #
82
- #@param Dict mapObj, containing the required parameters to create a new object
83
- #@return Consumer of the response of created instance.
84
- #
85
- return self.execute("af046838-40a5-44e1-a38a-50519fe5c8ee", Consumer.new(mapObj))
86
- end
77
+ mapObj = Consumer.new
78
+ if !(id.nil? || id.to_s.empty?)
79
+ mapObj.set("id", id)
80
+ end
81
+ if !map.nil?
82
+ if map.instance_of? RequestMap
83
+ mapObj.setAll(map.getObject())
84
+ else
85
+ mapObj.setAll(map)
86
+ end
87
+ end
87
88
 
89
+ return self.execute("99e62c50-1f23-4ba4-b3d1-b89339d53b08", mapObj)
90
+ end
88
91
 
89
92
 
93
+ def delete
94
+ #
95
+ #Delete object of type Consumer
90
96
 
97
+ #@param [String] id
98
+ #@return [Consumer] of the response of the deleted instance.
99
+ #@raise [APIException] an exception from the response status
100
+ #
91
101
 
102
+ return self.class.execute("99e62c50-1f23-4ba4-b3d1-b89339d53b08", self)
103
+ end
92
104
 
93
- def self.listByReferenceContactIDOrGovernmentID(mapObj)
94
- #
95
- #Creates object of type Consumer
96
- #
97
- #@param Dict mapObj, containing the required parameters to create a new object
98
- #@return Consumer of the response of created instance.
99
- #
100
- return self.execute("f4b0c676-318e-462c-a563-b16bea5d2d91", Consumer.new(mapObj))
101
- end
102
105
 
103
106
 
104
107
 
108
+ def self.create(mapObj)
109
+ #
110
+ #Creates object of type Consumer
111
+ #
112
+ #@param Dict mapObj, containing the required parameters to create a new object
113
+ #@return [Consumer] of the response of created instance.
114
+ #@raise [APIException] an exception from the response status
115
+ return self.execute("b7812ffb-944e-40cb-a4df-fa1301664cf4", Consumer.new(mapObj))
116
+ end
105
117
 
106
118
 
107
119
 
@@ -109,39 +121,32 @@ module MasterCard
109
121
 
110
122
 
111
123
 
112
- def self.readByID(id, criteria = nil)
113
- #
114
- #Returns objects of type Consumer by id and optional criteria
115
- #@param str id
116
- #@param dict criteria
117
- #@return instance of Consumer
118
124
 
119
- mapObj = Consumer.new
120
- if !(id.nil? || id.to_s.empty?)
121
- mapObj.set("id", id)
122
- end
123
- if !criteria.nil?
124
- if criteria.instance_of? RequestMap
125
- mapObj.setAll(criteria.getObject())
126
- else
127
- mapObj.setAll(criteria)
128
- end
129
- end
130
125
 
131
- return self.execute("ac9615c7-fb44-4f51-8257-b2ec6737507d",Consumer.new(mapObj))
132
- end
133
126
 
134
127
 
128
+ def self.readByID(id, criteria = nil)
129
+ #
130
+ #Returns objects of type Consumer by id and optional criteria
131
+ #@param [String] id
132
+ #@param [Dict] criteria
133
+ #@return [Consumer] object representing the response
134
+ #@raise [APIException] an exception from the response status
135
135
 
136
- def update
137
- #
138
- #Updates an object of type Consumer
139
- #
140
- #@return Consumer object representing the response.
141
- #
142
- return self.class.execute("0330276d-2910-4985-bdd9-b158b0fdc8cf",self)
143
- end
136
+ mapObj = Consumer.new
137
+ if !(id.nil? || id.to_s.empty?)
138
+ mapObj.set("id", id)
139
+ end
140
+ if !criteria.nil?
141
+ if criteria.instance_of? RequestMap
142
+ mapObj.setAll(criteria.getObject())
143
+ else
144
+ mapObj.setAll(criteria)
145
+ end
146
+ end
144
147
 
148
+ return self.execute("6073cbfb-e0df-4c0e-b219-71f11c696821",Consumer.new(mapObj))
149
+ end
145
150
 
146
151
 
147
152
 
@@ -150,46 +155,54 @@ module MasterCard
150
155
 
151
156
 
152
157
 
153
- def self.deleteById(id, map = nil)
154
- #Delete object of type Consumer by id
158
+ def self.listByReferenceOrContactID(criteria)
159
+ #
160
+ #Query objects of type Consumer by id and optional criteria
161
+ #@param [Dict] criteria
162
+ #@return [Consumer] object representing the response.
163
+ #@raise [APIException] an exception from the response status
164
+ #
155
165
 
156
- #@param str id
157
- #@param Dict map, containing additional parameters
158
- #@return Consumer of the response of the deleted instance.
166
+ return self.execute("1622b775-c178-41b4-aa0d-02aea0c0763b",Consumer.new(criteria))
167
+ end
159
168
 
160
169
 
161
- mapObj = Consumer.new
162
- if !(id.nil? || id.to_s.empty?)
163
- mapObj.set("id", id)
164
- end
165
- if !map.nil?
166
- if map.instance_of? RequestMap
167
- mapObj.setAll(map.getObject())
168
- else
169
- mapObj.setAll(map)
170
- end
171
- end
170
+ def self.listByReferenceContactIDOrGovernmentID(mapObj)
171
+ #
172
+ #Creates object of type Consumer
173
+ #
174
+ #@param Dict mapObj, containing the required parameters to create a new object
175
+ #@return [Consumer] of the response of created instance.
176
+ #@raise [APIException] an exception from the response status
177
+ return self.execute("285f9d99-8769-42dd-98ca-1e4ba84ccb77", Consumer.new(mapObj))
178
+ end
172
179
 
173
- return self.execute("0a2b21d8-1838-454a-9273-1c9aad0bda12", mapObj)
174
- end
175
180
 
176
181
 
177
- def delete
178
- #
179
- #Delete object of type Consumer
180
182
 
181
- #@param str id
182
- #@return Consumer of the response of the deleted instance.
183
- #
184
183
 
185
- return self.class.execute("0a2b21d8-1838-454a-9273-1c9aad0bda12", self)
186
- end
187
184
 
188
185
 
189
186
 
190
- end
191
- end
192
- end
187
+ def update
188
+ #
189
+ #Updates an object of type Consumer
190
+ #
191
+ #@return [Consumer] object representing the response.
192
+ #@raise [APIException] an exception from the response status
193
+ #
194
+ return self.class.execute("8a96df09-fe68-4508-ae39-c8304867dff2",self)
195
+ end
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+ end
204
+ end
205
+ end
193
206
  end
194
207
 
195
208