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.
@@ -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 Disbursements
35
- class ConsumerContactID < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module Disbursements
35
+ class ConsumerContactID < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '6b93825e-12e3-43a6-83b1-4e3c095e8869' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "create", [], []),
41
- 'aaaf709d-e0b1-41cb-824c-4a281ed3e2a1' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "delete", [], []),
42
- '5e2dab8b-62fe-4870-b2bc-80ac9338f12b' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "read", [], []),
43
- '349fe6e4-9fac-4699-8a49-b3b0b71d716e' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "query", [], []),
44
- '5d6ba530-fc75-4340-a1b7-14481ac7bda2' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "update", [], []),
45
-
46
- }
39
+ @__store = {
40
+ 'e5861402-6f9b-4d51-9795-abc92daf2682' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "create", [], []),
41
+ 'e344ecac-2a50-4fe8-8962-ceaa0a457339' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "delete", [], []),
42
+ '69c21e1b-b149-4502-850c-834545a3ce9a' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "read", [], []),
43
+ 'a712c036-dd92-41ce-a846-69c7e2e7bcd4' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "query", [], []),
44
+ '29e4ec01-00ee-47f9-abab-585b8379d7bd' => 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("6b93825e-12e3-43a6-83b1-4e3c095e8869", 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("e5861402-6f9b-4d51-9795-abc92daf2682", 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("aaaf709d-e0b1-41cb-824c-4a281ed3e2a1", mapObj)
105
- end
104
+ return self.execute("e344ecac-2a50-4fe8-8962-ceaa0a457339", 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("aaaf709d-e0b1-41cb-824c-4a281ed3e2a1", self)
118
- end
117
+ return self.class.execute("e344ecac-2a50-4fe8-8962-ceaa0a457339", 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("5e2dab8b-62fe-4870-b2bc-80ac9338f12b",ConsumerContactID.new(mapObj))
148
- end
147
+ return self.execute("69c21e1b-b149-4502-850c-834545a3ce9a",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("349fe6e4-9fac-4699-8a49-b3b0b71d716e",ConsumerContactID.new(criteria))
166
- end
165
+ return self.execute("a712c036-dd92-41ce-a846-69c7e2e7bcd4",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("5d6ba530-fc75-4340-a1b7-14481ac7bda2",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("29e4ec01-00ee-47f9-abab-585b8379d7bd",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 Disbursements
35
- class ConsumerGovernmentID < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module Disbursements
35
+ class ConsumerGovernmentID < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- 'e33a52f4-e4eb-4fc0-b4b0-7fb8e021306d' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "create", [], []),
41
- 'e50fd87c-8501-429b-96a2-bc8757935b68' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "delete", [], []),
42
- '9eef4206-aa8d-408e-9a37-caa7f1fb212f' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "read", [], []),
43
- '69f2b0cc-4221-4d14-b662-db3372014e6a' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "query", [], []),
44
- 'f848b479-604a-40c6-adb0-a4f670ea9ac5' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "update", [], []),
45
-
46
- }
39
+ @__store = {
40
+ 'ea608dfe-001f-48f7-ba04-376d73bf93b9' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "create", [], []),
41
+ '4f3ebd3d-6491-40b1-8638-93767f20207d' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "delete", [], []),
42
+ '9ba6eb72-8a77-4ed2-8727-070b65b65984' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "read", [], []),
43
+ '349e72a0-523f-431f-bd8b-ed3b8aae4979' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "query", [], []),
44
+ '2fcda330-e7e5-4c00-bda1-94db94b19ef7' => 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("e33a52f4-e4eb-4fc0-b4b0-7fb8e021306d", 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("ea608dfe-001f-48f7-ba04-376d73bf93b9", 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("e50fd87c-8501-429b-96a2-bc8757935b68", mapObj)
105
- end
104
+ return self.execute("4f3ebd3d-6491-40b1-8638-93767f20207d", 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("e50fd87c-8501-429b-96a2-bc8757935b68", self)
118
- end
117
+ return self.class.execute("4f3ebd3d-6491-40b1-8638-93767f20207d", 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("9eef4206-aa8d-408e-9a37-caa7f1fb212f",ConsumerGovernmentID.new(mapObj))
148
- end
147
+ return self.execute("9ba6eb72-8a77-4ed2-8727-070b65b65984",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("69f2b0cc-4221-4d14-b662-db3372014e6a",ConsumerGovernmentID.new(criteria))
166
- end
165
+ return self.execute("349e72a0-523f-431f-bd8b-ed3b8aae4979",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("f848b479-604a-40c6-adb0-a4f670ea9ac5",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("2fcda330-e7e5-4c00-bda1-94db94b19ef7",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