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.
@@ -30,46 +30,46 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module P2p
35
- class ConsumerContactID < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module P2p
35
+ class ConsumerContactID < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '9343433e-ade4-4f9f-8825-815d5b226db4' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "create", [], []),
41
- '9e9f121d-c9ef-463c-a790-4a0bade6e588' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "delete", [], []),
42
- '59c2b7c6-f391-4a6b-addd-78bf38796891' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "read", [], []),
43
- '95d62e99-61fc-4800-8b29-69bba486e9ba' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "query", [], []),
44
- '2621ec54-e136-415c-a962-3a4914a23598' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "update", [], []),
45
-
46
- }
39
+ @__store = {
40
+ 'b1f5eb76-2fbd-4c8a-8e29-26dd7bf8242c' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "create", [], []),
41
+ 'f843888c-a34e-4c66-b929-b1ce0e2e6b7d' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "delete", [], []),
42
+ '7cef3d57-86be-4e93-9e2d-fe0e593fba0f' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "read", [], []),
43
+ '26933dfd-6a57-4856-a64e-1d9254493287' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "query", [], []),
44
+ 'f0af4736-54c2-4d6f-b30e-9a92217c8efd' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "update", [], []),
45
+
46
+ }
47
47
 
48
- protected
48
+ protected
49
49
 
50
- def self.getOperationConfig(operationUUID)
51
- if @__store.key?(operationUUID)
52
- return @__store[operationUUID]
53
- end
54
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
55
- end
50
+ def self.getOperationConfig(operationUUID)
51
+ if @__store.key?(operationUUID)
52
+ return @__store[operationUUID]
53
+ end
54
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
55
+ end
56
56
 
57
- def self.getOperationMetadata()
58
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
59
- end
57
+ def self.getOperationMetadata()
58
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
59
+ end
60
60
 
61
- public
61
+ public
62
62
 
63
63
 
64
- def self.create(mapObj)
65
- #
66
- #Creates object of type ConsumerContactID
67
- #
68
- #@param Dict mapObj, containing the required parameters to create a new object
69
- #@return [ConsumerContactID] of the response of created instance.
70
- #@raise [APIException] an exception from the response status
71
- return self.execute("9343433e-ade4-4f9f-8825-815d5b226db4", ConsumerContactID.new(mapObj))
72
- end
64
+ def self.create(mapObj)
65
+ #
66
+ #Creates object of type ConsumerContactID
67
+ #
68
+ #@param Dict mapObj, containing the required parameters to create a new object
69
+ #@return [ConsumerContactID] of the response of created instance.
70
+ #@raise [APIException] an exception from the response status
71
+ return self.execute("b1f5eb76-2fbd-4c8a-8e29-26dd7bf8242c", ConsumerContactID.new(mapObj))
72
+ end
73
73
 
74
74
 
75
75
 
@@ -80,42 +80,42 @@ module MasterCard
80
80
 
81
81
 
82
82
 
83
- def self.deleteById(id, map = nil)
84
- #Delete object of type ConsumerContactID by id
83
+ def self.deleteById(id, map = nil)
84
+ #Delete object of type ConsumerContactID by id
85
85
 
86
- #@param [String] id
87
- #@param [Dict] map, containing additional parameters
88
- #@return [ConsumerContactID] of the response of the deleted instance.
89
- #@raise [APIException] an exception from the response status
86
+ #@param [String] id
87
+ #@param [Dict] map, containing additional parameters
88
+ #@return [ConsumerContactID] of the response of the deleted instance.
89
+ #@raise [APIException] an exception from the response status
90
90
 
91
91
 
92
- mapObj = ConsumerContactID.new
93
- if !(id.nil? || id.to_s.empty?)
94
- mapObj.set("id", id)
95
- end
96
- if !map.nil?
97
- if map.instance_of? RequestMap
98
- mapObj.setAll(map.getObject())
99
- else
100
- mapObj.setAll(map)
101
- end
102
- end
92
+ mapObj = ConsumerContactID.new
93
+ if !(id.nil? || id.to_s.empty?)
94
+ mapObj.set("id", id)
95
+ end
96
+ if !map.nil?
97
+ if map.instance_of? RequestMap
98
+ mapObj.setAll(map.getObject())
99
+ else
100
+ mapObj.setAll(map)
101
+ end
102
+ end
103
103
 
104
- return self.execute("9e9f121d-c9ef-463c-a790-4a0bade6e588", mapObj)
105
- end
104
+ return self.execute("f843888c-a34e-4c66-b929-b1ce0e2e6b7d", mapObj)
105
+ end
106
106
 
107
107
 
