mastercard_disbursements 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: cf91e1ff478d38d22b718dd8a4263650ac5888d8
4
- data.tar.gz: b763f9fbc10ee005dddd4fece62f08aeeef75c57
3
+ metadata.gz: c0e3d13777be969ecd43716c0290bbd494a17079
4
+ data.tar.gz: a4f8b0b8a8be4101ad2f531b73c95a22268456ae
5
5
  SHA512:
6
- metadata.gz: d7daae4bd44dc24bb6f0321a0061ef582094df8c7d7dc96d32e3541447b5923a418d90a02e0d978457d30e561b44b4c3bcf1a2f5f071dcab5fa37418c29c51d9
7
- data.tar.gz: b756a49fa06f54b9027ee5856c4f804f34ad88a1e04b780da6f08882b0ac7d9b07fef33b59b058c08024267c064ae25099c168e82a27c8f1546541355c9d267a
6
+ metadata.gz: 5133fef1fb262614ee119440c54bda5c9b0fd6d60975ca1e8ca5cb431312838522a14a03d2fe267ee38b875fcb442b5e83cf2b773636f21d0b50af2db2c07c3f
7
+ data.tar.gz: bc7a71677d5b195639765ab8aaea7e8f7118f1bcb1f9ca4bddf724fcbd8962264561bf91bdc96ceba5661ba3d101ecfae38b9e18f49154ba87073e4a0b0bf3ae
@@ -37,21 +37,21 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '127350c6-92c0-4fc7-b0fd-3cf472280ba4' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-info", "update", [], ["fields"]),
40
+ 'e827096e-9bc1-4cfe-8b8d-825ea07fb880' => 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("127350c6-92c0-4fc7-b0fd-3cf472280ba4",self)
68
+ return self.class.execute("e827096e-9bc1-4cfe-8b8d-825ea07fb880",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 Disbursements
35
+ class AccountMapping < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '7e8cd3bf-bfed-468f-93a9-87d73ddfa6c7' => 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("7e8cd3bf-bfed-468f-93a9-87d73ddfa6c7",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
- '9ef8f344-e16a-4bda-96ab-7dd1afcf3726' => OperationConfig.new("/send/v1/partners/{partnerId}/accounts/account-verification", "create", [], []),
40
+ '8531deb8-f263-4b51-b77c-1097f93ccbc1' => 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("9ef8f344-e16a-4bda-96ab-7dd1afcf3726", AccountVerification.new(mapObj))
67
+ return self.execute("8531deb8-f263-4b51-b77c-1097f93ccbc1", AccountVerification.new(mapObj))
68
68
  end
69
69
 
70
70
 
@@ -37,26 +37,26 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '99e62c50-1f23-4ba4-b3d1-b89339d53b08' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "delete", [], []),
41
- 'b7812ffb-944e-40cb-a4df-fa1301664cf4' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "create", [], []),
42
- '6073cbfb-e0df-4c0e-b219-71f11c696821' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "read", [], []),
43
- '1622b775-c178-41b4-aa0d-02aea0c0763b' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "query", [], ["ref","contact_id_uri"]),
44
- '285f9d99-8769-42dd-98ca-1e4ba84ccb77' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/search", "create", [], []),
45
- '8a96df09-fe68-4508-ae39-c8304867dff2' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "update", [], []),
40
+ 'c28e6bb0-6c64-4f22-aec6-f3f0df1a0d1d' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "delete", [], []),
41
+ '56ed5e9d-3d71-4c72-afc6-e0d967911b9b' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "create", [], []),
42
+ 'c20b2420-4127-43c9-a11a-25ee2782ddf5' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}", "read", [], []),
43
+ '00aca266-3e86-4295-b8d6-473dfb0b4bbe' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers", "query", [], ["ref","contact_id_uri"]),
44
+ '0b6a7b34-25c4-4cd8-ae68-009819793ed8' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/search", "create", [], []),
45
+ '949b8430-dd0f-43ce-b24b-0375505d79ea' => 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("99e62c50-1f23-4ba4-b3d1-b89339d53b08", mapObj)
89
+ return self.execute("c28e6bb0-6c64-4f22-aec6-f3f0df1a0d1d", 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("99e62c50-1f23-4ba4-b3d1-b89339d53b08", self)
102
+ return self.class.execute("c28e6bb0-6c64-4f22-aec6-f3f0df1a0d1d", 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("b7812ffb-944e-40cb-a4df-fa1301664cf4", Consumer.new(mapObj))
115
+ return self.execute("56ed5e9d-3d71-4c72-afc6-e0d967911b9b", 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("6073cbfb-e0df-4c0e-b219-71f11c696821",Consumer.new(mapObj))
148
+ return self.execute("c20b2420-4127-43c9-a11a-25ee2782ddf5",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("1622b775-c178-41b4-aa0d-02aea0c0763b",Consumer.new(criteria))
166
+ return self.execute("00aca266-3e86-4295-b8d6-473dfb0b4bbe",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("285f9d99-8769-42dd-98ca-1e4ba84ccb77", Consumer.new(mapObj))
177
+ return self.execute("0b6a7b34-25c4-4cd8-ae68-009819793ed8", 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("8a96df09-fe68-4508-ae39-c8304867dff2",self)
194
+ return self.class.execute("949b8430-dd0f-43ce-b24b-0375505d79ea",self)
195
195
  end
196
196
 
197
197
 
@@ -37,25 +37,25 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '8cd0a6ea-c91d-4a04-999e-5ffb385c6dce' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts", "create", [], []),
41
- '9eaddcd7-7da6-4b89-84a3-afc68011d43f' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "delete", [], []),
42
- 'af0e8c6a-7004-4ca4-9a84-be841d40267a' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "read", [], []),
43
- '71f00d03-b746-445a-8573-03dd8d7721eb' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts", "query", [], ["ref"]),
44
- '394a7807-b3dd-47a2-8b01-706a68e64361' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "update", [], []),
40
+ '53cfbdfc-0bff-4127-ba72-734a8abaf04a' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts", "create", [], []),
41
+ 'f1dc9317-0579-4138-81ca-501004ad4d5b' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "delete", [], []),
42
+ 'e4104658-0f01-4c02-9094-572e17f28522' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts/{accountId}", "read", [], []),
43
+ '23b7f267-0f9e-49d7-b3ca-8bbe14ac8292' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/accounts", "query", [], ["ref"]),
44
+ '1a469a14-dcd8-4c83-86e8-b617cfcc09c5' => 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("8cd0a6ea-c91d-4a04-999e-5ffb385c6dce", ConsumerAccount.new(mapObj))
71
+ return self.execute("53cfbdfc-0bff-4127-ba72-734a8abaf04a", 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("9eaddcd7-7da6-4b89-84a3-afc68011d43f", mapObj)
104
+ return self.execute("f1dc9317-0579-4138-81ca-501004ad4d5b", 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("9eaddcd7-7da6-4b89-84a3-afc68011d43f", self)
117
+ return self.class.execute("f1dc9317-0579-4138-81ca-501004ad4d5b", 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("af0e8c6a-7004-4ca4-9a84-be841d40267a",ConsumerAccount.new(mapObj))
147
+ return self.execute("e4104658-0f01-4c02-9094-572e17f28522",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("71f00d03-b746-445a-8573-03dd8d7721eb",ConsumerAccount.new(criteria))
165
+ return self.execute("23b7f267-0f9e-49d7-b3ca-8bbe14ac8292",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("394a7807-b3dd-47a2-8b01-706a68e64361",self)
177
+ return self.class.execute("1a469a14-dcd8-4c83-86e8-b617cfcc09c5",self)
178
178
  end
179
179
 
180
180
 
@@ -37,25 +37,25 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- 'a79a7108-2aaa-49ec-a1fc-522692aa26fa' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "create", [], []),
41
- '9a725e0f-7d57-48d6-81b7-b93adb5e892f' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "delete", [], []),
42
- 'a6479c2b-125c-45cb-a9f7-cdc7036aa684' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "read", [], []),
43
- 'dfbec1bd-8c95-4f8a-a16c-c206183c3303' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids", "query", [], []),
44
- 'cb653a60-ee8a-40ce-9a39-04b25451103d' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/contact_ids/{contactId}", "update", [], []),
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
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("a79a7108-2aaa-49ec-a1fc-522692aa26fa", ConsumerContactID.new(mapObj))
71
+ return self.execute("6b93825e-12e3-43a6-83b1-4e3c095e8869", 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("9a725e0f-7d57-48d6-81b7-b93adb5e892f", mapObj)
104
+ return self.execute("aaaf709d-e0b1-41cb-824c-4a281ed3e2a1", 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("9a725e0f-7d57-48d6-81b7-b93adb5e892f", self)
117
+ return self.class.execute("aaaf709d-e0b1-41cb-824c-4a281ed3e2a1", 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("a6479c2b-125c-45cb-a9f7-cdc7036aa684",ConsumerContactID.new(mapObj))
147
+ return self.execute("5e2dab8b-62fe-4870-b2bc-80ac9338f12b",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("dfbec1bd-8c95-4f8a-a16c-c206183c3303",ConsumerContactID.new(criteria))
165
+ return self.execute("349fe6e4-9fac-4699-8a49-b3b0b71d716e",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("cb653a60-ee8a-40ce-9a39-04b25451103d",self)
177
+ return self.class.execute("5d6ba530-fc75-4340-a1b7-14481ac7bda2",self)
178
178
  end
179
179
 
180
180
 
@@ -37,25 +37,25 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '1c904963-a9df-4daa-a7a5-172c0a2e6b51' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "create", [], []),
41
- '314ec10c-9d00-449b-9f7a-bad8613a6bd9' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "delete", [], []),
42
- 'e7ac264d-d154-4175-a924-0d9633830b2c' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "read", [], []),
43
- '7941740b-0803-49ac-a43c-fb67ecda598c' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids", "query", [], []),
44
- '47912913-8107-4bbc-a065-5e56d36093f5' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/{consumerId}/government_ids/{governmentId}", "update", [], []),
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
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("1c904963-a9df-4daa-a7a5-172c0a2e6b51", ConsumerGovernmentID.new(mapObj))
71
+ return self.execute("e33a52f4-e4eb-4fc0-b4b0-7fb8e021306d", 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("314ec10c-9d00-449b-9f7a-bad8613a6bd9", mapObj)
104
+ return self.execute("e50fd87c-8501-429b-96a2-bc8757935b68", 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("314ec10c-9d00-449b-9f7a-bad8613a6bd9", self)
117
+ return self.class.execute("e50fd87c-8501-429b-96a2-bc8757935b68", 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("e7ac264d-d154-4175-a924-0d9633830b2c",ConsumerGovernmentID.new(mapObj))
147
+ return self.execute("9eef4206-aa8d-408e-9a37-caa7f1fb212f",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("7941740b-0803-49ac-a43c-fb67ecda598c",ConsumerGovernmentID.new(criteria))
165
+ return self.execute("69f2b0cc-4221-4d14-b662-db3372014e6a",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("47912913-8107-4bbc-a065-5e56d36093f5",self)
177
+ return self.class.execute("f848b479-604a-40c6-adb0-a4f670ea9ac5",self)
178
178
  end
179
179
 
180
180
 
@@ -37,23 +37,23 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- 'bda864ab-2b59-4d84-ba0e-4d002d15391a' => OperationConfig.new("/send/v1/partners/{partnerId}/disbursements/{disbursementId}", "read", [], []),
41
- 'a80135d7-2dd4-485e-8b68-7c4cfa68cb24' => OperationConfig.new("/send/v1/partners/{partnerId}/disbursements", "query", [], ["ref"]),
42
- '85609841-3f38-4b3d-b817-7ecd3baaafbb' => OperationConfig.new("/send/v1/partners/{partnerId}/disbursements/payment", "create", [], []),
40
+ '2e679cff-6236-42c9-a090-94dcd4479110' => OperationConfig.new("/send/v1/partners/{partnerId}/disbursements/{disbursementId}", "read", [], []),
41
+ '43553e24-cce8-419c-9989-68f6de68d7c8' => OperationConfig.new("/send/v1/partners/{partnerId}/disbursements", "query", [], ["ref"]),
42
+ 'bbfba47c-9f46-48c7-874f-63957645e5bd' => OperationConfig.new("/send/v1/partners/{partnerId}/disbursements/payment", "create", [], []),
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
@@ -83,7 +83,7 @@ module MasterCard
83
83
  end
84
84
  end
85
85
 
86
- return self.execute("bda864ab-2b59-4d84-ba0e-4d002d15391a",Disbursement.new(mapObj))
86
+ return self.execute("2e679cff-6236-42c9-a090-94dcd4479110",Disbursement.new(mapObj))
87
87
  end
88
88
 
89
89
 
@@ -101,7 +101,7 @@ module MasterCard
101
101
  #@raise [APIException] an exception from the response status
102
102
  #
103
103
 
104
- return self.execute("a80135d7-2dd4-485e-8b68-7c4cfa68cb24",Disbursement.new(criteria))
104
+ return self.execute("43553e24-cce8-419c-9989-68f6de68d7c8",Disbursement.new(criteria))
105
105
  end
106
106
 
107
107
 
@@ -112,7 +112,7 @@ module MasterCard
112
112
  #@param Dict mapObj, containing the required parameters to create a new object
113
113
  #@return [Disbursement] of the response of created instance.
114
114
  #@raise [APIException] an exception from the response status
115
- return self.execute("85609841-3f38-4b3d-b817-7ecd3baaafbb", Disbursement.new(mapObj))
115
+ return self.execute("bbfba47c-9f46-48c7-874f-63957645e5bd", Disbursement.new(mapObj))
116
116
  end
117
117
 
118
118
 
@@ -37,11 +37,9 @@ module MasterCard
37
37
  @@instance = nil
38
38
 
39
39
  def initialize
40
- @name = "disbursements"
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 "disbursements"
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 "disbursements: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
- '11c9d46d-f0cb-4839-a3ea-a106afce08bd' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/sanction_screening", "update", [], []),
40
+ '27ae961e-35c9-4d70-a014-c97f0d1a6c84' => 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("11c9d46d-f0cb-4839-a3ea-a106afce08bd",self)
68
+ return self.class.execute("27ae961e-35c9-4d70-a014-c97f0d1a6c84",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 Disbursements
35
+ class TransferNotification < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ 'c59e9936-fc42-4152-98c4-903c11e4f6b4' => 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("c59e9936-fc42-4152-98c4-903c11e4f6b4", 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/disbursements/resourceconfig'
4
4
 
5
5
  require 'mastercard/api/disbursements/accountinfo'
6
+ require 'mastercard/api/disbursements/accountmapping'
6
7
  require 'mastercard/api/disbursements/accountverification'
7
8
  require 'mastercard/api/disbursements/consumer'
8
9
  require 'mastercard/api/disbursements/consumeraccount'
@@ -10,3 +11,4 @@ require 'mastercard/api/disbursements/consumercontactid'
10
11
  require 'mastercard/api/disbursements/consumergovernmentid'
11
12
  require 'mastercard/api/disbursements/disbursement'
12
13
  require 'mastercard/api/disbursements/sanctionscreening'
14
+ require 'mastercard/api/disbursements/transfernotification'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastercard_disbursements
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/disbursements/accountinfo.rb
55
+ - lib/mastercard/api/disbursements/accountmapping.rb
55
56
  - lib/mastercard/api/disbursements/accountverification.rb
56
57
  - lib/mastercard/api/disbursements/consumer.rb
57
58
  - lib/mastercard/api/disbursements/consumeraccount.rb
@@ -60,6 +61,7 @@ files:
60
61
  - lib/mastercard/api/disbursements/disbursement.rb
61
62
  - lib/mastercard/api/disbursements/resourceconfig.rb
62
63
  - lib/mastercard/api/disbursements/sanctionscreening.rb
64
+ - lib/mastercard/api/disbursements/transfernotification.rb
63
65
  - lib/mastercard_disbursements.rb
64
66
  homepage: https://developer.mastercard.com
65
67
  licenses: