mastercard_p2p 1.0.2 → 1.0.3

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: 469bd4389d396166680a438cde37e05e6806ee21
4
- data.tar.gz: a5372adb9c9093adc51956bfd2113af1d5d894e2
3
+ metadata.gz: ab971a4a30aa9f6374d04d36b51c38253f581248
4
+ data.tar.gz: 14f8aa82a21027484a91f669ddb41d278cd0757d
5
5
  SHA512:
6
- metadata.gz: aa3384e424b8a46885557e18a4bf82712603ae278768c893ac6e7c18ab5a0db7af259c73f4f094a1860d144374e3539af903733d80419138667126623688a2ec
7
- data.tar.gz: a0b55688bbc6c63a75a6c09685a26c8ad1b937e099057b19ba4a1b4c8d513905c066d6e0da5ad66cd811453699ebb550ad27413fd79a016ad8a1b8b425009597
6
+ metadata.gz: b450c6d457b11e75c7d8b6ac00e2c74ad3515773602f22d467b8f00580fd7a4bcad70a9766f04308ade9aff3df9ddc1084eeee9f535b23a261e2a68c4414a639
7
+ data.tar.gz: bf410f3bf93fff4a4ec1b681fbba43ee507aa537253d50294b6581c20aea368ef29be1ae8d524d1a071d940a746936bc07352ad7944d30d908a132597e170d39
@@ -37,21 +37,21 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '22e1c2fa-5015-49e5-be7b-4318577ef92b' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-info", "update", [], ["fields"]),
40
+ '06a47d52-8d63-46f3-a8af-0a0320979365' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-info", "update", [], ["fields"]),
41
41
 
42
42
  }
43
43
 
44
44
  protected
45
45
 
46
- def self.getOperationConfig(uuid)
47
- if @__store.key?(uuid)
48
- return @__store[uuid]
46
+ def self.getOperationConfig(operationUUID)
47
+ if @__store.key?(operationUUID)
48
+ return @__store[operationUUID]
49
49
  end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
51
51
  end
52
52
 
53
53
  def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
55
55
  end
56
56
 
57
57
  public
@@ -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("22e1c2fa-5015-49e5-be7b-4318577ef92b",self)
68
+ return self.class.execute("06a47d52-8d63-46f3-a8af-0a0320979365",self)
69
69
  end
70
70
 
71
71
 
@@ -0,0 +1,87 @@
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 AccountMapping < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '58081f89-b958-4220-8305-eb26ae96d764' => OperationConfig.new("/send/v1/partners/{partnerId}/account-mapping", "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 create
62
+ #
63
+ #Updates an object of type AccountMapping
64
+ #
65
+ #@return [AccountMapping] object representing the response.
66
+ #@raise [APIException] an exception from the response status
67
+ #
68
+ return self.class.execute("58081f89-b958-4220-8305-eb26ae96d764",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
+
@@ -37,21 +37,21 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '85dda7ed-b3fb-44c6-b64d-4acf2f7cea6c' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-verification", "create", [], []),
40
+ 'b28deb83-c94b-4578-bdde-b5c8e54d917e' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-verification", "create", [], []),
41
41
 
42
42
  }
43
43
 
44
44
  protected
45
45
 
46
- def self.getOperationConfig(uuid)
47
- if @__store.key?(uuid)
48
- return @__store[uuid]
46
+ def self.getOperationConfig(operationUUID)
47
+ if @__store.key?(operationUUID)
48
+ return @__store[operationUUID]
49
49
  end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
51
51
  end
52
52
 
53
53
  def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
55
55
  end
56
56
 
57
57
  public
@@ -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("85dda7ed-b3fb-44c6-b64d-4acf2f7cea6c", AccountVerification.new(mapObj))
67
+ return self.execute("b28deb83-c94b-4578-bdde-b5c8e54d917e", AccountVerification.new(mapObj))
68
68
  end
69
69
 
70
70
 
@@ -37,26 +37,26 @@ module MasterCard
37
37
  #
38
38
 
39
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", [], []),
40
+ 'b79fd8dc-7735-40ac-af33-e76721e78faf' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "delete", [], []),
41
+ '9b76495e-46cd-4655-98d4-0510625bcf82' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "create", [], []),
42
+ '8db8f0d4-7953-4555-b45b-6ef4c41a7485' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "read", [], []),
43
+ 'ac2f477b-2198-4f29-9c73-8c8245eebbf7' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "query", [], ["ref","contact_id_uri"]),
44
+ 'bf3f1e2e-391b-46df-8e0a-dcfaf3a787d7' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/search", "create", [], []),
45
+ '962e662e-8c42-4976-afe8-0e59896da1cb' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "update", [], []),
46
46
 
