mastercard_mastercom 0.0.3 → 2.0.0
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 +4 -4
- data/lib/mastercard/api/mastercom/casefiling.rb +62 -62
- data/lib/mastercard/api/mastercom/chargebacks.rb +92 -92
- data/lib/mastercard/api/mastercom/claims.rb +63 -63
- data/lib/mastercard/api/mastercom/fees.rb +42 -42
- data/lib/mastercard/api/mastercom/fraud.rb +42 -42
- data/lib/mastercard/api/mastercom/healthcheck.rb +87 -0
- data/lib/mastercard/api/mastercom/queues.rb +50 -50
- data/lib/mastercard/api/mastercom/resourceconfig.rb +54 -54
- data/lib/mastercard/api/mastercom/retrievals.rb +82 -82
- data/lib/mastercard/api/mastercom/transactions.rb +74 -74
- data/lib/mastercard_mastercom.rb +1 -0
- metadata +5 -4
@@ -30,47 +30,47 @@ require "mastercard/core/model"
|
|
30
30
|
require "mastercard/core/baseobject"
|
31
31
|
|
32
32
|
module MasterCard
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
module API
|
34
|
+
module Mastercom
|
35
|
+
class Retrievals < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
39
|
+
@__store = {
|
40
|
+
'76025c66-ac44-45e3-bc19-b04d8bdfd9d6' => OperationConfig.new("/mastercom/v2/claims/{claim-id}/retrievalrequests/{request-id}/fulfillments", "create", [], []),
|
41
|
+
'e45e1d44-99e7-4345-abb7-ea1ffa5a6e5c' => OperationConfig.new("/mastercom/v2/claims/{claim-id}/retrievalrequests", "create", [], []),
|
42
|
+
'2ec06c26-2e8b-46b2-ba93-507ae33b8bf4' => OperationConfig.new("/mastercom/v2/claims/{claim-id}/retrievalrequests/loaddataforretrievalrequests", "query", [], []),
|
43
|
+
'fc93cda1-0c23-4c0d-acd9-1d5575d03ada' => OperationConfig.new("/mastercom/v2/claims/{claim-id}/retrievalrequests/{request-id}/documents", "query", [], ["format"]),
|
44
|
+
'04cc9c49-6a8e-4763-ae53-3ddb17dc67f0' => OperationConfig.new("/mastercom/v2/claims/{claim-id}/retrievalrequests/{request-id}/fulfillments/response", "create", [], []),
|
45
|
+
'a9b3c83a-63db-435b-a0d3-b58ccc2ed4e8' => OperationConfig.new("/mastercom/v2/retrievalrequests/status", "update", [], []),
|
46
|
+
|
47
|
+
}
|
48
48
|
|
49
|
-
|
49
|
+
protected
|
50
50
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
51
|
+
def self.getOperationConfig(operationUUID)
|
52
|
+
if @__store.key?(operationUUID)
|
53
|
+
return @__store[operationUUID]
|
54
|
+
end
|
55
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
56
|
+
end
|
57
57
|
|
58
|
-
|
59
|
-
|
60
|
-
|
58
|
+
def self.getOperationMetadata()
|
59
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
60
|
+
end
|
61
61
|
|
62
|
-
|
62
|
+
public
|
63
63
|
|
64
64
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
65
|
+
def self.acquirerFulfillARequest(mapObj)
|
66
|
+
#
|
67
|
+
#Creates object of type Retrievals
|
68
|
+
#
|
69
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
70
|
+
#@return [Retrievals] of the response of created instance.
|
71
|
+
#@raise [APIException] an exception from the response status
|
72
|
+
return self.execute("76025c66-ac44-45e3-bc19-b04d8bdfd9d6", Retrievals.new(mapObj))
|
73
|
+
end
|
74
74
|
|
75
75
|
|
76
76
|
|
@@ -78,15 +78,15 @@ module MasterCard
|
|
78
78
|
|
79
79
|
|
80
80
|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
81
|
+
def self.create(mapObj)
|
82
|
+
#
|
83
|
+
#Creates object of type Retrievals
|
84
|
+
#
|
85
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
86
|
+
#@return [Retrievals] of the response of created instance.
|
87
|
+
#@raise [APIException] an exception from the response status
|
88
|
+
return self.execute("e45e1d44-99e7-4345-abb7-ea1ffa5a6e5c", Retrievals.new(mapObj))
|
89
|
+
end
|
90
90
|
|
91
91
|
|
92
92
|
|
@@ -99,16 +99,16 @@ module MasterCard
|
|
99
99
|
|
100
100
|
|
101
101
|
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
102
|
+
def self.getPossibleValueListsForCreate(criteria)
|
103
|
+
#
|
104
|
+
#Query objects of type Retrievals by id and optional criteria
|
105
|
+
#@param [Dict] criteria
|
106
|
+
#@return [Retrievals] object representing the response.
|
107
|
+
#@raise [APIException] an exception from the response status
|
108
|
+
#
|
109
109
|
|
110
|
-
|
111
|
-
|
110
|
+
return self.execute("2ec06c26-2e8b-46b2-ba93-507ae33b8bf4",Retrievals.new(criteria))
|
111
|
+
end
|
112
112
|
|
113
113
|
|
114
114
|
|
@@ -116,27 +116,27 @@ module MasterCard
|
|
116
116
|
|
117
117
|
|
118
118
|
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
119
|
+
def self.getDocumentation(criteria)
|
120
|
+
#
|
121
|
+
#Query objects of type Retrievals by id and optional criteria
|
122
|
+
#@param [Dict] criteria
|
123
|
+
#@return [Retrievals] object representing the response.
|
124
|
+
#@raise [APIException] an exception from the response status
|
125
|
+
#
|
126
126
|
|
127
|
-
|
128
|
-
|
127
|
+
return self.execute("fc93cda1-0c23-4c0d-acd9-1d5575d03ada",Retrievals.new(criteria))
|
128
|
+
end
|
129
129
|
|
130
130
|
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
131
|
+
def self.issuerRespondToFulfillment(mapObj)
|
132
|
+
#
|
133
|
+
#Creates object of type Retrievals
|
134
|
+
#
|
135
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
136
|
+
#@return [Retrievals] of the response of created instance.
|
137
|
+
#@raise [APIException] an exception from the response status
|
138
|
+
return self.execute("04cc9c49-6a8e-4763-ae53-3ddb17dc67f0", Retrievals.new(mapObj))
|
139
|
+
end
|
140
140
|
|
141
141
|
|
142
142
|
|
@@ -145,15 +145,15 @@ module MasterCard
|
|
145
145
|
|
146
146
|
|
147
147
|
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
148
|
+
def retrievalFullfilmentStatus
|
149
|
+
#
|
150
|
+
#Updates an object of type Retrievals
|
151
|
+
#
|
152
|
+
#@return [Retrievals] object representing the response.
|
153
|
+
#@raise [APIException] an exception from the response status
|
154
|
+
#
|
155
|
+
return self.class.execute("a9b3c83a-63db-435b-a0d3-b58ccc2ed4e8",self)
|
156
|
+
end
|
157
157
|
|
158
158
|
|
159
159
|
|
@@ -161,9 +161,9 @@ module MasterCard
|
|
161
161
|
|
162
162
|
|
163
163
|
|
164
|
-
|
165
|
-
|
166
|
-
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
167
167
|
end
|
168
168
|
|
169
169
|
|
@@ -30,61 +30,61 @@ require "mastercard/core/model"
|
|
30
30
|
require "mastercard/core/baseobject"
|
31
31
|
|
32
32
|
module MasterCard
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
module API
|
34
|
+
module Mastercom
|
35
|
+
class Transactions < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
39
|
+
@__store = {
|
40
|
+
'df358f2a-6499-443e-8b92-36565bf6bf38' => OperationConfig.new("/mastercom/v2/claims/{claim-id}/transactions/clearing/{transaction-id}", "read", [], []),
|
41
|
+
'0eb4085b-2446-4c9b-8cab-f7703d2f4a87' => OperationConfig.new("/mastercom/v2/claims/{claim-id}/transactions/authorization/{transaction-id}", "read", [], []),
|
42
|
+
'51c352e0-9016-4744-9f35-9da38e67c999' => OperationConfig.new("/mastercom/v2/transactions/search", "create", [], []),
|
43
|
+
|
44
|
+
}
|
45
45
|
|
46
|
-
|
46
|
+
protected
|
47
47
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
48
|
+
def self.getOperationConfig(operationUUID)
|
49
|
+
if @__store.key?(operationUUID)
|
50
|
+
return @__store[operationUUID]
|
51
|
+
end
|
52
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
53
|
+
end
|
54
54
|
|
55
|
-
|
56
|
-
|
57
|
-
|
55
|
+
def self.getOperationMetadata()
|
56
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
57
|
+
end
|
58
58
|
|
59
|
-
|
59
|
+
public
|
60
60
|
|
61
61
|
|
62
62
|
|
63
63
|
|
64
64
|
|
65
65
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
66
|
+
def self.retrieveClearingDetail(id, criteria = nil)
|
67
|
+
#
|
68
|
+
#Returns objects of type Transactions by id and optional criteria
|
69
|
+
#@param [String] id
|
70
|
+
#@param [Dict] criteria
|
71
|
+
#@return [Transactions] object representing the response
|
72
|
+
#@raise [APIException] an exception from the response status
|
73
73
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
74
|
+
mapObj = Transactions.new
|
75
|
+
if !(id.nil? || id.to_s.empty?)
|
76
|
+
mapObj.set("id", id)
|
77
|
+
end
|
78
|
+
if !criteria.nil?
|
79
|
+
if criteria.instance_of? RequestMap
|
80
|
+
mapObj.setAll(criteria.getObject())
|
81
|
+
else
|
82
|
+
mapObj.setAll(criteria)
|
83
|
+
end
|
84
|
+
end
|
85
85
|
|
86
|
-
|
87
|
-
|
86
|
+
return self.execute("df358f2a-6499-443e-8b92-36565bf6bf38",Transactions.new(mapObj))
|
87
|
+
end
|
88
88
|
|
89
89
|
|
90
90
|
|
@@ -92,40 +92,40 @@ module MasterCard
|
|
92
92
|
|
93
93
|
|
94
94
|
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
95
|
+
def self.retrieveAuthorizationDetail(id, criteria = nil)
|
96
|
+
#
|
97
|
+
#Returns objects of type Transactions by id and optional criteria
|
98
|
+
#@param [String] id
|
99
|
+
#@param [Dict] criteria
|
100
|
+
#@return [Transactions] object representing the response
|
101
|
+
#@raise [APIException] an exception from the response status
|
102
102
|
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
103
|
+
mapObj = Transactions.new
|
104
|
+
if !(id.nil? || id.to_s.empty?)
|
105
|
+
mapObj.set("id", id)
|
106
|
+
end
|
107
|
+
if !criteria.nil?
|
108
|
+
if criteria.instance_of? RequestMap
|
109
|
+
mapObj.setAll(criteria.getObject())
|
110
|
+
else
|
111
|
+
mapObj.setAll(criteria)
|
112
|
+
end
|
113
|
+
end
|
114
114
|
|
115
|
-
|
116
|
-
|
115
|
+
return self.execute("0eb4085b-2446-4c9b-8cab-f7703d2f4a87",Transactions.new(mapObj))
|
116
|
+
end
|
117
117
|
|
118
118
|
|
119
119
|
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
120
|
+
def self.searchForTransaction(mapObj)
|
121
|
+
#
|
122
|
+
#Creates object of type Transactions
|
123
|
+
#
|
124
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
125
|
+
#@return [Transactions] of the response of created instance.
|
126
|
+
#@raise [APIException] an exception from the response status
|
127
|
+
return self.execute("51c352e0-9016-4744-9f35-9da38e67c999", Transactions.new(mapObj))
|
128
|
+
end
|
129
129
|
|
130
130
|
|
131
131
|
|
@@ -133,9 +133,9 @@ module MasterCard
|
|
133
133
|
|
134
134
|
|
135
135
|
|
136
|
-
|
137
|
-
|
138
|
-
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
139
139
|
end
|
140
140
|
|
141
141
|
|
data/lib/mastercard_mastercom.rb
CHANGED
@@ -7,6 +7,7 @@ require 'mastercard/api/mastercom/chargebacks'
|
|
7
7
|
require 'mastercard/api/mastercom/claims'
|
8
8
|
require 'mastercard/api/mastercom/fees'
|
9
9
|
require 'mastercard/api/mastercom/fraud'
|
10
|
+
require 'mastercard/api/mastercom/healthcheck'
|
10
11
|
require 'mastercard/api/mastercom/queues'
|
11
12
|
require 'mastercard/api/mastercom/retrievals'
|
12
13
|
require 'mastercard/api/mastercom/transactions'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mastercard_mastercom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 2.0.0
|
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-07-12 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.
|
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.
|
32
|
+
version: 1.4.8
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: ci_reporter_minitest
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- lib/mastercard/api/mastercom/claims.rb
|
57
57
|
- lib/mastercard/api/mastercom/fees.rb
|
58
58
|
- lib/mastercard/api/mastercom/fraud.rb
|
59
|
+
- lib/mastercard/api/mastercom/healthcheck.rb
|
59
60
|
- lib/mastercard/api/mastercom/queues.rb
|
60
61
|
- lib/mastercard/api/mastercom/resourceconfig.rb
|
61
62
|
- lib/mastercard/api/mastercom/retrievals.rb
|