108
- def delete
109
- #
110
- #Delete object of type ConsumerContactID
108
+ def delete
109
+ #
110
+ #Delete object of type ConsumerContactID
111
111
 
112
- #@param [String] id
113
- #@return [ConsumerContactID] of the response of the deleted instance.
114
- #@raise [APIException] an exception from the response status
115
- #
112
+ #@param [String] id
113
+ #@return [ConsumerContactID] of the response of the deleted instance.
114
+ #@raise [APIException] an exception from the response status
115
+ #
116
116
 
117
- return self.class.execute("9e9f121d-c9ef-463c-a790-4a0bade6e588", self)
118
- end
117
+ return self.class.execute("f843888c-a34e-4c66-b929-b1ce0e2e6b7d", self)
118
+ end
119
119
 
120
120
 
121
121
 
@@ -124,28 +124,28 @@ module MasterCard
124
124
 
125
125
 
126
126
 
127
- def self.read(id, criteria = nil)
128
- #
129
- #Returns objects of type ConsumerContactID by id and optional criteria
130
- #@param [String] id
131
- #@param [Dict] criteria
132
- #@return [ConsumerContactID] object representing the response
133
- #@raise [APIException] an exception from the response status
127
+ def self.read(id, criteria = nil)
128
+ #
129
+ #Returns objects of type ConsumerContactID by id and optional criteria
130
+ #@param [String] id
131
+ #@param [Dict] criteria
132
+ #@return [ConsumerContactID] object representing the response
133
+ #@raise [APIException] an exception from the response status
134
134
 
135
- mapObj = ConsumerContactID.new
136
- if !(id.nil? || id.to_s.empty?)
137
- mapObj.set("id", id)
138
- end
139
- if !criteria.nil?
140
- if criteria.instance_of? RequestMap
141
- mapObj.setAll(criteria.getObject())
142
- else
143
- mapObj.setAll(criteria)
144
- end
145
- end
135
+ mapObj = ConsumerContactID.new
136
+ if !(id.nil? || id.to_s.empty?)
137
+ mapObj.set("id", id)
138
+ end
139
+ if !criteria.nil?
140
+ if criteria.instance_of? RequestMap
141
+ mapObj.setAll(criteria.getObject())
142
+ else
143
+ mapObj.setAll(criteria)
144
+ end
145
+ end
146
146
 
147
- return self.execute("59c2b7c6-f391-4a6b-addd-78bf38796891",ConsumerContactID.new(mapObj))
148
- end
147
+ return self.execute("7cef3d57-86be-4e93-9e2d-fe0e593fba0f",ConsumerContactID.new(mapObj))
148
+ end
149
149
 
150
150
 
151
151
 
@@ -154,28 +154,28 @@ module MasterCard
154
154
 
155
155
 
156
156
 
157
- def self.listAll(criteria)
158
- #
159
- #Query objects of type ConsumerContactID by id and optional criteria
160
- #@param [Dict] criteria
161
- #@return [ConsumerContactID] object representing the response.
162
- #@raise [APIException] an exception from the response status
163
- #
157
+ def self.listAll(criteria)
158
+ #
159
+ #Query objects of type ConsumerContactID by id and optional criteria
160
+ #@param [Dict] criteria
161
+ #@return [ConsumerContactID] object representing the response.
162
+ #@raise [APIException] an exception from the response status
163
+ #
164
164
 
165
- return self.execute("95d62e99-61fc-4800-8b29-69bba486e9ba",ConsumerContactID.new(criteria))
166
- end
165
+ return self.execute("26933dfd-6a57-4856-a64e-1d9254493287",ConsumerContactID.new(criteria))
166
+ end
167
167
 
168
168
 
169
169
 
170
- def update
171
- #
172
- #Updates an object of type ConsumerContactID
173
- #
174
- #@return [ConsumerContactID] object representing the response.
175
- #@raise [APIException] an exception from the response status
176
- #
177
- return self.class.execute("2621ec54-e136-415c-a962-3a4914a23598",self)
178
- end
170
+ def update
171
+ #
172
+ #Updates an object of type ConsumerContactID
173
+ #
174
+ #@return [ConsumerContactID] object representing the response.
175
+ #@raise [APIException] an exception from the response status
176
+ #
177
+ return self.class.execute("f0af4736-54c2-4d6f-b30e-9a92217c8efd",self)
178
+ end
179
179
 
180
180
 
181
181
 
@@ -183,9 +183,9 @@ module MasterCard
183
183
 
184
184
 
185
185
 
186
- end
187
- end
188
- end
186
+ end
187
+ end
188
+ end
189
189
  end
190
190
 
191
191
 
