mastercard_p2p 1.0.4 → 1.0.5

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
- SHA1:
3
- metadata.gz: 4cc06cf600103261958f5486a5d02eedc116c08e
4
- data.tar.gz: acfd2ac091581360dca651cef9bb6c7bcb715715
2
+ SHA256:
3
+ metadata.gz: 38e7e92992e0e13ef18319f916598cc8ddff748ac6f6e736173f1a90a5ea73b3
4
+ data.tar.gz: 7a5162fcffbabca933cf1cc35157f0f46c1a4d1e850f23ac62d72b1f4e9b5338
5
5
  SHA512:
6
- metadata.gz: 01ddcb049e5e5803aaffa453b49663939c2bad72781f646216cf2b9804b3f400f0e0dbd5e006110a6669947f342c2c4a23aad533b3b3b19eb87d5afce3f9542c
7
- data.tar.gz: 5f24d4560a5d394173ddb3f8fc4f9ad5e09f7bfbc30df00a39cfc7a5cc93dc4dd6d08796bc6b57d091ef7051fc1839ceb52211e553c9cdbc0e151f47c976ef82
6
+ metadata.gz: 6a19af74c4fb181976dbbd38c71c1acd4bf1c22121373e53a74a4a5060c2d3d1ddce8136529e35e36f9dce719799b39e27f5dd0df2a623fa38385f047ed2ea16
7
+ data.tar.gz: 42a28744be80dc35f38aee9881f8d947b06ebc4ee732269b5993525cab687c5d5ed81b86198e0bd7827a9639a89bb8e2a8e2fcc2b7203ab3917d4a3e5819d30f
@@ -37,8 +37,8 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '89cc222b-920a-4271-8767-c26eba8176e2' => OperationConfig.new("/send/v1/partners/{partnerId}/non-card-tokens/{non-card-tokens}/account-balance", "query", [], []),
41
- '451532b2-9517-4df8-983d-fbdfc3d67fb8' => OperationConfig.new("/send/v1/partners/{partnerId}/account-balances", "query", [], []),
40
+ 'af8a1009-aa52-412b-8323-5a60d009eb53' => OperationConfig.new("/send/v1/partners/{partnerId}/non-card-tokens/{nonCardToken}/account-balance", "query", [], []),
41
+ '80e690b7-eb43-428d-b24d-7e330c460996' => OperationConfig.new("/send/v1/partners/{partnerId}/account-balances", "query", [], []),
42
42
 
43
43
  }
44
44
 
@@ -71,7 +71,7 @@ module MasterCard
71
71
  #@raise [APIException] an exception from the response status
72
72
  #
73
73
 
74
- return self.execute("89cc222b-920a-4271-8767-c26eba8176e2",AccountBalance.new(criteria))
74
+ return self.execute("af8a1009-aa52-412b-8323-5a60d009eb53",AccountBalance.new(criteria))
75
75
  end
76
76
 
77
77
 
@@ -88,7 +88,7 @@ module MasterCard
88
88
  #@raise [APIException] an exception from the response status
89
89
  #
90
90
 
91
- return self.execute("451532b2-9517-4df8-983d-fbdfc3d67fb8",AccountBalance.new(criteria))
91
+ return self.execute("80e690b7-eb43-428d-b24d-7e330c460996",AccountBalance.new(criteria))
92
92
  end
93
93
 
94
94
 
@@ -37,7 +37,7 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '80f70c4b-b552-4d51-8b6b-3356d22800ac' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-info", "update", [], ["fields"]),
40
+ 'c1116ee0-9867-4139-9b48-865dfa760a9f' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-info", "update", [], ["fields"]),
41
41
 
42
42
  }
43
43
 
@@ -65,7 +65,7 @@ module MasterCard
65
65
  #@return [AccountInfo] object representing the response.
66
66
  #@raise [APIException] an exception from the response status
67
67
  #
68
- return self.class.execute("80f70c4b-b552-4d51-8b6b-3356d22800ac",self)
68
+ return self.class.execute("c1116ee0-9867-4139-9b48-865dfa760a9f",self)
69
69
  end
70
70
 
71
71
 
@@ -37,7 +37,7 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '8bb35371-bed8-4190-be92-3a18833dc04e' => OperationConfig.new("/send/v1/partners/{partnerId}/account-mapping", "update", [], []),
40
+ 'b7821f8d-936c-4787-90d2-7ba50cb7c5f3' => OperationConfig.new("/send/v1/partners/{partnerId}/account-mapping", "update", [], []),
41
41
 