47
47
  }
48
48
 
49
49
  protected
50
50
 
51
- def self.getOperationConfig(uuid)
52
- if @__store.key?(uuid)
53
- return @__store[uuid]
51
+ def self.getOperationConfig(operationUUID)
52
+ if @__store.key?(operationUUID)
53
+ return @__store[operationUUID]
54
54
  end
55
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
55
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
56
56
  end
57
57
 
58
58
  def self.getOperationMetadata()
59
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
59
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
60
60
  end
61
61
 
62
62
  public
@@ -86,7 +86,7 @@ module MasterCard
86
86
  end
87
87
  end
88
88
 
89
- return self.execute("3074bf39-ccac-4ec4-b6af-69c5f83de2ad", mapObj)
89
+ return self.execute("b79fd8dc-7735-40ac-af33-e76721e78faf", mapObj)
90
90
  end
91
91
 
92
92
 
@@ -99,7 +99,7 @@ module MasterCard
99
99
  #@raise [APIException] an exception from the response status
100
100
  #
101
101
 
102
- return self.class.execute("3074bf39-ccac-4ec4-b6af-69c5f83de2ad", self)
102
+ return self.class.execute("b79fd8dc-7735-40ac-af33-e76721e78faf", self)
103
103
  end
104
104
 
105
105
 
@@ -112,7 +112,7 @@ module MasterCard
112
112
  #@param Dict mapObj, containing the required parameters to create a new object
113
113
  #@return [Consumer] of the response of created instance.
114
114
  #@raise [APIException] an exception from the response status
115
- return self.execute("2da031f5-cdcb-4c47-984d-4eda4dc709d5", Consumer.new(mapObj))
115
+ return self.execute("9b76495e-46cd-4655-98d4-0510625bcf82", Consumer.new(mapObj))
116
116
  end
117
117
 
118
118
 
@@ -145,7 +145,7 @@ module MasterCard
145
145
  end
146
146
  end
147
147
 
148
- return self.execute("1c02f5cf-b26f-4107-83e8-c0e749f67a29",Consumer.new(mapObj))
148
+ return self.execute("8db8f0d4-7953-4555-b45b-6ef4c41a7485",Consumer.new(mapObj))
149
149
  end
150
150
 
151
151
 
@@ -163,7 +163,7 @@ module MasterCard
163
163
  #@raise [APIException] an exception from the response status
164
164
  #
165
165
 
166
- return self.execute("4f293a94-26b4-45c5-bd3a-a3e3cab54f3c",Consumer.new(criteria))
166
+ return self.execute("ac2f477b-2198-4f29-9c73-8c8245eebbf7",Consumer.new(criteria))
167
167
  end
168
168
 
169
169
 
@@ -174,7 +174,7 @@ module MasterCard
174
174
  #@param Dict mapObj, containing the required parameters to create a new object
175
175
  #@return [Consumer] of the response of created instance.
176
176
  #@raise [APIException] an exception from the response status
177
- return self.execute("22319443-ed97-4bf7-97ba-cb8bfd621515", Consumer.new(mapObj))
177
+ return self.execute("bf3f1e2e-391b-46df-8e0a-dcfaf3a787d7", Consumer.new(mapObj))
178
178
  end
