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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7a314812134b9d44cc1adb626e9a01b608a5c5a
4
- data.tar.gz: 66287893fba36ff5b4191cb9cc03e83588988fa2
3
+ metadata.gz: e9a51262c510edc6e0d5933cd6714a88ad174446
4
+ data.tar.gz: f76abaea8d5856d7d3e53d637309f561b32c0af0
5
5
  SHA512:
6
- metadata.gz: 78a2ae753f01ccf01248e3f8bba991e3abd69f880cc4824c3861963cf8041bacd2d5f2ead3ef236b565b2c8323dd6528a953be6b17130dd0114adcd0314cd143
7
- data.tar.gz: bd37497e6f4fa837b08d29bc2447aeba594cb78156884d07571ee7f9811897548a34de507f838dee37dd10acc245447c387ee067cd9964b30ca63ab095336fc4
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 Accept < MasterCard::Core::Model::BaseObject
35
+ class Accepts < MasterCard::Core::Model::BaseObject
36
36
  include MasterCard::Core::Model
37
37
  #
38
38
 
39
39
  @__store = {
40
- 'ae1fc3e2-6a6b-428f-8332-03cf58dcc3bb' => OperationConfig.new("/labs/proxy/blockchain/b2bxb/api/v1/accepts", "create", [], []),
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 Accept
62
+ #Creates object of type Accepts
63
63
  #
64
64
  #@param Dict mapObj, containing the required parameters to create a new object
65
- #@return [Accept] of the response of created instance.
65
+ #@return [Accepts] of the response of created instance.
66
66
  #@raise [APIException] an exception from the response status
67
- return self.execute("ae1fc3e2-6a6b-428f-8332-03cf58dcc3bb", Accept.new(mapObj))
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
- 'db44d34e-e17b-42ce-a74f-57cbe2ef59a1' => OperationConfig.new("/labs/proxy/blockchain/b2bxb/api/v1/claims", "create", [], []),
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("db44d34e-e17b-42ce-a74f-57cbe2ef59a1", Claims.new(mapObj))
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
- 'a7a448c6-08cf-469c-8e76-7eadc166e411' => OperationConfig.new("/labs/proxy/blockchain/b2bxb/api/v1/payments", "query", [], ["status","offset","count"]),
41
- '2a2a84a3-8bac-4cde-ae2c-0a486ad2c86c' => OperationConfig.new("/labs/proxy/blockchain/b2bxb/api/v1/payments", "create", [], ["callbackUrl"]),
42
- 'a60cc0e9-4720-454e-903b-a4abe6d167b1' => OperationConfig.new("/labs/proxy/blockchain/b2bxb/api/v1/payments/{reference}", "read", [], []),
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("a7a448c6-08cf-469c-8e76-7eadc166e411",Payments.new(criteria))
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("2a2a84a3-8bac-4cde-ae2c-0a486ad2c86c", Payments.new(mapObj))
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("a60cc0e9-4720-454e-903b-a4abe6d167b1",Payments.new(mapObj))
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 Reject < MasterCard::Core::Model::BaseObject
35
+ class Rejects < MasterCard::Core::Model::BaseObject
36
36
  include MasterCard::Core::Model
37
37
  #
38
38
 
39
39
  @__store = {
40
- '0dd94e91-8619-496f-9b21-980a2ecfee4f' => OperationConfig.new("/labs/proxy/blockchain/b2bxb/api/v1/rejects", "create", [], []),
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 Reject
62
+ #Creates object of type Rejects
63
63
  #
64
64
  #@param Dict mapObj, containing the required parameters to create a new object
65
- #@return [Reject] of the response of created instance.
65
+ #@return [Rejects] of the response of created instance.
66
66
  #@raise [APIException] an exception from the response status
67
- return self.execute("0dd94e91-8619-496f-9b21-980a2ecfee4f", Reject.new(mapObj))
67
+ return self.execute("ba2dab85-eef1-488a-ab6a-9a128e6b32d6", Rejects.new(mapObj))
68
68
  end
69
69
 
70
70
 
@@ -71,7 +71,7 @@ module MasterCard
71
71
  end
72
72
 
73
73
  def getVersion
74
- return "blockchain-b2bxb:0.0.3"
74
+ return "blockchain-b2bxb:0.0.4"
75
75
  end
76
76
 
77
77
  def getJsonNative
@@ -2,7 +2,9 @@ require 'mastercard_api_core'
2
2
 
3
3
  require 'mastercard/api/blockchainb2bxb/resourceconfig'
4
4
 
5
- require 'mastercard/api/blockchainb2bxb/accept'
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/reject'
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.3
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-04-03 00:00:00.000000000 Z
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/accept.rb
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/reject.rb
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