42
42
  }
43
43
 
@@ -65,7 +65,7 @@ module MasterCard
65
65
  #@return [AccountMapping] object representing the response.
66
66
  #@raise [APIException] an exception from the response status
67
67
  #
68
- return self.class.execute("8bb35371-bed8-4190-be92-3a18833dc04e",self)
68
+ return self.class.execute("b7821f8d-936c-4787-90d2-7ba50cb7c5f3",self)
69
69
  end
70
70
 
71
71
 
@@ -37,7 +37,7 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '5f1d1504-bb19-4106-89fd-d851734c2282' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-verification", "create", [], []),
40
+ '2309b7a9-094a-4c53-abea-8a5b0ecb63c1' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-verification", "create", [], []),
41
41
 
42
42
  }
43
43
 
@@ -64,7 +64,7 @@ module MasterCard
64
64
  #@param Dict mapObj, containing the required parameters to create a new object
65
65
  #@return [AccountVerification] of the response of created instance.
66
66
  #@raise [APIException] an exception from the response status
67
- return self.execute("5f1d1504-bb19-4106-89fd-d851734c2282", AccountVerification.new(mapObj))
67
+ return self.execute("2309b7a9-094a-4c53-abea-8a5b0ecb63c1", AccountVerification.new(mapObj))
68
68
  end
69
69
 
70
70
 
@@ -37,9 +37,9 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '6d2b5353-a7f7-4f8d-afd1-c1ffa8a38ae8' => OperationConfig.new("/send/v1/partners/{partnerId}/transfers/payment", "create", [], []),
41
- '27905490-d9f7-4e47-bd65-c56474c333be' => OperationConfig.new("/send/v1/partners/{partnerId}/transfers/{transferId}", "read", [], []),
42
- 'd6d64a7b-712a-46c6-bd8f-79065ae7f735' => OperationConfig.new("/send/v1/partners/{partnerId}/transfers", "query", [], ["ref"]),
40
+ 'bf833b90-9bfb-4bb6-98f9-4f5c012c7e51' => OperationConfig.new("/send/v1/partners/{partnerId}/transfers/payment", "create", [], []),
41
+ 'c1a1e381-db60-41c0-a5e7-183d227fb21b' => OperationConfig.new("/send/v1/partners/{partnerId}/transfers/{transferId}", "read", [], []),
42
+ 'ff62e58b-1971-4a65-b8e8-d155f5b5f015' => OperationConfig.new("/send/v1/partners/{partnerId}/transfers", "query", [], ["ref"]),
43
43
 
44
44
  }
45
45
 
@@ -66,7 +66,7 @@ module MasterCard
66
66
  #@param Dict mapObj, containing the required parameters to create a new object
67
67
  #@return [PaymentTransfer] of the response of created instance.
68
68
  #@raise [APIException] an exception from the response status
69
- return self.execute("6d2b5353-a7f7-4f8d-afd1-c1ffa8a38ae8", PaymentTransfer.new(mapObj))
69
+ return self.execute("bf833b90-9bfb-4bb6-98f9-4f5c012c7e51", PaymentTransfer.new(mapObj))
70
70
  end
71
71
 
72
72
 
@@ -99,7 +99,7 @@ module MasterCard
99
99
  end
100
100
  end
101
101
 
102
- return self.execute("27905490-d9f7-4e47-bd65-c56474c333be",PaymentTransfer.new(mapObj))
102
+ return self.execute("c1a1e381-db60-41c0-a5e7-183d227fb21b",PaymentTransfer.new(mapObj))
103
103
  end
104
104
 
105
105
 
@@ -117,7 +117,7 @@ module MasterCard
117
117
  #@raise [APIException] an exception from the response status
118
118
  #
119
119
 
120
- return self.execute("d6d64a7b-712a-46c6-bd8f-79065ae7f735",PaymentTransfer.new(criteria))
120
+ return self.execute("ff62e58b-1971-4a65-b8e8-d155f5b5f015",PaymentTransfer.new(criteria))
121
121
  end
122
122
 
123
123
 
@@ -71,7 +71,7 @@ module MasterCard
71
71
  end
72
72
 
73
73
  def getVersion
