mastercard_p2m 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2467281e68870bb88616ad6d89c4754e2e5e3877
4
- data.tar.gz: 53b20759b6ae27edff39f56c9062acec61e42713
2
+ SHA256:
3
+ metadata.gz: 27b9f58fa5fd90255446be74b17ad2c4be0838343f6fc9cbd6324e26b05f4049
4
+ data.tar.gz: 2daae9565a85100ab69d93bbc89e225f9cb0509e864586ad2cd25adeb28d2699
5
5
  SHA512:
6
- metadata.gz: 61426841fe426cc32c2ffb9887821126beb2af79c250c221bf94a392e3c82cbf0f0d88a4edcdc945a2bbc9c08e87afd0517e81f7dda396fc3d4129e1a48deac8
7
- data.tar.gz: 822b3bb58025e0e4e51ec7ebbe15ad15d66c54639e062e2d8e7de79257f047649a7f3b7431b8e712f97f24d38ac8a48770bb2144db5c38e84e3327066a6d3207
6
+ metadata.gz: d7bbe65e3cb8d30b479efe327f5281f53a541d896e06db74f267fffd67c7c7ff17d0cb20d635bb84a3376a64146233f814c3f052c775a30ce2a955546c6be864
7
+ data.tar.gz: 350d7d10584753441d7ff59d032190dbf55e035c056c0ee606ef16d6fade913f47639a3dbfc922ea193e922f7b60e639d7c50cf0732a0c1e361a3d3b9a73acea
@@ -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 P2m
35
+ class DigitalAccountReferenceNumber < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '493f4d25-3cd7-4ee4-907c-4941a684ea35' => OperationConfig.new("/send/v1/{partnerId}/digital-account", "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.create(mapObj)
61
+ #
62
+ #Creates object of type DigitalAccountReferenceNumber
63
+ #
64
+ #@param Dict mapObj, containing the required parameters to create a new object
65
+ #@return [DigitalAccountReferenceNumber] of the response of created instance.
66
+ #@raise [APIException] an exception from the response status
67
+ return self.execute("493f4d25-3cd7-4ee4-907c-4941a684ea35", DigitalAccountReferenceNumber.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
+
@@ -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 P2m
35
+ class DigitalAccountReferenceNumberRetrieval < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '60356e64-ae69-4d66-bc8f-3664ef4eebaf' => OperationConfig.new("/send/v1/{partnerId}/digital-account/search", "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.read(mapObj)
61
+ #
62
+ #Creates object of type DigitalAccountReferenceNumberRetrieval
63
+ #
64
+ #@param Dict mapObj, containing the required parameters to create a new object
65
+ #@return [DigitalAccountReferenceNumberRetrieval] of the response of created instance.
66
+ #@raise [APIException] an exception from the response status
67
+ return self.execute("60356e64-ae69-4d66-bc8f-3664ef4eebaf", DigitalAccountReferenceNumberRetrieval.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
+
@@ -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 P2m
35
+ class MerchantFunding < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ 'c63e0270-2760-4b53-8d84-292c0661bfc7' => OperationConfig.new("/send/v1/partners/{partnerId}/transfers/funding", "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.create(mapObj)
61
+ #
62
+ #Creates object of type MerchantFunding
63
+ #
64
+ #@param Dict mapObj, containing the required parameters to create a new object
65
+ #@return [MerchantFunding] of the response of created instance.
66
+ #@raise [APIException] an exception from the response status
67
+ return self.execute("c63e0270-2760-4b53-8d84-292c0661bfc7", MerchantFunding.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
+
@@ -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 P2m
35
+ class MerchantRefund < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '1a550d57-f210-44a8-85f5-89c88f3207f5' => OperationConfig.new("/send/#env/v1/partners/{partnerId}/merchant/transfers/refund", "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.create(mapObj)
61
+ #
62
+ #Creates object of type MerchantRefund
63
+ #
64
+ #@param Dict mapObj, containing the required parameters to create a new object
65
+ #@return [MerchantRefund] of the response of created instance.
66
+ #@raise [APIException] an exception from the response status
67
+ return self.execute("1a550d57-f210-44a8-85f5-89c88f3207f5", MerchantRefund.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
+
@@ -30,60 +30,60 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module P2m
35
- class MerchantRetrieval < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module P2m
35
+ class MerchantRetrieval < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '4d0fda90-791e-43b3-8808-4644fc489f9b' => OperationConfig.new("/send/#env/v1/partners/{partnerId}/merchant/transfers/{transferId}", "read", [], []),
41
- '2ba0ec7b-459f-4083-8dc1-69206b07de7c' => OperationConfig.new("/send/#env/v1/partners/{partnerId}/merchant/transfers", "query", [], ["ref"]),
42
-
43
- }
39
+ @__store = {
40
+ '08872ed6-36e8-41f9-a85f-bdc50d9b79e3' => OperationConfig.new("/send/#env/v1/partners/{partnerId}/merchant/transfers/{transferId}", "read", [], []),
41
+ '542ee49a-07f8-4f5a-8f53-05a64e66f8de' => OperationConfig.new("/send/#env/v1/partners/{partnerId}/merchant/transfers", "query", [], ["ref"]),
42
+
43
+ }
44
44
 
45
- protected
45
+ protected
46
46
 
47
- def self.getOperationConfig(uuid)
48
- if @__store.key?(uuid)
49
- return @__store[uuid]
50
- end
51
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
52
- end
47
+ def self.getOperationConfig(operationUUID)
48
+ if @__store.key?(operationUUID)
49
+ return @__store[operationUUID]
50
+ end
51
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
52
+ end
53
53
 
54
- def self.getOperationMetadata()
55
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
56
- end
54
+ def self.getOperationMetadata()
55
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
56
+ end
57
57
 
58
- public
58
+ public
59
59
 
60
60
 
61
61
 
62
62
 
63
63
 
64
64
 
65
- def self.readByID(id, criteria = nil)
66
- #
67
- #Returns objects of type MerchantRetrieval by id and optional criteria
68
- #@param [String] id
69
- #@param [Dict] criteria
70
- #@return [MerchantRetrieval] object representing the response
71
- #@raise [APIException] an exception from the response status
65
+ def self.readByID(id, criteria = nil)
66
+ #
67
+ #Returns objects of type MerchantRetrieval by id and optional criteria
68
+ #@param [String] id
69
+ #@param [Dict] criteria
70
+ #@return [MerchantRetrieval] object representing the response
71
+ #@raise [APIException] an exception from the response status
72
72
 
73
- mapObj = MerchantRetrieval.new
74
- if !(id.nil? || id.to_s.empty?)
75
- mapObj.set("id", id)
76
- end
77
- if !criteria.nil?
78
- if criteria.instance_of? RequestMap
79
- mapObj.setAll(criteria.getObject())
80
- else
81
- mapObj.setAll(criteria)
82
- end
83
- end
73
+ mapObj = MerchantRetrieval.new
74
+ if !(id.nil? || id.to_s.empty?)
75
+ mapObj.set("id", id)
76
+ end
77
+ if !criteria.nil?
78
+ if criteria.instance_of? RequestMap
79
+ mapObj.setAll(criteria.getObject())
80
+ else
81
+ mapObj.setAll(criteria)
82
+ end
83
+ end
84
84
 
85
- return self.execute("4d0fda90-791e-43b3-8808-4644fc489f9b",MerchantRetrieval.new(mapObj))
86
- end
85
+ return self.execute("08872ed6-36e8-41f9-a85f-bdc50d9b79e3",MerchantRetrieval.new(mapObj))
86
+ end
87
87
 
88
88
 
89
89
 
@@ -92,21 +92,21 @@ module MasterCard
92
92
 
93
93
 
94
94
 
95
- def self.readByReference(criteria)
96
- #
97
- #Query objects of type MerchantRetrieval by id and optional criteria
98
- #@param [Dict] criteria
99
- #@return [MerchantRetrieval] object representing the response.
100
- #@raise [APIException] an exception from the response status
101
- #
95
+ def self.readByReference(criteria)
96
+ #
97
+ #Query objects of type MerchantRetrieval by id and optional criteria
98
+ #@param [Dict] criteria
99
+ #@return [MerchantRetrieval] object representing the response.
100
+ #@raise [APIException] an exception from the response status
101
+ #
102
102
 
103
- return self.execute("2ba0ec7b-459f-4083-8dc1-69206b07de7c",MerchantRetrieval.new(criteria))
104
- end
103
+ return self.execute("542ee49a-07f8-4f5a-8f53-05a64e66f8de",MerchantRetrieval.new(criteria))
104
+ end
105
105
 
106
106
 
107
- end
108
- end
109
- end
107
+ end
108
+ end
109
+ end
110
110
  end
111
111
 
112
112
 
@@ -30,42 +30,42 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module P2m
35
- class MerchantTransferFundingAndPayment < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module P2m
35
+ class MerchantTransferFundingAndPayment < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '1b75c4e6-e730-4d0d-bde8-ecc07f3df9a3' => OperationConfig.new("/send/#env/v1/partners/{partnerId}/merchant/transfer", "create", [], []),
41
-
42
- }
39
+ @__store = {
40
+ 'b14f46b5-0083-4526-9514-acb02724b73c' => OperationConfig.new("/send/#env/v1/partners/{partnerId}/merchant/transfer", "create", [], []),
41
+
42
+ }
43
43
 
44
- protected
44
+ protected
45
45
 
46
- def self.getOperationConfig(uuid)
47
- if @__store.key?(uuid)
48
- return @__store[uuid]
49
- end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
51
- end
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
52
 
53
- def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
55
- end
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
56
 
57
- public
57
+ public
58
58
 
59
59
 
60
- def self.create(mapObj)
61
- #
62
- #Creates object of type MerchantTransferFundingAndPayment
63
- #
64
- #@param Dict mapObj, containing the required parameters to create a new object
65
- #@return [MerchantTransferFundingAndPayment] of the response of created instance.
66
- #@raise [APIException] an exception from the response status
67
- return self.execute("1b75c4e6-e730-4d0d-bde8-ecc07f3df9a3", MerchantTransferFundingAndPayment.new(mapObj))
68
- end
60
+ def self.create(mapObj)
61
+ #
62
+ #Creates object of type MerchantTransferFundingAndPayment
63
+ #
64
+ #@param Dict mapObj, containing the required parameters to create a new object
65
+ #@return [MerchantTransferFundingAndPayment] of the response of created instance.
66
+ #@raise [APIException] an exception from the response status
67
+ return self.execute("b14f46b5-0083-4526-9514-acb02724b73c", MerchantTransferFundingAndPayment.new(mapObj))
68
+ end
69
69
 
70
70
 
71
71
 
@@ -73,9 +73,9 @@ module MasterCard
73
73
 
74
74
 
75
75
 
76
- end
77
- end
78
- end
76
+ end
77
+ end
78
+ end
79
79
  end
80
80
 
81
81
 
@@ -30,42 +30,42 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module P2m
35
- class MerchantTransferPayment < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module P2m
35
+ class MerchantTransferPayment < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- 'b8076dab-3387-4248-9b75-f94afac020ce' => OperationConfig.new("/send/#env/v1/partners/{partnerId}/merchant/transfers/payment", "create", [], []),
41
-
42
- }
39
+ @__store = {
40
+ 'bb6d50e5-41c2-4366-b39f-d028f6225b2d' => OperationConfig.new("/send/#env/v1/partners/{partnerId}/merchant/transfers/payment", "create", [], []),
41
+
42
+ }
43
43
 
44
- protected
44
+ protected
45
45
 
46
- def self.getOperationConfig(uuid)
47
- if @__store.key?(uuid)
48
- return @__store[uuid]
49
- end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
51
- end
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
52
 
53
- def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
55
- end
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
56
 
57
- public
57
+ public
58
58
 
59
59
 
60
- def self.create(mapObj)
61
- #
62
- #Creates object of type MerchantTransferPayment
63
- #
64
- #@param Dict mapObj, containing the required parameters to create a new object
65
- #@return [MerchantTransferPayment] of the response of created instance.
66
- #@raise [APIException] an exception from the response status
67
- return self.execute("b8076dab-3387-4248-9b75-f94afac020ce", MerchantTransferPayment.new(mapObj))
68
- end
60
+ def self.create(mapObj)
61
+ #
62
+ #Creates object of type MerchantTransferPayment
63
+ #
64
+ #@param Dict mapObj, containing the required parameters to create a new object
65
+ #@return [MerchantTransferPayment] of the response of created instance.
66
+ #@raise [APIException] an exception from the response status
67
+ return self.execute("bb6d50e5-41c2-4366-b39f-d028f6225b2d", MerchantTransferPayment.new(mapObj))
68
+ end
69
69
 
70
70
 
71
71
 
@@ -73,9 +73,9 @@ module MasterCard
73
73
 
74
74
 
75
75
 
76
- end
77
- end
78
- end
76
+ end
77
+ end
78
+ end
79
79
  end
80
80
 
81
81
 
@@ -29,75 +29,76 @@ require "mastercard/core/constants"
29
29
  require "mastercard/core/config"
30
30
 
31
31
  module MasterCard
32
- module API
33
- module P2m
34
- class ResourceConfig
35
- include MasterCard::Core
32
+ module API
33
+ module P2m
34
+ class ResourceConfig
35
+ include MasterCard::Core
36
36
 
37
- @@instance = nil
37
+ @@instance = nil
38
38
 
39
- def initialize
40
- @name = "p2m"
41
- @override = nil
42
- @host = nil
43
- @context = nil
44
- @version = "p2m:1.0.2"
45
- @jsonNative = true
39
+ def initialize
40
+ @override = nil
41
+ @host = nil
42
+ @context = nil
46
43
 
47
- Config.registerResourceConfig(self)
48
- currentEnvironment = Config.getEnvironment()
49
- self.setEnvironment(currentEnvironment)
44
+ Config.registerResourceConfig(self)
45
+ currentEnvironment = Config.getEnvironment()
46
+ self.setEnvironment(currentEnvironment)
50
47
 
51
- end
48
+ end
52
49
 
53
50
 
54
- def self.instance
55
- return @@instance
56
- end
51
+ def self.instance
52
+ return @@instance
53
+ end
57
54
 
58
55
 
59
- def getName
60
- return @name
61
- end
56
+ def getName
57
+ return "p2m"
58
+ end
62
59
 
63
60
 
64
- def getHost
65
- unless @override.nil? || @override == 0
66
- return @override
67
- else
68
- return @host
69
- end
70
- end
61
+ def getHost
62
+ unless @override.nil? || @override == 0
63
+ return @override
64
+ else
65
+ return @host
66
+ end
67
+ end
71
68
 
72
- def getContext
73
- return @context
74
- end
69
+ def getContext
70
+ return @context
71
+ end
75
72
 
76
- def getVersion
77
- return @version
78
- end
73
+ def getVersion
74
+ return "p2m:1.0.3"
75
+ end
79
76
 
80
- def getJsonNative
81
- return @jsonNative
82
- end
77
+ def getJsonNative
78
+ return false
79
+ end
83
80
 
84
- def setEnvironment(environmet)
85
- if Environment::MAPPING.key?(environmet)
86
- tuple = Environment::MAPPING[environmet]
87
- @host = tuple[0]
88
- @context = tuple[1]
89
- end
90
- end
81
+ def getContentTypeOverride
82
+ return nil
83
+ end
91
84
 
92
- def setCustomEnvironment(host,context)
93
- @host = host
94
- @context = context
95
- end
85
+ def setEnvironment(environmet)
86
+ if Environment::MAPPING.key?(environmet)
87
+ tuple = Environment::MAPPING[environmet]
88
+ @host = tuple[0]
89
+ @context = tuple[1]
90
+ end
91
+ end
96
92
 
97
- @@instance = ResourceConfig.new
93
+ def setCustomEnvironment(host,context)
94
+ @host = host
95
+ @context = context
96
+ end
98
97
 
99
- private_class_method :new
100
- end
101
- end
102
- end
98
+ @@instance = ResourceConfig.new
99
+
100
+ private_class_method :new
101
+ end
102
+ end
103
+ end
103
104
  end
@@ -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 P2m
35
+ class TestPaymentNotification < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ 'b9a85fa8-dcb5-42f2-836d-140ea6b9792e' => OperationConfig.new("/send/v1/partners/{partnerId}/events/generate/payment", "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.create(mapObj)
61
+ #
62
+ #Creates object of type TestPaymentNotification
63
+ #
64
+ #@param Dict mapObj, containing the required parameters to create a new object
65
+ #@return [TestPaymentNotification] of the response of created instance.
66
+ #@raise [APIException] an exception from the response status
67
+ return self.execute("b9a85fa8-dcb5-42f2-836d-140ea6b9792e", TestPaymentNotification.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
+
@@ -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 P2m
35
+ class TestRefundNotification < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ 'c8273763-41a7-4955-832d-88445573e8b9' => OperationConfig.new("/send/v1/partners/{partnerId}/events/generate/refund", "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.create(mapObj)
61
+ #
62
+ #Creates object of type TestRefundNotification
63
+ #
64
+ #@param Dict mapObj, containing the required parameters to create a new object
65
+ #@return [TestRefundNotification] of the response of created instance.
66
+ #@raise [APIException] an exception from the response status
67
+ return self.execute("c8273763-41a7-4955-832d-88445573e8b9", TestRefundNotification.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
+
@@ -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 P2m
35
+ class TransferNotification < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '954dc86b-bc63-4c99-b613-1ab066665962' => 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("954dc86b-bc63-4c99-b613-1ab066665962", 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
+
@@ -0,0 +1,138 @@
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 P2m
35
+ class TransferNotificationRegistration < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '118976ee-b6a8-42de-8183-6b4631fd241a' => OperationConfig.new("/send/v1/partners/{partnerId}/notification-registries/pan", "create", [], []),
41
+ '8375efb7-6a71-4d51-9e62-3c4127cb8ec4' => OperationConfig.new("/send/v1/partners/{partnerId}/notification-registries/pan ", "create", [], []),
42
+ 'b2384957-a347-4e1a-b1be-e0d01538dce6' => OperationConfig.new("/send/v1/partners/{partnerId}/notification-registries/readbypan", "create", [], []),
43
+ '62d1190e-5309-4eeb-a773-c2018ff36bc3' => OperationConfig.new("/send/v1/partners/{partnerId}/notification-registries/pan", "update", [], []),
44
+
45
+ }
46
+
47
+ protected
48
+
49
+ def self.getOperationConfig(operationUUID)
50
+ if @__store.key?(operationUUID)
51
+ return @__store[operationUUID]
52
+ end
53
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
54
+ end
55
+
56
+ def self.getOperationMetadata()
57
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
58
+ end
59
+
60
+ public
61
+
62
+
63
+ def self.create(mapObj)
64
+ #
65
+ #Creates object of type TransferNotificationRegistration
66
+ #
67
+ #@param Dict mapObj, containing the required parameters to create a new object
68
+ #@return [TransferNotificationRegistration] of the response of created instance.
69
+ #@raise [APIException] an exception from the response status
70
+ return self.execute("118976ee-b6a8-42de-8183-6b4631fd241a", TransferNotificationRegistration.new(mapObj))
71
+ end
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+ def self.delete(mapObj)
80
+ #
81
+ #Creates object of type TransferNotificationRegistration
82
+ #
83
+ #@param Dict mapObj, containing the required parameters to create a new object
84
+ #@return [TransferNotificationRegistration] of the response of created instance.
85
+ #@raise [APIException] an exception from the response status
86
+ return self.execute("8375efb7-6a71-4d51-9e62-3c4127cb8ec4", TransferNotificationRegistration.new(mapObj))
87
+ end
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ def self.readby(mapObj)
96
+ #
97
+ #Creates object of type TransferNotificationRegistration
98
+ #
99
+ #@param Dict mapObj, containing the required parameters to create a new object
100
+ #@return [TransferNotificationRegistration] of the response of created instance.
101
+ #@raise [APIException] an exception from the response status
102
+ return self.execute("b2384957-a347-4e1a-b1be-e0d01538dce6", TransferNotificationRegistration.new(mapObj))
103
+ end
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+ def update
113
+ #
114
+ #Updates an object of type TransferNotificationRegistration
115
+ #
116
+ #@return [TransferNotificationRegistration] object representing the response.
117
+ #@raise [APIException] an exception from the response status
118
+ #
119
+ return self.class.execute("62d1190e-5309-4eeb-a773-c2018ff36bc3",self)
120
+ end
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+ end
129
+ end
130
+ end
131
+ end
132
+
133
+
134
+
135
+
136
+
137
+
138
+
@@ -2,6 +2,14 @@ require 'mastercard_api_core'
2
2
 
3
3
  require 'mastercard/api/p2m/resourceconfig'
4
4
 
5
+ require 'mastercard/api/p2m/digitalaccountreferencenumber'
6
+ require 'mastercard/api/p2m/digitalaccountreferencenumberretrieval'
7
+ require 'mastercard/api/p2m/merchantfunding'
8
+ require 'mastercard/api/p2m/merchantrefund'
5
9
  require 'mastercard/api/p2m/merchantretrieval'
6
10
  require 'mastercard/api/p2m/merchanttransferfundingandpayment'
7
11
  require 'mastercard/api/p2m/merchanttransferpayment'
12
+ require 'mastercard/api/p2m/testpaymentnotification'
13
+ require 'mastercard/api/p2m/testrefundnotification'
14
+ require 'mastercard/api/p2m/transfernotification'
15
+ require 'mastercard/api/p2m/transfernotificationregistration'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastercard_p2m
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-10-06 00:00:00.000000000 Z
11
+ date: 2018-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mastercard_api_core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 1.4.0
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.4.0
22
+ version: 1.4.8
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 1.4.0
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.4.0
32
+ version: 1.4.8
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: ci_reporter_minitest
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -51,10 +51,18 @@ executables: []
51
51
  extensions: []
52
52
  extra_rdoc_files: []
53
53
  files:
54
+ - lib/mastercard/api/p2m/digitalaccountreferencenumber.rb
55
+ - lib/mastercard/api/p2m/digitalaccountreferencenumberretrieval.rb
56
+ - lib/mastercard/api/p2m/merchantfunding.rb
57
+ - lib/mastercard/api/p2m/merchantrefund.rb
54
58
  - lib/mastercard/api/p2m/merchantretrieval.rb
55
59
  - lib/mastercard/api/p2m/merchanttransferfundingandpayment.rb
56
60
  - lib/mastercard/api/p2m/merchanttransferpayment.rb
57
61
  - lib/mastercard/api/p2m/resourceconfig.rb
62
+ - lib/mastercard/api/p2m/testpaymentnotification.rb
63
+ - lib/mastercard/api/p2m/testrefundnotification.rb
64
+ - lib/mastercard/api/p2m/transfernotification.rb
65
+ - lib/mastercard/api/p2m/transfernotificationregistration.rb
58
66
  - lib/mastercard_p2m.rb
59
67
  homepage: https://developer.mastercard.com
60
68
  licenses:
@@ -76,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
84
  version: '0'
77
85
  requirements: []
78
86
  rubyforge_project:
79
- rubygems_version: 2.5.1
87
+ rubygems_version: 2.7.7
80
88
  signing_key:
81
89
  specification_version: 4
82
90
  summary: MasterCard P2m SDK