179
179
 
180
180
 
@@ -191,7 +191,7 @@ module MasterCard
191
191
  #@return [Consumer] object representing the response.
192
192
  #@raise [APIException] an exception from the response status
193
193
  #
194
- return self.class.execute("9e371739-8517-4f4c-9a20-83fba6d6f3da",self)
194
+ return self.class.execute("962e662e-8c42-4976-afe8-0e59896da1cb",self)
195
195
  end
196
196
 
197
197
 
@@ -37,25 +37,25 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- 'db8abe07-5a1c-4b11-a402-09f9538fe388' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts", "create", [], []),
41
- '32f122e6-70c6-4878-a9e5-c37903d8e3f9' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "delete", [], []),
42
- 'a0ccac81-1f8d-48e7-a5a2-60a4e94648dc' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "read", [], []),
43
- 'f0fcc101-f6c0-4b14-b0e7-526682ae427f' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts", "query", [], ["ref"]),
44
- '1672c634-aaf2-48f6-9709-f30c88efdfc9' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "update", [], []),
40
+ '7f0c5bb0-4ad8-441b-a8c6-fc882c3cbed7' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts", "create", [], []),
41
+ '3fa04f34-dd82-45b7-8f7b-e0d080f8b879' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "delete", [], []),
42
+ 'cbe5f959-f155-4f8d-a489-4a1d01c4f6d4' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "read", [], []),
43
+ '69f23f24-ee62-4b24-a6f4-eed874c3d969' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts", "query", [], ["ref"]),
44
+ '4316fb2b-461b-4806-8e32-a65da6a230e1' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "update", [], []),
45
45
 
46
46
  }
47
47
 
48
48
  protected
49
49
 
50
- def self.getOperationConfig(uuid)
51
- if @__store.key?(uuid)
52
- return @__store[uuid]
50
+ def self.getOperationConfig(operationUUID)
51
+ if @__store.key?(operationUUID)
52
+ return @__store[operationUUID]
53
53
  end
54
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
54
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
55
55
  end
56
56
 
57
57
  def self.getOperationMetadata()
58
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
58
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
59
59
  end
60
60
 
61
61
  public
@@ -68,7 +68,7 @@ module MasterCard
68
68
  #@param Dict mapObj, containing the required parameters to create a new object
69
69
  #@return [ConsumerAccount] of the response of created instance.
70
70
  #@raise [APIException] an exception from the response status
71
- return self.execute("db8abe07-5a1c-4b11-a402-09f9538fe388", ConsumerAccount.new(mapObj))
71
+ return self.execute("7f0c5bb0-4ad8-441b-a8c6-fc882c3cbed7", ConsumerAccount.new(mapObj))
72
72
  end
73
73
 
74
74
 
@@ -101,7 +101,7 @@ module MasterCard
101
101
  end
102
102
  end
103
103
 
104
- return self.execute("32f122e6-70c6-4878-a9e5-c37903d8e3f9", mapObj)
104
+ return self.execute("3fa04f34-dd82-45b7-8f7b-e0d080f8b879", mapObj)
105
105
  end
106
106
 
107
107
 
@@ -114,7 +114,7 @@ module MasterCard
114
114
  #@raise [APIException] an exception from the response status
115
115
  #
116
116
 
117
- return self.class.execute("32f122e6-70c6-4878-a9e5-c37903d8e3f9", self)
117
+ return self.class.execute("3fa04f34-dd82-45b7-8f7b-e0d080f8b879", self)
118
118
  end
119
119
 
120
120
 
@@ -144,7 +144,7 @@ module MasterCard
144
144
  end
145
145
  end
146
146
 
147
- return self.execute("a0ccac81-1f8d-48e7-a5a2-60a4e94648dc",ConsumerAccount.new(mapObj))
147
+ return self.execute("cbe5f959-f155-4f8d-a489-4a1d01c4f6d4",ConsumerAccount.new(mapObj))
148
148
  end
149
149
 