74
- return "p2p:1.0.4"
74
+ return "p2p:1.0.5"
75
75
  end
76
76
 
77
77
  def getJsonNative
@@ -37,7 +37,7 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '4a8e4bb6-8358-4152-a8c7-2bb2151ae137' => OperationConfig.new("/inbound/notification/v1/", "create", [], []),
40
+ 'c46ba158-bdcb-485d-b48e-33e690c0d1fb' => OperationConfig.new("/inbound/notification/v1/", "create", [], []),
41
41
 
42
42
  }
43
43
 
@@ -64,7 +64,7 @@ module MasterCard
64
64
  #@param Dict mapObj, containing the required parameters to create a new object
65
65
  #@return [TransferNotification] of the response of created instance.
66
66
  #@raise [APIException] an exception from the response status
67
- return self.execute("4a8e4bb6-8358-4152-a8c7-2bb2151ae137", TransferNotification.new(mapObj))
67
+ return self.execute("c46ba158-bdcb-485d-b48e-33e690c0d1fb", TransferNotification.new(mapObj))
68
68
  end
69
69
 
70
70
 
@@ -6,10 +6,5 @@ require 'mastercard/api/p2p/accountbalance'
6
6
  require 'mastercard/api/p2p/accountinfo'
7
7
  require 'mastercard/api/p2p/accountmapping'
8
8
  require 'mastercard/api/p2p/accountverification'
9
- require 'mastercard/api/p2p/consumer'
10
- require 'mastercard/api/p2p/consumeraccount'
11
- require 'mastercard/api/p2p/consumercontactid'
12
- require 'mastercard/api/p2p/consumergovernmentid'
13
9
  require 'mastercard/api/p2p/paymenttransfer'
14
- require 'mastercard/api/p2p/sanctionscreening'
15
10
  require 'mastercard/api/p2p/transfernotification'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastercard_p2p
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - MasterCard Worldwide
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-03 00:00:00.000000000 Z
11
+ date: 2019-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mastercard_api_core
@@ -55,13 +55,8 @@ files:
55
55
  - lib/mastercard/api/p2p/accountinfo.rb
56
56
  - lib/mastercard/api/p2p/accountmapping.rb
57
57
  - lib/mastercard/api/p2p/accountverification.rb
58
- - lib/mastercard/api/p2p/consumer.rb
59
- - lib/mastercard/api/p2p/consumeraccount.rb
60
- - lib/mastercard/api/p2p/consumercontactid.rb
61
- - lib/mastercard/api/p2p/consumergovernmentid.rb
62
58
  - lib/mastercard/api/p2p/paymenttransfer.rb
63
59
  - lib/mastercard/api/p2p/resourceconfig.rb
64
- - lib/mastercard/api/p2p/sanctionscreening.rb
65
60
  - lib/mastercard/api/p2p/transfernotification.rb
66
61
  - lib/mastercard_p2p.rb
67
62
  homepage: https://developer.mastercard.com
@@ -84,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
79
  version: '0'
85
80
  requirements: []
86
81
  rubyforge_project:
87
- rubygems_version: 2.5.1
82
+ rubygems_version: 2.7.7
88
83
  signing_key:
89
84
  specification_version: 4
90
85
  summary: MasterCard P2p SDK
