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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68086bc6e997dad62defa45fddd19c63f13db769
|
4
|
+
data.tar.gz: 5f01afcc5d113b1d8c1e67c4761de783f3071c80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 968124ec5c183c66633589664ea636038dc7331c615707a7faca1a6474a66926821e6fd763c9594c7cf77526d437fa472826ffed990cf6c8ad0eadbe9cceaa6c
|
7
|
+
data.tar.gz: 4d7bb88ba1139330a215e3341d75db5c1ae54bbd6bf6bfc30724e9f692573790482bcf76a997e26751b4624096b585509d006d8c2b639f07afa5eb96e06d4d21
|
@@ -30,45 +30,45 @@ 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 CaseFiling < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
39
|
+
@__store = {
|
40
|
+
'8265272d-511d-4ff6-8212-0774c7f56761' => OperationConfig.new("/mastercom/v2/cases", "create", [], []),
|
41
|
+
'93d85a71-3280-4466-bbf5-05848a3633f1' => OperationConfig.new("/mastercom/v2/cases/{case-id}/documents", "query", [], ["format","memo"]),
|
42
|
+
'077b746e-3394-4126-8a62-a5f59d5c76d2' => OperationConfig.new("/mastercom/v2/cases/status", "update", [], []),
|
43
|
+
'4db65791-3d83-4026-95e4-efdc9fe0b17d' => OperationConfig.new("/mastercom/v2/cases/{case-id}", "update", [], []),
|
44
|
+
|
45
|
+
}
|
46
46
|
|
47
|
-
|
47
|
+
protected
|
48
48
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
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
55
|
|
56
|
-
|
57
|
-
|
58
|
-
|
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
59
|
|
60
|
-
|
60
|
+
public
|
61
61
|
|
62
62
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
63
|
+
def self.create(mapObj)
|
64
|
+
#
|
65
|
+
#Creates object of type CaseFiling
|
66
|
+
#
|
67
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
68
|
+
#@return [CaseFiling] of the response of created instance.
|
69
|
+
#@raise [APIException] an exception from the response status
|
70
|
+
return self.execute("8265272d-511d-4ff6-8212-0774c7f56761", CaseFiling.new(mapObj))
|
71
|
+
end
|
72
72
|
|
73
73
|
|
74
74
|
|
@@ -81,28 +81,28 @@ module MasterCard
|
|
81
81
|
|
82
82
|
|
83
83
|
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
84
|
+
def self.retrieveDocumentation(criteria)
|
85
|
+
#
|
86
|
+
#Query objects of type CaseFiling by id and optional criteria
|
87
|
+
#@param [Dict] criteria
|
88
|
+
#@return [CaseFiling] object representing the response.
|
89
|
+
#@raise [APIException] an exception from the response status
|
90
|
+
#
|
91
91
|
|
92
|
-
|
93
|
-
|
92
|
+
return self.execute("93d85a71-3280-4466-bbf5-05848a3633f1",CaseFiling.new(criteria))
|
93
|
+
end
|
94
94
|
|
95
95
|
|
96
96
|
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
97
|
+
def caseFilingStatus
|
98
|
+
#
|
99
|
+
#Updates an object of type CaseFiling
|
100
|
+
#
|
101
|
+
#@return [CaseFiling] object representing the response.
|
102
|
+
#@raise [APIException] an exception from the response status
|
103
|
+
#
|
104
|
+
return self.class.execute("077b746e-3394-4126-8a62-a5f59d5c76d2",self)
|
105
|
+
end
|
106
106
|
|
107
107
|
|
108
108
|
|
@@ -111,15 +111,15 @@ module MasterCard
|
|
111
111
|
|
112
112
|
|
113
113
|
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
114
|
+
def update
|
115
|
+
#
|
116
|
+
#Updates an object of type CaseFiling
|
117
|
+
#
|
118
|
+
#@return [CaseFiling] object representing the response.
|
119
|
+
#@raise [APIException] an exception from the response status
|
120
|
+
#
|
121
|
+
return self.class.execute("4db65791-3d83-4026-95e4-efdc9fe0b17d",self)
|
122
|
+
end
|
123
123
|
|
124
124
|
|
125
125
|
|
@@ -127,9 +127,9 @@ module MasterCard
|
|
127
127
|
|
128
128
|
|
129
129
|
|
130
|
-
|
131
|
-
|
132
|
-
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
133
|
end
|
134
134
|
|
135
135
|
|
@@ -30,49 +30,49 @@ 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 Chargebacks < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
39
|
+
@__store = {
|
40
|
+
'3e0f3247-0473-4ee8-9a2d-17d0777f3b83' => OperationConfig.new("/mastercom/v2/chargebacks/acknowledge", "update", [], []),
|
41
|
+
'502aca5a-c44f-44f7-b011-4406d669ade2' => OperationConfig.new("/mastercom/v2/claims/{claim-id}/chargebacks", "create", [], []),
|
42
|
+
'd3e597d2-6bb7-409a-86ab-c3014fd49393' => OperationConfig.new("/mastercom/v2/claims/{claim-id}/chargebacks/{chargeback-id}/reversal", "create", [], []),
|
43
|
+
'2adaaa0d-3ee9-4cc6-a382-9a2e51c93397' => OperationConfig.new("/mastercom/v2/claims/{claim-id}/chargebacks/{chargeback-id}/documents", "query", [], ["format"]),
|
44
|
+
'bc0f68b4-7984-4e83-943a-40b99dd21c8a' => OperationConfig.new("/mastercom/v2/claims/{claim-id}/chargebacks/loaddataforchargebacks", "query", [], ["chargeback-type"]),
|
45
|
+
'60bbbb77-58ff-470f-ba6c-30ae838c9d20' => OperationConfig.new("/mastercom/v2/chargebacks/status", "update", [], []),
|
46
|
+
'49d92a0d-4904-464b-96cc-53cdc88cdd6a' => OperationConfig.new("/mastercom/v2/claims/{claim-id}/chargebacks/{chargeback-id}", "update", [], []),
|
47
|
+
|
48
|
+
}
|
49
49
|
|
50
|
-
|
50
|
+
protected
|
51
51
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
52
|
+
def self.getOperationConfig(operationUUID)
|
53
|
+
if @__store.key?(operationUUID)
|
54
|
+
return @__store[operationUUID]
|
55
|
+
end
|
56
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
57
|
+
end
|
58
58
|
|
59
|
-
|
60
|
-
|
61
|
-
|
59
|
+
def self.getOperationMetadata()
|
60
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
61
|
+
end
|
62
62
|
|
63
|
-
|
63
|
+
public
|
64
64
|
|
65
65
|
|
66
66
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
67
|
+
def acknowledgeReceivedChargebacks
|
68
|
+
#
|
69
|
+
#Updates an object of type Chargebacks
|
70
|
+
#
|
71
|
+
#@return [Chargebacks] object representing the response.
|
72
|
+
#@raise [APIException] an exception from the response status
|
73
|
+
#
|
74
|
+
return self.class.execute("3e0f3247-0473-4ee8-9a2d-17d0777f3b83",self)
|
75
|
+
end
|
76
76
|
|
77
77
|
|
78
78
|
|
@@ -80,15 +80,15 @@ module MasterCard
|
|
80
80
|
|
81
81
|
|
82
82
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
83
|
+
def self.create(mapObj)
|
84
|
+
#
|
85
|
+
#Creates object of type Chargebacks
|
86
|
+
#
|
87
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
88
|
+
#@return [Chargebacks] of the response of created instance.
|
89
|
+
#@raise [APIException] an exception from the response status
|
90
|
+
return self.execute("502aca5a-c44f-44f7-b011-4406d669ade2", Chargebacks.new(mapObj))
|
91
|
+
end
|
92
92
|
|
93
93
|
|
94
94
|
|
@@ -96,15 +96,15 @@ module MasterCard
|
|
96
96
|
|
97
97
|
|
98
98
|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
99
|
+
def self.createReversal(mapObj)
|
100
|
+
#
|
101
|
+
#Creates object of type Chargebacks
|
102
|
+
#
|
103
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
104
|
+
#@return [Chargebacks] of the response of created instance.
|
105
|
+
#@raise [APIException] an exception from the response status
|
106
|
+
return self.execute("d3e597d2-6bb7-409a-86ab-c3014fd49393", Chargebacks.new(mapObj))
|
107
|
+
end
|
108
108
|
|
109
109
|
|
110
110
|
|
@@ -117,16 +117,16 @@ module MasterCard
|
|
117
117
|
|
118
118
|
|
119
119
|
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
120
|
+
def self.retrieveDocumentation(criteria)
|
121
|
+
#
|
122
|
+
#Query objects of type Chargebacks by id and optional criteria
|
123
|
+
#@param [Dict] criteria
|
124
|
+
#@return [Chargebacks] object representing the response.
|
125
|
+
#@raise [APIException] an exception from the response status
|
126
|
+
#
|
127
127
|
|
128
|
-
|
129
|
-
|
128
|
+
return self.execute("2adaaa0d-3ee9-4cc6-a382-9a2e51c93397",Chargebacks.new(criteria))
|
129
|
+
end
|
130
130
|
|
131
131
|
|
132
132
|
|
@@ -134,28 +134,28 @@ module MasterCard
|
|
134
134
|
|
135
135
|
|
136
136
|
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
137
|
+
def self.getPossibleValueListsForCreate(criteria)
|
138
|
+
#
|
139
|
+
#Query objects of type Chargebacks by id and optional criteria
|
140
|
+
#@param [Dict] criteria
|
141
|
+
#@return [Chargebacks] object representing the response.
|
142
|
+
#@raise [APIException] an exception from the response status
|
143
|
+
#
|
144
144
|
|
145
|
-
|
146
|
-
|
145
|
+
return self.execute("bc0f68b4-7984-4e83-943a-40b99dd21c8a",Chargebacks.new(criteria))
|
146
|
+
end
|
147
147
|
|
148
148
|
|
149
149
|
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
150
|
+
def chargebacksStatus
|
151
|
+
#
|
152
|
+
#Updates an object of type Chargebacks
|
153
|
+
#
|
154
|
+
#@return [Chargebacks] object representing the response.
|
155
|
+
#@raise [APIException] an exception from the response status
|
156
|
+
#
|
157
|
+
return self.class.execute("60bbbb77-58ff-470f-ba6c-30ae838c9d20",self)
|
158
|
+
end
|
159
159
|
|
160
160
|
|
161
161
|
|
@@ -164,15 +164,15 @@ module MasterCard
|
|
164
164
|
|
165
165
|
|
166
166
|
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
167
|
+
def update
|
168
|
+
#
|
169
|
+
#Updates an object of type Chargebacks
|
170
|
+
#
|
171
|
+
#@return [Chargebacks] object representing the response.
|
172
|
+
#@raise [APIException] an exception from the response status
|
173
|
+
#
|
174
|
+
return self.class.execute("49d92a0d-4904-464b-96cc-53cdc88cdd6a",self)
|
175
|
+
end
|
176
176
|
|
177
177
|
|
178
178
|
|
@@ -180,9 +180,9 @@ module MasterCard
|
|
180
180
|
|
181
181
|
|
182
182
|
|
183
|
-
|
184
|
-
|
185
|
-
|
183
|
+
end
|
184
|
+
end
|
185
|
+
end
|
186
186
|
end
|
187
187
|
|
188
188
|
|
@@ -30,44 +30,44 @@ 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 Claims < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
39
|
+
@__store = {
|
40
|
+
'f96d22fe-cfee-4ee3-8825-38f479ae4941' => OperationConfig.new("/mastercom/v2/claims", "create", [], []),
|
41
|
+
'a4ccc731-26c1-4c1d-930c-edb7932294c1' => OperationConfig.new("/mastercom/v2/claims/{claim-id}", "read", [], []),
|
42
|
+
'd503fc41-7047-4296-acfd-6497d84bf80f' => OperationConfig.new("/mastercom/v2/claims/{claim-id}", "update", [], []),
|
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
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
62
|
+
def self.create(mapObj)
|
63
|
+
#
|
64
|
+
#Creates object of type Claims
|
65
|
+
#
|
66
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
67
|
+
#@return [Claims] of the response of created instance.
|
68
|
+
#@raise [APIException] an exception from the response status
|
69
|
+
return self.execute("f96d22fe-cfee-4ee3-8825-38f479ae4941", Claims.new(mapObj))
|
70
|
+
end
|
71
71
|
|
72
72
|
|
73
73
|
|
@@ -79,41 +79,41 @@ module MasterCard
|
|
79
79
|
|
80
80
|
|
81
81
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
82
|
+
def self.retrieve(id, criteria = nil)
|
83
|
+
#
|
84
|
+
#Returns objects of type Claims by id and optional criteria
|
85
|
+
#@param [String] id
|
86
|
+
#@param [Dict] criteria
|
87
|
+
#@return [Claims] object representing the response
|
88
|
+
#@raise [APIException] an exception from the response status
|
89
89
|
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
90
|
+
mapObj = Claims.new
|
91
|
+
if !(id.nil? || id.to_s.empty?)
|
92
|
+
mapObj.set("id", id)
|
93
|
+
end
|
94
|
+
if !criteria.nil?
|
95
|
+
if criteria.instance_of? RequestMap
|
96
|
+
mapObj.setAll(criteria.getObject())
|
97
|
+
else
|
98
|
+
mapObj.setAll(criteria)
|
99
|
+
end
|
100
|
+
end
|
101
101
|
|
102
|
-
|
103
|
-
|
102
|
+
return self.execute("a4ccc731-26c1-4c1d-930c-edb7932294c1",Claims.new(mapObj))
|
103
|
+
end
|
104
104
|
|
105
105
|
|
106
106
|
|
107
107
|
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
108
|
+
def update
|
109
|
+
#
|
110
|
+
#Updates an object of type Claims
|
111
|
+
#
|
112
|
+
#@return [Claims] object representing the response.
|
113
|
+
#@raise [APIException] an exception from the response status
|
114
|
+
#
|
115
|
+
return self.class.execute("d503fc41-7047-4296-acfd-6497d84bf80f",self)
|
116
|
+
end
|
117
117
|
|
118
118
|
|
119
119
|
|
@@ -121,9 +121,9 @@ module MasterCard
|
|
121
121
|
|
122
122
|
|
123
123
|
|
124
|
-
|
125
|
-
|
126
|
-
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
127
127
|
end
|
128
128
|
|
129
129
|
|