mastercard_merchantidentifier 1.0.3 → 2.0.0
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4e790ee3022f24027ad101dcb5c509b1d75af97ae179bc058cf7187c1aab5f9c
|
4
|
+
data.tar.gz: 48901df08f254dbf1ffb1b1deb709825c26e0e1ebbdc9835c46d3a3ce38056ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83ff2e67e299b407de8873391988af96196aa7093297e9cc9c8eda6fed77870d8b32e33a291d7a42eafba045b3aa3e1bd1caef88edece9b2cff07fa4fa9e90c1
|
7
|
+
data.tar.gz: 7c3b5c633c0e75ae20748b2cf7aff69b00b6e210de9251044bd43dcc567827950b8c22db61b2ecd1b33a2190c27a6b23e6ef8276cbe555072b705e9bb63753a0
|
@@ -30,31 +30,31 @@ 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 MerchantIdentifier
|
35
|
+
class MerchantIds < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
39
|
+
@__store = {
|
40
|
+
'301aa6b6-1563-420b-8d0d-90d9a083b968' => OperationConfig.new("/merchant-id/v2/merchant-ids", "query", [], ["merchant_id","type"]),
|
41
|
+
|
42
|
+
}
|
43
43
|
|
44
|
-
|
44
|
+
protected
|
45
45
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
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
52
|
|
53
|
-
|
54
|
-
|
55
|
-
|
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
56
|
|
57
|
-
|
57
|
+
public
|
58
58
|
|
59
59
|
|
60
60
|
|
@@ -62,21 +62,21 @@ module MasterCard
|
|
62
62
|
|
63
63
|
|
64
64
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
65
|
+
def self.query(criteria)
|
66
|
+
#
|
67
|
+
#Query objects of type MerchantIds by id and optional criteria
|
68
|
+
#@param [Dict] criteria
|
69
|
+
#@return [MerchantIds] object representing the response.
|
70
|
+
#@raise [APIException] an exception from the response status
|
71
|
+
#
|
72
72
|
|
73
|
-
|
74
|
-
|
73
|
+
return self.execute("301aa6b6-1563-420b-8d0d-90d9a083b968",MerchantIds.new(criteria))
|
74
|
+
end
|
75
75
|
|
76
76
|
|
77
|
-
|
78
|
-
|
79
|
-
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
80
|
end
|
81
81
|
|
82
82
|
|
@@ -29,70 +29,76 @@ require "mastercard/core/constants"
|
|
29
29
|
require "mastercard/core/config"
|
30
30
|
|
31
31
|
module MasterCard
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
32
|
+
module API
|
33
|
+
module MerchantIdentifier
|
34
|
+
class ResourceConfig
|
35
|
+
include MasterCard::Core
|
36
36
|
|
37
|
-
|
37
|
+
@@instance = nil
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
@context = nil
|
44
|
-
@version = "1.0.3"
|
39
|
+
def initialize
|
40
|
+
@override = nil
|
41
|
+
@host = nil
|
42
|
+
@context = nil
|
45
43
|
|
46
|
-
|
47
|
-
|
48
|
-
|
44
|
+
Config.registerResourceConfig(self)
|
45
|
+
currentEnvironment = Config.getEnvironment()
|
46
|
+
self.setEnvironment(currentEnvironment)
|
49
47
|
|
50
|
-
|
48
|
+
end
|
51
49
|
|
52
50
|
|
53
|
-
|
54
|
-
|
55
|
-
|
51
|
+
def self.instance
|
52
|
+
return @@instance
|
53
|
+
end
|
56
54
|
|
57
55
|
|
58
|
-
|
59
|
-
|
60
|
-
|
56
|
+
def getName
|
57
|
+
return "merchant-identifier"
|
58
|
+
end
|
61
59
|
|
62
60
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
61
|
+
def getHost
|
62
|
+
unless @override.nil? || @override == 0
|
63
|
+
return @override
|
64
|
+
else
|
65
|
+
return @host
|
66
|
+
end
|
67
|
+
end
|
70
68
|
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
def getContext
|
70
|
+
return @context
|
71
|
+
end
|
74
72
|
|
75
|
-
|
76
|
-
|
77
|
-
|
73
|
+
def getVersion
|
74
|
+
return "merchant-identifier:2.0.0"
|
75
|
+
end
|
78
76
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
@host = tuple[0]
|
83
|
-
@context = tuple[1]
|
84
|
-
end
|
85
|
-
end
|
77
|
+
def getJsonNative
|
78
|
+
return false
|
79
|
+
end
|
86
80
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
end
|
81
|
+
def getContentTypeOverride
|
82
|
+
return nil
|
83
|
+
end
|
91
84
|
|
92
|
-
|
85
|
+
def setEnvironment(environmet)
|
86
|
+
if Environment::MAPPING.key?(environmet)
|
87
|
+
tuple = Environment::MAPPING[environmet]
|
88
|
+
@host = tuple[0]
|
89
|
+
@context = tuple[1]
|
90
|
+
end
|
91
|
+
end
|
93
92
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
93
|
+
def setCustomEnvironment(host,context)
|
94
|
+
@host = host
|
95
|
+
@context = context
|
96
|
+
end
|
97
|
+
|
98
|
+
@@instance = ResourceConfig.new
|
99
|
+
|
100
|
+
private_class_method :new
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
98
104
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mastercard_merchantidentifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
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:
|
11
|
+
date: 2019-05-14 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
|
@@ -51,7 +51,7 @@ executables: []
|
|
51
51
|
extensions: []
|
52
52
|
extra_rdoc_files: []
|
53
53
|
files:
|
54
|
-
- lib/mastercard/api/merchantidentifier/
|
54
|
+
- lib/mastercard/api/merchantidentifier/merchantids.rb
|
55
55
|
- lib/mastercard/api/merchantidentifier/resourceconfig.rb
|
56
56
|
- lib/mastercard_merchantidentifier.rb
|
57
57
|
homepage: https://developer.mastercard.com
|
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
76
|
rubyforge_project:
|
77
|
-
rubygems_version: 2.
|
77
|
+
rubygems_version: 2.7.7
|
78
78
|
signing_key:
|
79
79
|
specification_version: 4
|
80
80
|
summary: MasterCard MerchantIdentifier SDK
|