@@ -1,213 +0,0 @@
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 P2p
35
- class Consumer < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
38
-
39
- @__store = {
40
- 'e3e84eda-0e71-400c-9208-7e822ca3be72' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "delete", [], []),
41
- 'b4dd5e2f-18a7-495b-a846-2f1153bfae32' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "create", [], []),
42
- 'b445d4f8-c184-42fb-b6b0-ba951c6acb52' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "read", [], []),
43
- '5d637704-7c59-49bf-8ecb-7421672e87fe' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "query", [], ["ref","contact_id_uri"]),
44
- '06aecedd-dc58-454c-a7e8-659dac8aa16e' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/search", "create", [], []),
45
- '5e00a506-e9f9-481e-b571-f32bd2a4dd29' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "update", [], []),
46
-
47
- }
48
-
49
- protected
50
-
51
- def self.getOperationConfig(operationUUID)
52
- if @__store.key?(operationUUID)
53
- return @__store[operationUUID]
54
- end
55
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
56
- end
57
-
58
- def self.getOperationMetadata()
59
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
60
- end
61
-
62
- public
63
-
64
-
65
-
66
-
67
-
68
- def self.deleteById(id, map = nil)
69
- #Delete object of type Consumer by id
70
-
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
75
-
76
-
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
88
-
89
- return self.execute("e3e84eda-0e71-400c-9208-7e822ca3be72", mapObj)
90
- end
91
-
92
-
93
- def delete
94
- #
95
- #Delete object of type Consumer
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
- #
101
-
102
- return self.class.execute("e3e84eda-0e71-400c-9208-7e822ca3be72", self)
103
- end
104
-
105
-
106
-
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("b4dd5e2f-18a7-495b-a846-2f1153bfae32", Consumer.new(mapObj))
116
- end
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
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
-
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
147
-
148
- return self.execute("b445d4f8-c184-42fb-b6b0-ba951c6acb52",Consumer.new(mapObj))
149
- end
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
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
- #
165
-
166
- return self.execute("5d637704-7c59-49bf-8ecb-7421672e87fe",Consumer.new(criteria))
167
- end
168
-
169
-
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("06aecedd-dc58-454c-a7e8-659dac8aa16e", Consumer.new(mapObj))
178
- end
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
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("5e00a506-e9f9-481e-b571-f32bd2a4dd29",self)
195
- end
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
- end
204
- end
205
- end
206
- end
207
-
208
-
209
-
210
-
211
-
212
-
213
-
@@ -1,196 +0,0 @@
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 P2p
35
- class ConsumerAccount < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
38
-
39
- @__store = {
40
- 'f10ac160-61dc-4af3-92c5-ba6a6ff76ed1' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts", "create", [], []),
41
- '6ec8fba5-6bd7-445f-9b5c-fe6daac76802' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "delete", [], []),
42
- 'd08edef7-bfda-4591-957a-b1bcb4dcd56b' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "read", [], []),
43
- '5907bece-5dfd-48fd-b701-1daf1913b2a1' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts", "query", [], ["ref"]),
44
- 'ab467fb8-8111-405f-a2fc-6007ade9d545' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "update", [], []),
45
-
46
- }
47
-
48
- protected
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
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
60
-
61
- public
62
-
63
-
64
- def self.create(mapObj)
65
- #
66
- #Creates object of type ConsumerAccount
67
- #
68
- #@param Dict mapObj, containing the required parameters to create a new object
69
- #@return [ConsumerAccount] of the response of created instance.
70
- #@raise [APIException] an exception from the response status
71
- return self.execute("f10ac160-61dc-4af3-92c5-ba6a6ff76ed1", ConsumerAccount.new(mapObj))
72
- end
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
- def self.deleteById(id, map = nil)
84
- #Delete object of type ConsumerAccount by id
85
-
86
- #@param [String] id
87
- #@param [Dict] map, containing additional parameters
88
- #@return [ConsumerAccount] of the response of the deleted instance.
89
- #@raise [APIException] an exception from the response status
90
-
91
-
92
- mapObj = ConsumerAccount.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
-
104
- return self.execute("6ec8fba5-6bd7-445f-9b5c-fe6daac76802", mapObj)
105
- end
106
-
107
-
108
- def delete
109
- #
110
- #Delete object of type ConsumerAccount
111
-
112
- #@param [String] id
113
- #@return [ConsumerAccount] of the response of the deleted instance.
114
- #@raise [APIException] an exception from the response status
115
- #
116
-
117
- return self.class.execute("6ec8fba5-6bd7-445f-9b5c-fe6daac76802", self)
118
- end
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
- def self.readByID(id, criteria = nil)
128
- #
129
- #Returns objects of type ConsumerAccount by id and optional criteria
130
- #@param [String] id
131
- #@param [Dict] criteria
132
- #@return [ConsumerAccount] object representing the response
133
- #@raise [APIException] an exception from the response status
134
-
135
- mapObj = ConsumerAccount.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
-
147
- return self.execute("d08edef7-bfda-4591-957a-b1bcb4dcd56b",ConsumerAccount.new(mapObj))
148
- end
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
- def self.listAll(criteria)
158
- #
159
- #Query objects of type ConsumerAccount by id and optional criteria
160
- #@param [Dict] criteria
161
- #@return [ConsumerAccount] object representing the response.
162
- #@raise [APIException] an exception from the response status
163
- #
164
-
165
- return self.execute("5907bece-5dfd-48fd-b701-1daf1913b2a1",ConsumerAccount.new(criteria))
166
- end
167
-
168
-
169
-
170
- def update
171
- #
172
- #Updates an object of type ConsumerAccount
173
- #
174
- #@return [ConsumerAccount] object representing the response.
175
- #@raise [APIException] an exception from the response status
176
- #
177
- return self.class.execute("ab467fb8-8111-405f-a2fc-6007ade9d545",self)
178
- end
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
- end
187
- end
188
- end
189
- end
190
-
191
-
192
-
193
-
194
-
195
-
196
-
@@ -1,196 +0,0 @@
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 P2p
35
- class ConsumerContactID < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
38
-
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
-
48
- protected
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
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
60
-
61
- public
62
-
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("b1f5eb76-2fbd-4c8a-8e29-26dd7bf8242c", ConsumerContactID.new(mapObj))
72
- end
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
- def self.deleteById(id, map = nil)
84
- #Delete object of type ConsumerContactID by id
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
90
-
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
103
-
104
- return self.execute("f843888c-a34e-4c66-b929-b1ce0e2e6b7d", mapObj)
105
- end
106
-
107
-
108
- def delete
109
- #
110
- #Delete object of type ConsumerContactID
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
- #
116
-
117
- return self.class.execute("f843888c-a34e-4c66-b929-b1ce0e2e6b7d", self)
118
- end
119
-
120
-
121
-
122
-
123
-
124
-
125
-
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
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
146
-
147
- return self.execute("7cef3d57-86be-4e93-9e2d-fe0e593fba0f",ConsumerContactID.new(mapObj))
148
- end
149
-
150
-
151
-
152
-
153
-
154
-
155
-
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
- #
164
-
165
- return self.execute("26933dfd-6a57-4856-a64e-1d9254493287",ConsumerContactID.new(criteria))
166
- end
167
-
168
-
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("f0af4736-54c2-4d6f-b30e-9a92217c8efd",self)
178
- end
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
- end
187
- end
188
- end
189
- end
190
-
191
-
192
-
193
-
194
-
195
-
196
-
@@ -1,196 +0,0 @@
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 P2p
35
- class ConsumerGovernmentID < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
38
-
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
-
48
- protected
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
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
60
-
61
- public
62
-
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("19b63b77-b081-46af-a7cd-ca20c5896227", ConsumerGovernmentID.new(mapObj))
72
- end
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
- def self.deleteById(id, map = nil)
84
- #Delete object of type ConsumerGovernmentID by id
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
90
-
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
103
-
104
- return self.execute("66b526c7-3114-4340-bd0f-d73da78c13ee", mapObj)
105
- end
106
-
107
-
108
- def delete
109
- #
110
- #Delete object of type ConsumerGovernmentID
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
- #
116
-
117
- return self.class.execute("66b526c7-3114-4340-bd0f-d73da78c13ee", self)
118
- end
119
-
120
-
121
-
122
-
123
-
124
-
125
-
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
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
146
-
147
- return self.execute("bf751363-e8e0-444e-b09f-8359eb3376d3",ConsumerGovernmentID.new(mapObj))
148
- end
149
-
150
-
151
-
152
-
153
-
154
-
155
-
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
- #
164
-
165
- return self.execute("d56319ef-bdc8-4081-8c49-6bc571ff0d3e",ConsumerGovernmentID.new(criteria))
166
- end
167
-
168
-
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("cf4d78a4-2ca9-42d8-bd5a-5e414c662cc3",self)
178
- end
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
- end
187
- end
188
- end
189
- end
190
-
191
-
192
-
193
-
194
-
195
-
196
-
@@ -1,87 +0,0 @@
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 P2p
35
- class SanctionScreening < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
38
-
39
- @__store = {
40
- 'abb17fdc-0ea5-4bf3-a764-3620e58392d4' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/sanction_screening", "update", [], []),
41
-
42
- }
43
-
44
- protected
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
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
56
-
57
- public
58
-
59
-
60
-
61
- def read
62
- #
63
- #Updates an object of type SanctionScreening
64
- #
65
- #@return [SanctionScreening] object representing the response.
66
- #@raise [APIException] an exception from the response status
67
- #
68
- return self.class.execute("abb17fdc-0ea5-4bf3-a764-3620e58392d4",self)
69
- end
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
- end
78
- end
79
- end
80
- end
81
-
82
-
83
-
84
-
85
-
86
-
87
-