@@ -30,46 +30,46 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module P2p
35
- class ConsumerGovernmentID < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module P2p
35
+ class ConsumerGovernmentID < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '0e7a124a-42c5-41ad-b8b9-992aba858097' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "create", [], []),
41
- '0c61d389-6600-4277-8666-fe2b4c93d31f' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "delete", [], []),
42
- 'af9ad524-87db-44d2-9f53-e74739e912fa' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "read", [], []),
43
- '3a83c575-acea-44a2-abfc-c0bd27a7c88f' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "query", [], []),
44
- '9a36b3f9-301e-41f6-aff4-ad3f6b334b50' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "update", [], []),
45
-
46
- }
39
+ @__store = {
40
+ '19b63b77-b081-46af-a7cd-ca20c5896227' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "create", [], []),
41
+ '66b526c7-3114-4340-bd0f-d73da78c13ee' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "delete", [], []),
42
+ 'bf751363-e8e0-444e-b09f-8359eb3376d3' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "read", [], []),
43
+ 'd56319ef-bdc8-4081-8c49-6bc571ff0d3e' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "query", [], []),
44
+ 'cf4d78a4-2ca9-42d8-bd5a-5e414c662cc3' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "update", [], []),
45
+
46
+ }
47
47
 
48
- protected
48
+ protected
49
49
 
50
- def self.getOperationConfig(operationUUID)
51
- if @__store.key?(operationUUID)
52
- return @__store[operationUUID]
53
- end
54
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
55
- end
50
+ def self.getOperationConfig(operationUUID)
51
+ if @__store.key?(operationUUID)
52
+ return @__store[operationUUID]
53
+ end
54
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
55
+ end
56
56
 
57
- def self.getOperationMetadata()
58
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
59
- end
57
+ def self.getOperationMetadata()
58
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
59
+ end
60
60
 
61
- public
61
+ public
62
62
 
63
63
 
64
- def self.create(mapObj)
65
- #
66
- #Creates object of type ConsumerGovernmentID
67
- #
68
- #@param Dict mapObj, containing the required parameters to create a new object
69
- #@return [ConsumerGovernmentID] of the response of created instance.
70
- #@raise [APIException] an exception from the response status
71
- return self.execute("0e7a124a-42c5-41ad-b8b9-992aba858097", ConsumerGovernmentID.new(mapObj))
72
- end
64
+ def self.create(mapObj)
65
+ #
66
+ #Creates object of type ConsumerGovernmentID
67
+ #
68
+ #@param Dict mapObj, containing the required parameters to create a new object
69
+ #@return [ConsumerGovernmentID] of the response of created instance.
70
+ #@raise [APIException] an exception from the response status
71
+ return self.execute("19b63b77-b081-46af-a7cd-ca20c5896227", ConsumerGovernmentID.new(mapObj))
72
+ end
73
73
 
74
74
 
75
75
 
@@ -80,42 +80,42 @@ module MasterCard
80
80
 
81
81
 
82
82
 
83
- def self.deleteById(id, map = nil)
84
- #Delete object of type ConsumerGovernmentID by id
83
+ def self.deleteById(id, map = nil)
84
+ #Delete object of type ConsumerGovernmentID by id
85
85
 
86
- #@param [String] id
87
- #@param [Dict] map, containing additional parameters
88
- #@return [ConsumerGovernmentID] of the response of the deleted instance.
89
- #@raise [APIException] an exception from the response status
86
+ #@param [String] id
87
+ #@param [Dict] map, containing additional parameters
88
+ #@return [ConsumerGovernmentID] of the response of the deleted instance.
89
+ #@raise [APIException] an exception from the response status
90
90
 
91
91
 
92
- mapObj = ConsumerGovernmentID.new
93
- if !(id.nil? || id.to_s.empty?)
94
- mapObj.set("id", id)
95
- end
96
- if !map.nil?
97
- if map.instance_of? RequestMap
98
- mapObj.setAll(map.getObject())
99
- else
100
- mapObj.setAll(map)
101
- end
102
- end
92
+ mapObj = ConsumerGovernmentID.new
93
+ if !(id.nil? || id.to_s.empty?)
94
+ mapObj.set("id", id)
95
+ end
96
+ if !map.nil?
97
+ if map.instance_of? RequestMap
98
+ mapObj.setAll(map.getObject())
99
+ else
100
+ mapObj.setAll(map)
101
+ end
102
+ end
103
103
 
104
- return self.execute("0c61d389-6600-4277-8666-fe2b4c93d31f", mapObj)
105
- end
104
+ return self.execute("66b526c7-3114-4340-bd0f-d73da78c13ee", mapObj)
105
+ end
106
106
 
107
107
 
108
- def delete
109
- #
110
- #Delete object of type ConsumerGovernmentID
108
+ def delete
109
+ #
110
+ #Delete object of type ConsumerGovernmentID
111
111
 