150
150
 
@@ -162,7 +162,7 @@ module MasterCard
162
162
  #@raise [APIException] an exception from the response status
163
163
  #
164
164
 
165
- return self.execute("f0fcc101-f6c0-4b14-b0e7-526682ae427f",ConsumerAccount.new(criteria))
165
+ return self.execute("69f23f24-ee62-4b24-a6f4-eed874c3d969",ConsumerAccount.new(criteria))
166
166
  end
167
167
 
168
168
 
@@ -174,7 +174,7 @@ module MasterCard
174
174
  #@return [ConsumerAccount] object representing the response.
175
175
  #@raise [APIException] an exception from the response status
176
176
  #
177
- return self.class.execute("1672c634-aaf2-48f6-9709-f30c88efdfc9",self)
177
+ return self.class.execute("4316fb2b-461b-4806-8e32-a65da6a230e1",self)
178
178
  end
179
179
 
180
180
 
@@ -37,25 +37,25 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- 'b05753f2-29fa-46ed-a610-39448052737f' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "create", [], []),
41
- 'a719c0ce-6595-49bd-8e2f-b76f3a3f0437' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "delete", [], []),
42
- '0807eca8-af54-401d-8db3-bae828d1a863' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "read", [], []),
43
- '80f9077e-520b-48ae-a751-8b42e7a55818' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "query", [], []),
44
- 'b9b88de0-48a3-47c8-9ed4-8aaaca0c20cb' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "update", [], []),
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
45
 
46
46
  }
47
47
 
48
48
  protected
49
49
 
50
- def self.getOperationConfig(uuid)
51
- if @__store.key?(uuid)
52
- return @__store[uuid]
50
+ def self.getOperationConfig(operationUUID)
51
+ if @__store.key?(operationUUID)
52
+ return @__store[operationUUID]
53
53
  end
54
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
54
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
55
55
  end
56
56
 
57
57
  def self.getOperationMetadata()
58
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
58
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
59
59
  end
60
60
 
61
61
  public
@@ -68,7 +68,7 @@ module MasterCard
68
68
  #@param Dict mapObj, containing the required parameters to create a new object
69
69
  #@return [ConsumerContactID] of the response of created instance.
70
70
  #@raise [APIException] an exception from the response status
71
- return self.execute("b05753f2-29fa-46ed-a610-39448052737f", ConsumerContactID.new(mapObj))
71
+ return self.execute("9343433e-ade4-4f9f-8825-815d5b226db4", ConsumerContactID.new(mapObj))
72
72
  end
73
73
 
74
74
 
@@ -101,7 +101,7 @@ module MasterCard
101
101
  end
102
102
  end
103
103
 
104
- return self.execute("a719c0ce-6595-49bd-8e2f-b76f3a3f0437", mapObj)
104
+ return self.execute("9e9f121d-c9ef-463c-a790-4a0bade6e588", mapObj)
105
105
  end
106
106
 
107
107
 
@@ -114,7 +114,7 @@ module MasterCard
114
114
  #@raise [APIException] an exception from the response status
115
115
  #
116
116
 
117
- return self.class.execute("a719c0ce-6595-49bd-8e2f-b76f3a3f0437", self)
117
+ return self.class.execute("9e9f121d-c9ef-463c-a790-4a0bade6e588", self)
118
118
  end
119
119
 
120
120
 
@@ -144,7 +144,7 @@ module MasterCard
144
144
  end
145
145
  end
146
146
 
147
- return self.execute("0807eca8-af54-401d-8db3-bae828d1a863",ConsumerContactID.new(mapObj))
147
+ return self.execute("59c2b7c6-f391-4a6b-addd-78bf38796891",ConsumerContactID.new(mapObj))
148
148
  end
149
149
 
150
150
 
@@ -162,7 +162,7 @@ module MasterCard
162
162
  #@raise [APIException] an exception from the response status
163
163
  #
164
164
 
