mastercard_blockchainb2bxb 0.0.3 → 0.0.4
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/blockchainb2bxb/{accept.rb → accepts.rb} +5 -5
- data/lib/mastercard/api/blockchainb2bxb/batches.rb +99 -0
- data/lib/mastercard/api/blockchainb2bxb/claims.rb +2 -2
- data/lib/mastercard/api/blockchainb2bxb/movements.rb +86 -0
- data/lib/mastercard/api/blockchainb2bxb/payments.rb +6 -6
- data/lib/mastercard/api/blockchainb2bxb/{reject.rb → rejects.rb} +5 -5
- data/lib/mastercard/api/blockchainb2bxb/resourceconfig.rb +1 -1
- data/lib/mastercard_blockchainb2bxb.rb +4 -2
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9a51262c510edc6e0d5933cd6714a88ad174446
|
4
|
+
data.tar.gz: f76abaea8d5856d7d3e53d637309f561b32c0af0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7516a31233c860dd9c30832a17fe4d1d008c3b8575908952d0778cd0cf791209d774fba5920846a73675aeb1ce6e42a5728226611d0a138bdb5b55102c68ab84
|
7
|
+
data.tar.gz: 4dd991899a2f8e641bd49722b6666506e6f79dc4fed152eab539f9472edcf3377da37cd1bdcca80b2e99ab011ececeb61ea8385119bbae20479d949f9702aa7b
|
@@ -32,12 +32,12 @@ require "mastercard/core/baseobject"
|
|
32
32
|
module MasterCard
|
33
33
|
module API
|
34
34
|
module BlockchainB2bxb
|
35
|
-
class
|
35
|
+
class Accepts < MasterCard::Core::Model::BaseObject
|
36
36
|
include MasterCard::Core::Model
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'339dc319-91ca-47ca-be88-6dcd2154b84f' => OperationConfig.new("/labs/proxy/blockchain/b2bxb/api/v1/accepts", "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 Accepts
|
63
63
|
#
|
64
64
|
#@param Dict mapObj, containing the required parameters to create a new object
|
65
|
-
#@return [
|
65
|
+
#@return [Accepts] of the response of created instance.
|
66
66
|
#@raise [APIException] an exception from the response status
|
67
|
-
return self.execute("
|
67
|
+
return self.execute("339dc319-91ca-47ca-be88-6dcd2154b84f", Accepts.new(mapObj))
|
68
68
|
end
|
69
69
|
|
70
70
|
|
@@ -0,0 +1,99 @@
|
|
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 BlockchainB2bxb
|
35
|
+
class Batches < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'a668fb01-11ad-4e31-b067-8cd6df541905' => OperationConfig.new("/labs/proxy/blockchain/b2bxb/api/v1/batches/{reference}", "read", [], []),
|
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
|
+
|
62
|
+
|
63
|
+
|
64
|
+
def self.read(id, criteria = nil)
|
65
|
+
#
|
66
|
+
#Returns objects of type Batches by id and optional criteria
|
67
|
+
#@param [String] id
|
68
|
+
#@param [Dict] criteria
|
69
|
+
#@return [Batches] object representing the response
|
70
|
+
#@raise [APIException] an exception from the response status
|
71
|
+
|
72
|
+
mapObj = Batches.new
|
73
|
+
if !(id.nil? || id.to_s.empty?)
|
74
|
+
mapObj.set("id", id)
|
75
|
+
end
|
76
|
+
if !criteria.nil?
|
77
|
+
if criteria.instance_of? RequestMap
|
78
|
+
mapObj.setAll(criteria.getObject())
|
79
|
+
else
|
80
|
+
mapObj.setAll(criteria)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
return self.execute("a668fb01-11ad-4e31-b067-8cd6df541905",Batches.new(mapObj))
|
85
|
+
end
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
@@ -37,7 +37,7 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'b04c42c9-534c-4f80-a2c2-9f7e663f1c84' => OperationConfig.new("/labs/proxy/blockchain/b2bxb/api/v1/claims", "create", [], []),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
@@ -64,7 +64,7 @@ module MasterCard
|
|
64
64
|
#@param Dict mapObj, containing the required parameters to create a new object
|
65
65
|
#@return [Claims] of the response of created instance.
|
66
66
|
#@raise [APIException] an exception from the response status
|
67
|
-
return self.execute("
|
67
|
+
return self.execute("b04c42c9-534c-4f80-a2c2-9f7e663f1c84", Claims.new(mapObj))
|
68
68
|
end
|
69
69
|
|
70
70
|
|
@@ -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 BlockchainB2bxb
|
35
|
+
class Movements < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'b4032f4e-5f3e-457c-92b2-a3008ccd4546' => OperationConfig.new("/labs/proxy/blockchain/b2bxb/api/v1/accounted", "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 Movements
|
63
|
+
#
|
64
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
65
|
+
#@return [Movements] of the response of created instance.
|
66
|
+
#@raise [APIException] an exception from the response status
|
67
|
+
return self.execute("b4032f4e-5f3e-457c-92b2-a3008ccd4546", Movements.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
|
+
|
@@ -37,9 +37,9 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'2c0ee91a-d847-4ca2-a629-c82475c8f3ae' => OperationConfig.new("/labs/proxy/blockchain/b2bxb/api/v1/payments", "query", [], ["status","offset","count"]),
|
41
|
+
'862c7648-7d68-4f6f-97c7-34514feb2917' => OperationConfig.new("/labs/proxy/blockchain/b2bxb/api/v1/payments", "create", [], ["callbackUrl"]),
|
42
|
+
'239e408c-40de-4bc8-a42c-3db1dfc730a4' => OperationConfig.new("/labs/proxy/blockchain/b2bxb/api/v1/payments/{reference}", "read", [], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
@@ -72,7 +72,7 @@ module MasterCard
|
|
72
72
|
#@raise [APIException] an exception from the response status
|
73
73
|
#
|
74
74
|
|
75
|
-
return self.execute("
|
75
|
+
return self.execute("2c0ee91a-d847-4ca2-a629-c82475c8f3ae",Payments.new(criteria))
|
76
76
|
end
|
77
77
|
|
78
78
|
|
@@ -83,7 +83,7 @@ module MasterCard
|
|
83
83
|
#@param Dict mapObj, containing the required parameters to create a new object
|
84
84
|
#@return [Payments] of the response of created instance.
|
85
85
|
#@raise [APIException] an exception from the response status
|
86
|
-
return self.execute("
|
86
|
+
return self.execute("862c7648-7d68-4f6f-97c7-34514feb2917", Payments.new(mapObj))
|
87
87
|
end
|
88
88
|
|
89
89
|
|
@@ -116,7 +116,7 @@ module MasterCard
|
|
116
116
|
end
|
117
117
|
end
|
118
118
|
|
119
|
-
return self.execute("
|
119
|
+
return self.execute("239e408c-40de-4bc8-a42c-3db1dfc730a4",Payments.new(mapObj))
|
120
120
|
end
|
121
121
|
|
122
122
|
|
@@ -32,12 +32,12 @@ require "mastercard/core/baseobject"
|
|
32
32
|
module MasterCard
|
33
33
|
module API
|
34
34
|
module BlockchainB2bxb
|
35
|
-
class
|
35
|
+
class Rejects < MasterCard::Core::Model::BaseObject
|
36
36
|
include MasterCard::Core::Model
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'ba2dab85-eef1-488a-ab6a-9a128e6b32d6' => OperationConfig.new("/labs/proxy/blockchain/b2bxb/api/v1/rejects", "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 Rejects
|
63
63
|
#
|
64
64
|
#@param Dict mapObj, containing the required parameters to create a new object
|
65
|
-
#@return [
|
65
|
+
#@return [Rejects] of the response of created instance.
|
66
66
|
#@raise [APIException] an exception from the response status
|
67
|
-
return self.execute("
|
67
|
+
return self.execute("ba2dab85-eef1-488a-ab6a-9a128e6b32d6", Rejects.new(mapObj))
|
68
68
|
end
|
69
69
|
|
70
70
|
|
@@ -2,7 +2,9 @@ require 'mastercard_api_core'
|
|
2
2
|
|
3
3
|
require 'mastercard/api/blockchainb2bxb/resourceconfig'
|
4
4
|
|
5
|
-
require 'mastercard/api/blockchainb2bxb/
|
5
|
+
require 'mastercard/api/blockchainb2bxb/accepts'
|
6
|
+
require 'mastercard/api/blockchainb2bxb/batches'
|
6
7
|
require 'mastercard/api/blockchainb2bxb/claims'
|
8
|
+
require 'mastercard/api/blockchainb2bxb/movements'
|
7
9
|
require 'mastercard/api/blockchainb2bxb/payments'
|
8
|
-
require 'mastercard/api/blockchainb2bxb/
|
10
|
+
require 'mastercard/api/blockchainb2bxb/rejects'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mastercard_blockchainb2bxb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MasterCard Worldwide
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mastercard_api_core
|
@@ -51,10 +51,12 @@ executables: []
|
|
51
51
|
extensions: []
|
52
52
|
extra_rdoc_files: []
|
53
53
|
files:
|
54
|
-
- lib/mastercard/api/blockchainb2bxb/
|
54
|
+
- lib/mastercard/api/blockchainb2bxb/accepts.rb
|
55
|
+
- lib/mastercard/api/blockchainb2bxb/batches.rb
|
55
56
|
- lib/mastercard/api/blockchainb2bxb/claims.rb
|
57
|
+
- lib/mastercard/api/blockchainb2bxb/movements.rb
|
56
58
|
- lib/mastercard/api/blockchainb2bxb/payments.rb
|
57
|
-
- lib/mastercard/api/blockchainb2bxb/
|
59
|
+
- lib/mastercard/api/blockchainb2bxb/rejects.rb
|
58
60
|
- lib/mastercard/api/blockchainb2bxb/resourceconfig.rb
|
59
61
|
- lib/mastercard_blockchainb2bxb.rb
|
60
62
|
homepage: https://developer.mastercard.com
|