112
- #@param [String] id
113
- #@return [ConsumerGovernmentID] of the response of the deleted instance.
114
- #@raise [APIException] an exception from the response status
115
- #
112
+ #@param [String] id
113
+ #@return [ConsumerGovernmentID] of the response of the deleted instance.
114
+ #@raise [APIException] an exception from the response status
115
+ #
116
116
 
117
- return self.class.execute("0c61d389-6600-4277-8666-fe2b4c93d31f", self)
118
- end
117
+ return self.class.execute("66b526c7-3114-4340-bd0f-d73da78c13ee", self)
118
+ end
119
119
 
120
120
 
121
121
 
@@ -124,28 +124,28 @@ module MasterCard
124
124
 
125
125
 
126
126
 
127
- def self.read(id, criteria = nil)
128
- #
129
- #Returns objects of type ConsumerGovernmentID by id and optional criteria
130
- #@param [String] id
131
- #@param [Dict] criteria
132
- #@return [ConsumerGovernmentID] object representing the response
133
- #@raise [APIException] an exception from the response status
127
+ def self.read(id, criteria = nil)
128
+ #
129
+ #Returns objects of type ConsumerGovernmentID by id and optional criteria
130
+ #@param [String] id
131
+ #@param [Dict] criteria
132
+ #@return [ConsumerGovernmentID] object representing the response
133
+ #@raise [APIException] an exception from the response status
134
134
 
135
- mapObj = ConsumerGovernmentID.new
136
- if !(id.nil? || id.to_s.empty?)
137
- mapObj.set("id", id)
138
- end
139
- if !criteria.nil?
140
- if criteria.instance_of? RequestMap
141
- mapObj.setAll(criteria.getObject())
142
- else
143
- mapObj.setAll(criteria)
144
- end
145
- end
135
+ mapObj = ConsumerGovernmentID.new
136
+ if !(id.nil? || id.to_s.empty?)
137
+ mapObj.set("id", id)
138
+ end
139
+ if !criteria.nil?
140
+ if criteria.instance_of? RequestMap
141
+ mapObj.setAll(criteria.getObject())
142
+ else
143
+ mapObj.setAll(criteria)
144
+ end
145
+ end
146
146
 
147
- return self.execute("af9ad524-87db-44d2-9f53-e74739e912fa",ConsumerGovernmentID.new(mapObj))
148
- end
147
+ return self.execute("bf751363-e8e0-444e-b09f-8359eb3376d3",ConsumerGovernmentID.new(mapObj))
148
+ end
149
149
 
150
150
 
151
151
 
@@ -154,28 +154,28 @@ module MasterCard
154
154
 
155
155
 
156
156
 
157
- def self.listAll(criteria)
158
- #
159
- #Query objects of type ConsumerGovernmentID by id and optional criteria
160
- #@param [Dict] criteria
161
- #@return [ConsumerGovernmentID] object representing the response.
162
- #@raise [APIException] an exception from the response status
163
- #
157
+ def self.listAll(criteria)
158
+ #
159
+ #Query objects of type ConsumerGovernmentID by id and optional criteria
160
+ #@param [Dict] criteria
161
+ #@return [ConsumerGovernmentID] object representing the response.
162
+ #@raise [APIException] an exception from the response status
163
+ #
164
164
 
165
- return self.execute("3a83c575-acea-44a2-abfc-c0bd27a7c88f",ConsumerGovernmentID.new(criteria))
166
- end
165
+ return self.execute("d56319ef-bdc8-4081-8c49-6bc571ff0d3e",ConsumerGovernmentID.new(criteria))
166
+ end
167
167
 
168
168
 
169
169
 
170
- def update
171
- #
172
- #Updates an object of type ConsumerGovernmentID
173
- #
174
- #@return [ConsumerGovernmentID] object representing the response.
175
- #@raise [APIException] an exception from the response status
176
- #
177
- return self.class.execute("9a36b3f9-301e-41f6-aff4-ad3f6b334b50",self)
178
- end
170
+ def update
171
+ #
172
+ #Updates an object of type ConsumerGovernmentID
173
+ #
174
+ #@return [ConsumerGovernmentID] object representing the response.
175
+ #@raise [APIException] an exception from the response status
176
+ #
177
+ return self.class.execute("cf4d78a4-2ca9-42d8-bd5a-5e414c662cc3",self)
178
+ end
179
179
 
180
180
 
181
181
 
@@ -183,9 +183,9 @@ module MasterCard
183
183
 
184
184
 
185
185
 
186
- end
187
- end
188
- end
186
+ end
187
+ end
188
+ end
189
189
  end
190
190
 
191
191