165
- return self.execute("80f9077e-520b-48ae-a751-8b42e7a55818",ConsumerContactID.new(criteria))
165
+ return self.execute("95d62e99-61fc-4800-8b29-69bba486e9ba",ConsumerContactID.new(criteria))
166
166
  end
167
167
 
168
168
 
@@ -174,7 +174,7 @@ module MasterCard
174
174
  #@return [ConsumerContactID] object representing the response.
175
175
  #@raise [APIException] an exception from the response status
176
176
  #
177
- return self.class.execute("b9b88de0-48a3-47c8-9ed4-8aaaca0c20cb",self)
177
+ return self.class.execute("2621ec54-e136-415c-a962-3a4914a23598",self)
178
178
  end
179
179
 
180
180
 
@@ -37,25 +37,25 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '1055efc4-6bd6-452c-8ced-75286c70d409' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "create", [], []),
41
- '1b0d922f-ec80-4ed7-857b-dc0f5c1c75b7' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "delete", [], []),
42
- 'f9d8d117-d933-4176-8adb-8cb3c3a8876a' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "read", [], []),
43
- '02fcea21-d3bb-4cda-8439-83d7adc0589e' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "query", [], []),
44
- 'a31214a3-8035-4108-9b3b-6e913b11c16a' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "update", [], []),
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
45
 
46
46
  }
47
47
 
48
48
  protected
49
49
 
50
- def self.getOperationConfig(uuid)
51
- if @__store.key?(uuid)
52
- return @__store[uuid]
50
+ def self.getOperationConfig(operationUUID)
51
+ if @__store.key?(operationUUID)
52
+ return @__store[operationUUID]
53
53
  end
54
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
54
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
55
55
  end
56
56
 
57
57
  def self.getOperationMetadata()
58
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
58
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
59
59
  end
60
60
 
61
61
  public
@@ -68,7 +68,7 @@ module MasterCard
68
68
  #@param Dict mapObj, containing the required parameters to create a new object
69
69
  #@return [ConsumerGovernmentID] of the response of created instance.
70
70
  #@raise [APIException] an exception from the response status
71
- return self.execute("1055efc4-6bd6-452c-8ced-75286c70d409", ConsumerGovernmentID.new(mapObj))
71
+ return self.execute("0e7a124a-42c5-41ad-b8b9-992aba858097", ConsumerGovernmentID.new(mapObj))
72
72
  end
73
73
 
74
74
 
@@ -101,7 +101,7 @@ module MasterCard
101
101
  end
102
102
  end
103
103
 
104
- return self.execute("1b0d922f-ec80-4ed7-857b-dc0f5c1c75b7", mapObj)
104
+ return self.execute("0c61d389-6600-4277-8666-fe2b4c93d31f", mapObj)
105
105
  end
106
106
 
107
107
 
@@ -114,7 +114,7 @@ module MasterCard
114
114
  #@raise [APIException] an exception from the response status
115
115
  #
116
116
 
117
- return self.class.execute("1b0d922f-ec80-4ed7-857b-dc0f5c1c75b7", self)
117
+ return self.class.execute("0c61d389-6600-4277-8666-fe2b4c93d31f", self)
118
118
  end
119
119
 
120
120
 
@@ -144,7 +144,7 @@ module MasterCard
144
144
  end
145
145
  end
146
146
 
147
- return self.execute("f9d8d117-d933-4176-8adb-8cb3c3a8876a",ConsumerGovernmentID.new(mapObj))
147
+ return self.execute("af9ad524-87db-44d2-9f53-e74739e912fa",ConsumerGovernmentID.new(mapObj))
148
148
  end
149
149
 
150
150
 
@@ -162,7 +162,7 @@ module MasterCard
162
162
  #@raise [APIException] an exception from the response status
163
163
  #
164
164
 
165
- return self.execute("02fcea21-d3bb-4cda-8439-83d7adc0589e",ConsumerGovernmentID.new(criteria))
165
+ return self.execute("3a83c575-acea-44a2-abfc-c0bd27a7c88f",ConsumerGovernmentID.new(criteria))
166
166
  end
