mastercard_p2p 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: 219f5799a7e983a6363d57c424303df469b26bde
4
- data.tar.gz: fcb92eba8c3432e383b9fbc06cfb4aca75b12b60
3
+ metadata.gz: 469bd4389d396166680a438cde37e05e6806ee21
4
+ data.tar.gz: a5372adb9c9093adc51956bfd2113af1d5d894e2
5
5
  SHA512:
6
- metadata.gz: eb9ff7076f20eef1553f3c6efe7aedd08c9f02c7b2e6a5d63e1de0e4c96e7b75f269630c63d3c5b3457e600f13464b468d59452533f7b75cf908aa1485968882
7
- data.tar.gz: 3cca874d56c9f07d8eb8d81a1bc4353e9c23811d57a346a67b5ae926da2bff668864b8fd506dc7e26abad9977daf470a1a0cb208439b550ace300c40bf3a6569
6
+ metadata.gz: aa3384e424b8a46885557e18a4bf82712603ae278768c893ac6e7c18ab5a0db7af259c73f4f094a1860d144374e3539af903733d80419138667126623688a2ec
7
+ data.tar.gz: a0b55688bbc6c63a75a6c09685a26c8ad1b937e099057b19ba4a1b4c8d513905c066d6e0da5ad66cd811453699ebb550ad27413fd79a016ad8a1b8b425009597
@@ -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 P2p
34
- class AccountInfo < MasterCard::Core::Model::BaseObject
35
- include MasterCard::Core::Model
36
- #
33
+ module API
34
+ module P2p
35
+ class AccountInfo < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
37
38
 
38
- @__store = {
39
- 'eafcb4d2-c9fc-46db-8ef5-b1d4c1b5ac08' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-info", "update", [], ["fields"]),
40
-
41
- }
39
+ @__store = {
40
+ '22e1c2fa-5015-49e5-be7b-4318577ef92b' => 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("eafcb4d2-c9fc-46db-8ef5-b1d4c1b5ac08",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("22e1c2fa-5015-49e5-be7b-4318577ef92b",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 P2p
34
- class AccountVerification < MasterCard::Core::Model::BaseObject
35
- include MasterCard::Core::Model
36
- #
33
+ module API
34
+ module P2p
35
+ class AccountVerification < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
37
38
 
38
- @__store = {
39
- 'd25178c0-d602-436b-8d2f-e179c00d744d' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-verification", "create", [], []),
40
-
41
- }
39
+ @__store = {
40
+ '85dda7ed-b3fb-44c6-b64d-4acf2f7cea6c' => 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("d25178c0-d602-436b-8d2f-e179c00d744d", 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("85dda7ed-b3fb-44c6-b64d-4acf2f7cea6c", 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 P2p
34
- class Consumer < MasterCard::Core::Model::BaseObject
35
- include MasterCard::Core::Model
36
- #
33
+ module API
34
+ module P2p
35
+ class Consumer < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
37
38
 
38
- @__store = {
39
- 'f784f495-b8df-41c3-abca-44ec2eb04624' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "query", [], ["ref","contact_id_uri"]),
40
- 'abbad0fa-341a-478e-98a2-4ff2ec7ce37f' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "create", [], []),
41
- '1a7d6c07-f243-4577-8a9f-3f593f6dacc8' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/search", "create", [], []),
42
- '915e7ecf-f1ec-4c4f-9f2e-62f974837ba3' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "read", [], []),
43
- '25ec0e85-c158-4250-952c-2cfef6ddb8cf' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "update", [], []),
44
- '0966aa40-7c74-4ba4-a894-a7c567c8f085' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "delete", [], []),
45
-
46
- }
39
+ @__store = {
40
+ '3074bf39-ccac-4ec4-b6af-69c5f83de2ad' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "delete", [], []),
41
+ '2da031f5-cdcb-4c47-984d-4eda4dc709d5' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "create", [], []),
42
+ '1c02f5cf-b26f-4107-83e8-c0e749f67a29' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "read", [], []),
43
+ '4f293a94-26b4-45c5-bd3a-a3e3cab54f3c' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "query", [], ["ref","contact_id_uri"]),
44
+ '22319443-ed97-4bf7-97ba-cb8bfd621515' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/search", "create", [], []),
45
+ '9e371739-8517-4f4c-9a20-83fba6d6f3da' => 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("f784f495-b8df-41c3-abca-44ec2eb04624",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("abbad0fa-341a-478e-98a2-4ff2ec7ce37f", 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("3074bf39-ccac-4ec4-b6af-69c5f83de2ad", 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("3074bf39-ccac-4ec4-b6af-69c5f83de2ad", 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("1a7d6c07-f243-4577-8a9f-3f593f6dacc8", 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("2da031f5-cdcb-4c47-984d-4eda4dc709d5", 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("915e7ecf-f1ec-4c4f-9f2e-62f974837ba3",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("25ec0e85-c158-4250-952c-2cfef6ddb8cf",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("1c02f5cf-b26f-4107-83e8-c0e749f67a29",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("4f293a94-26b4-45c5-bd3a-a3e3cab54f3c",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("22319443-ed97-4bf7-97ba-cb8bfd621515", Consumer.new(mapObj))
178
+ end
172
179
 
173
- return self.execute("0966aa40-7c74-4ba4-a894-a7c567c8f085", 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("0966aa40-7c74-4ba4-a894-a7c567c8f085", 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("9e371739-8517-4f4c-9a20-83fba6d6f3da",self)
195
+ end
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+ end
204
+ end
205
+ end
193
206
  end
194
207
 
195
208