mastercard_p2m 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mastercard/api/p2m/{merchanttransfer.rb → merchantretrieval.rb} +10 -10
- data/lib/mastercard/api/p2m/merchanttransferfundingandpayment.rb +86 -0
- data/lib/mastercard/api/p2m/{merchantpaymenttransfer.rb → merchanttransferpayment.rb} +5 -5
- data/lib/mastercard/api/p2m/resourceconfig.rb +1 -1
- data/lib/mastercard_p2m.rb +3 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2467281e68870bb88616ad6d89c4754e2e5e3877
|
4
|
+
data.tar.gz: 53b20759b6ae27edff39f56c9062acec61e42713
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61426841fe426cc32c2ffb9887821126beb2af79c250c221bf94a392e3c82cbf0f0d88a4edcdc945a2bbc9c08e87afd0517e81f7dda396fc3d4129e1a48deac8
|
7
|
+
data.tar.gz: 822b3bb58025e0e4e51ec7ebbe15ad15d66c54639e062e2d8e7de79257f047649a7f3b7431b8e712f97f24d38ac8a48770bb2144db5c38e84e3327066a6d3207
|
@@ -32,13 +32,13 @@ require "mastercard/core/baseobject"
|
|
32
32
|
module MasterCard
|
33
33
|
module API
|
34
34
|
module P2m
|
35
|
-
class
|
35
|
+
class MerchantRetrieval < MasterCard::Core::Model::BaseObject
|
36
36
|
include MasterCard::Core::Model
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
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
42
|
|
43
43
|
}
|
44
44
|
|
@@ -64,13 +64,13 @@ module MasterCard
|
|
64
64
|
|
65
65
|
def self.readByID(id, criteria = nil)
|
66
66
|
#
|
67
|
-
#Returns objects of type
|
67
|
+
#Returns objects of type MerchantRetrieval by id and optional criteria
|
68
68
|
#@param [String] id
|
69
69
|
#@param [Dict] criteria
|
70
|
-
#@return [
|
70
|
+
#@return [MerchantRetrieval] object representing the response
|
71
71
|
#@raise [APIException] an exception from the response status
|
72
72
|
|
73
|
-
mapObj =
|
73
|
+
mapObj = MerchantRetrieval.new
|
74
74
|
if !(id.nil? || id.to_s.empty?)
|
75
75
|
mapObj.set("id", id)
|
76
76
|
end
|
@@ -82,7 +82,7 @@ module MasterCard
|
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
85
|
-
return self.execute("
|
85
|
+
return self.execute("4d0fda90-791e-43b3-8808-4644fc489f9b",MerchantRetrieval.new(mapObj))
|
86
86
|
end
|
87
87
|
|
88
88
|
|
@@ -94,13 +94,13 @@ module MasterCard
|
|
94
94
|
|
95
95
|
def self.readByReference(criteria)
|
96
96
|
#
|
97
|
-
#Query objects of type
|
97
|
+
#Query objects of type MerchantRetrieval by id and optional criteria
|
98
98
|
#@param [Dict] criteria
|
99
|
-
#@return [
|
99
|
+
#@return [MerchantRetrieval] object representing the response.
|
100
100
|
#@raise [APIException] an exception from the response status
|
101
101
|
#
|
102
102
|
|
103
|
-
return self.execute("
|
103
|
+
return self.execute("2ba0ec7b-459f-4083-8dc1-69206b07de7c",MerchantRetrieval.new(criteria))
|
104
104
|
end
|
105
105
|
|
106
106
|
|
@@ -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 MerchantTransferFundingAndPayment < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'1b75c4e6-e730-4d0d-bde8-ecc07f3df9a3' => OperationConfig.new("/send/#env/v1/partners/{partnerId}/merchant/transfer", "create", [], []),
|
41
|
+
|
42
|
+
}
|
43
|
+
|
44
|
+
protected
|
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
|
52
|
+
|
53
|
+
def self.getOperationMetadata()
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
55
|
+
end
|
56
|
+
|
57
|
+
public
|
58
|
+
|
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
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
@@ -32,12 +32,12 @@ require "mastercard/core/baseobject"
|
|
32
32
|
module MasterCard
|
33
33
|
module API
|
34
34
|
module P2m
|
35
|
-
class
|
35
|
+
class MerchantTransferPayment < MasterCard::Core::Model::BaseObject
|
36
36
|
include MasterCard::Core::Model
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'b8076dab-3387-4248-9b75-f94afac020ce' => OperationConfig.new("/send/#env/v1/partners/{partnerId}/merchant/transfers/payment", "create", [], []),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
@@ -59,12 +59,12 @@ module MasterCard
|
|
59
59
|
|
60
60
|
def self.create(mapObj)
|
61
61
|
#
|
62
|
-
#Creates object of type
|
62
|
+
#Creates object of type MerchantTransferPayment
|
63
63
|
#
|
64
64
|
#@param Dict mapObj, containing the required parameters to create a new object
|
65
|
-
#@return [
|
65
|
+
#@return [MerchantTransferPayment] of the response of created instance.
|
66
66
|
#@raise [APIException] an exception from the response status
|
67
|
-
return self.execute("
|
67
|
+
return self.execute("b8076dab-3387-4248-9b75-f94afac020ce", MerchantTransferPayment.new(mapObj))
|
68
68
|
end
|
69
69
|
|
70
70
|
|
data/lib/mastercard_p2m.rb
CHANGED
@@ -2,5 +2,6 @@ require 'mastercard_api_core'
|
|
2
2
|
|
3
3
|
require 'mastercard/api/p2m/resourceconfig'
|
4
4
|
|
5
|
-
require 'mastercard/api/p2m/
|
6
|
-
require 'mastercard/api/p2m/
|
5
|
+
require 'mastercard/api/p2m/merchantretrieval'
|
6
|
+
require 'mastercard/api/p2m/merchanttransferfundingandpayment'
|
7
|
+
require 'mastercard/api/p2m/merchanttransferpayment'
|
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.
|
4
|
+
version: 1.0.2
|
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-
|
11
|
+
date: 2017-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mastercard_api_core
|
@@ -51,8 +51,9 @@ executables: []
|
|
51
51
|
extensions: []
|
52
52
|
extra_rdoc_files: []
|
53
53
|
files:
|
54
|
-
- lib/mastercard/api/p2m/
|
55
|
-
- lib/mastercard/api/p2m/
|
54
|
+
- lib/mastercard/api/p2m/merchantretrieval.rb
|
55
|
+
- lib/mastercard/api/p2m/merchanttransferfundingandpayment.rb
|
56
|
+
- lib/mastercard/api/p2m/merchanttransferpayment.rb
|
56
57
|
- lib/mastercard/api/p2m/resourceconfig.rb
|
57
58
|
- lib/mastercard_p2m.rb
|
58
59
|
homepage: https://developer.mastercard.com
|