167
167
 
168
168
 
@@ -174,7 +174,7 @@ module MasterCard
174
174
  #@return [ConsumerGovernmentID] object representing the response.
175
175
  #@raise [APIException] an exception from the response status
176
176
  #
177
- return self.class.execute("a31214a3-8035-4108-9b3b-6e913b11c16a",self)
177
+ return self.class.execute("9a36b3f9-301e-41f6-aff4-ad3f6b334b50",self)
178
178
  end
179
179
 
180
180
 
@@ -37,23 +37,23 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- 'd5f2ea17-e2f7-413a-9161-65980a8d6c2c' => OperationConfig.new("/send/v1/partners/{partnerId}/transfers/payment", "create", [], []),
41
- '849c0215-a9c0-474b-9265-d853c6b425a2' => OperationConfig.new("/send/v1/partners/{partnerId}/transfers/{transferId}", "read", [], []),
42
- '5fcef3bb-170a-4aaa-af4a-928a9ce857e6' => OperationConfig.new("/send/v1/partners/{partnerId}/transfers", "query", [], ["ref"]),
40
+ '917e705c-868d-431d-919d-cdf8eec46c7c' => OperationConfig.new("/send/v1/partners/{partnerId}/transfers/payment", "create", [], []),
41
+ '1523ec77-5aac-4db8-83bc-1c89cd5d2a2e' => OperationConfig.new("/send/v1/partners/{partnerId}/transfers/{transferId}", "read", [], []),
42
+ '5b098a7c-d14f-4f8e-904a-3efc37c7f1f3' => OperationConfig.new("/send/v1/partners/{partnerId}/transfers", "query", [], ["ref"]),
43
43
 
44
44
  }
45
45
 
46
46
  protected
47
47
 
48
- def self.getOperationConfig(uuid)
49
- if @__store.key?(uuid)
50
- return @__store[uuid]
48
+ def self.getOperationConfig(operationUUID)
49
+ if @__store.key?(operationUUID)
50
+ return @__store[operationUUID]
51
51
  end
52
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
52
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
53
53
  end
54
54
 
55
55
  def self.getOperationMetadata()
56
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
56
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
57
57
  end
58
58
 
59
59
  public
@@ -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("d5f2ea17-e2f7-413a-9161-65980a8d6c2c", PaymentTransfer.new(mapObj))
69
+ return self.execute("917e705c-868d-431d-919d-cdf8eec46c7c", 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("849c0215-a9c0-474b-9265-d853c6b425a2",PaymentTransfer.new(mapObj))
102
+ return self.execute("1523ec77-5aac-4db8-83bc-1c89cd5d2a2e",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("5fcef3bb-170a-4aaa-af4a-928a9ce857e6",PaymentTransfer.new(criteria))
120
+ return self.execute("5b098a7c-d14f-4f8e-904a-3efc37c7f1f3",PaymentTransfer.new(criteria))
121
121
  end
122
122
 
123
123
 
@@ -37,11 +37,9 @@ module MasterCard
37
37
  @@instance = nil
38
38
 
39
39
  def initialize
40
- @name = "p2p"
41
40
  @override = nil
42
41
  @host = nil
43
42
  @context = nil
44
- @version = "1.0.2"
45
43
 
46
44
  Config.registerResourceConfig(self)
47
45
  currentEnvironment = Config.getEnvironment()
@@ -56,7 +54,7 @@ module MasterCard
56
54
 
57
55
 
58
56
  def getName
59
- return @name
57
+ return "p2p"
60
58
  end
61
59
 
62
60
 
@@ -73,7 +71,15 @@ module MasterCard
73
71
  end
74
72
 
75
73
  def getVersion
76
- return @version
74
+ return "p2p:1.0.3"
75
+ end
76
+
77
+ def getJsonNative
78
+ return false
79
+ end
80
+
81
+ def getContentTypeOverride
82
+ return nil
77
83
  end
78
84
 
79
85
  def setEnvironment(environmet)
@@ -37,21 +37,21 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- 'bffec722-fbb9-4d5a-b439-e4b145e48c6d' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/sanction_screening", "update", [], []),
40
+ 'b5dcf9ff-5314-4a5f-90d6-99823be7fec3' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/sanction_screening", "update", [], []),
41
41
 
42
42
  }
43
43
 
44
44
  protected
45
45
 
46
- def self.getOperationConfig(uuid)
47
- if @__store.key?(uuid)
48
- return @__store[uuid]
46
+ def self.getOperationConfig(operationUUID)
47
+ if @__store.key?(operationUUID)
48
+ return @__store[operationUUID]
49
49
  end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
51
51
  end
52
52
 
53
53
  def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
55
55
  end
56
56
 
57
57
  public
@@ -65,7 +65,7 @@ module MasterCard
65
65
  #@return [SanctionScreening] object representing the response.
66
66
  #@raise [APIException] an exception from the response status
67
67
  #
68
- return self.class.execute("bffec722-fbb9-4d5a-b439-e4b145e48c6d",self)
68
+ return self.class.execute("b5dcf9ff-5314-4a5f-90d6-99823be7fec3",self)
69
69
  end
70
70
 
71
71
 
@@ -0,0 +1,86 @@
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 TransferNotification < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '77f61848-ea17-4b8f-be55-077ff0691bd4' => OperationConfig.new("/inbound/notification/v1/", "create", [], []),
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
+ def self.notification(mapObj)
61
+ #
62
+ #Creates object of type TransferNotification
63
+ #
64
+ #@param Dict mapObj, containing the required parameters to create a new object
65
+ #@return [TransferNotification] of the response of created instance.
66
+ #@raise [APIException] an exception from the response status
67
+ return self.execute("77f61848-ea17-4b8f-be55-077ff0691bd4", TransferNotification.new(mapObj))
68
+ end
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+ end
77
+ end
78
+ end
79
+ end
80
+
81
+
82
+
83
+
84
+
85
+
86
+
@@ -3,6 +3,7 @@ require 'mastercard_api_core'
3
3
  require 'mastercard/api/p2p/resourceconfig'
4
4
 
5
5
  require 'mastercard/api/p2p/accountinfo'
6
+ require 'mastercard/api/p2p/accountmapping'
6
7
  require 'mastercard/api/p2p/accountverification'
7
8
  require 'mastercard/api/p2p/consumer'
8
9
  require 'mastercard/api/p2p/consumeraccount'
@@ -10,3 +11,4 @@ require 'mastercard/api/p2p/consumercontactid'
10
11
  require 'mastercard/api/p2p/consumergovernmentid'
11
12
  require 'mastercard/api/p2p/paymenttransfer'
12
13
  require 'mastercard/api/p2p/sanctionscreening'
14
+ 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.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - MasterCard Worldwide
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-06 00:00:00.000000000 Z
11
+ date: 2018-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mastercard_api_core
@@ -52,6 +52,7 @@ extensions: []
52
52
  extra_rdoc_files: []
53
53
  files:
54
54
  - lib/mastercard/api/p2p/accountinfo.rb
55
+ - lib/mastercard/api/p2p/accountmapping.rb
55
56
  - lib/mastercard/api/p2p/accountverification.rb
56
57
  - lib/mastercard/api/p2p/consumer.rb
57
58
  - lib/mastercard/api/p2p/consumeraccount.rb
@@ -60,6 +61,7 @@ files:
60
61
  - lib/mastercard/api/p2p/paymenttransfer.rb
61
62
  - lib/mastercard/api/p2p/resourceconfig.rb
62
63
  - lib/mastercard/api/p2p/sanctionscreening.rb
64
+ - lib/mastercard/api/p2p/transfernotification.rb
63
65
  - lib/mastercard_p2p.rb
64
66
  homepage: https://developer.mastercard.com
65
67
  licenses: