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
- SHA1:
3
- metadata.gz: 973bb6e62b7aa2cd3092a71670e780665dded307
4
- data.tar.gz: 4f70393d3f3ed2559eeca512effa69bb16a1c1c8
2
+ SHA256:
3
+ metadata.gz: 4e790ee3022f24027ad101dcb5c509b1d75af97ae179bc058cf7187c1aab5f9c
4
+ data.tar.gz: 48901df08f254dbf1ffb1b1deb709825c26e0e1ebbdc9835c46d3a3ce38056ad
5
5
  SHA512:
6
- metadata.gz: 02b3d8935fd562fc101bd777bf543bd01e463d289cf039b3c91d730bf7b3f5822dd25fd55c5459485ba15aa5ca6e1e6e4d1f89c1d94ea38ef1dc4edcbf5069e8
7
- data.tar.gz: 551f61462cf676296ba7b6db5f836b7cfe9e445d25a87656ea5e02ba53d6ff8bb8102d085d0ec1fc641d59f3fa5f717eb4b2772afdd968290e93a5089aed2004
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
- module API
34
- module MerchantIdentifier
35
- class MerchantIdentifier < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module MerchantIdentifier
35
+ class MerchantIds < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '5cc3f00c-8e5d-4a6e-9ed0-31ed11c8399c' => OperationConfig.new("/merchantid/v1/merchantid", "query", [], ["MerchantId","Type"]),
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
- protected
44
+ protected
45
45
 
46
- def self.getOperationConfig(uuid)
47
- if @__store.key?(uuid)
48
- return @__store[uuid]
49
- end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
51
- end
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
- def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
- end
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
- public
57
+ public
58
58
 
59
59
 
60
60
 
@@ -62,21 +62,21 @@ module MasterCard
62
62
 
63
63
 
64
64
 
65
- def self.query(criteria)
66
- #
67
- #Query objects of type MerchantIdentifier by id and optional criteria
68
- #@param [Dict] criteria
69
- #@return [MerchantIdentifier] object representing the response.
70
- #@raise [APIException] an exception from the response status
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
- return self.execute("5cc3f00c-8e5d-4a6e-9ed0-31ed11c8399c",MerchantIdentifier.new(criteria))
74
- end
73
+ return self.execute("301aa6b6-1563-420b-8d0d-90d9a083b968",MerchantIds.new(criteria))
74
+ end
75
75
 
76
76
 
77
- end
78
- end
79
- end
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
- module API
33
- module MerchantIdentifier
34
- class ResourceConfig
35
- include MasterCard::Core
32
+ module API
33
+ module MerchantIdentifier
34
+ class ResourceConfig
35
+ include MasterCard::Core
36
36
 
37
- @@instance = nil
37
+ @@instance = nil
38
38
 
39
- def initialize
40
- @name = "merchant-identifier"
41
- @override = nil
42
- @host = nil
43
- @context = nil
44
- @version = "1.0.3"
39
+ def initialize
40
+ @override = nil
41
+ @host = nil
42
+ @context = nil
45
43
 
46
- Config.registerResourceConfig(self)
47
- currentEnvironment = Config.getEnvironment()
48
- self.setEnvironment(currentEnvironment)
44
+ Config.registerResourceConfig(self)
45
+ currentEnvironment = Config.getEnvironment()
46
+ self.setEnvironment(currentEnvironment)
49
47
 
50
- end
48
+ end
51
49
 
52
50
 
53
- def self.instance
54
- return @@instance
55
- end
51
+ def self.instance
52
+ return @@instance
53
+ end
56
54
 
57
55
 
58
- def getName
59
- return @name
60
- end
56
+ def getName
57
+ return "merchant-identifier"
58
+ end
61
59
 
62
60
 
63
- def getHost
64
- unless @override.nil? || @override == 0
65
- return @override
66
- else
67
- return @host
68
- end
69
- end
61
+ def getHost
62
+ unless @override.nil? || @override == 0
63
+ return @override
64
+ else
65
+ return @host
66
+ end
67
+ end
70
68
 
71
- def getContext
72
- return @context
73
- end
69
+ def getContext
70
+ return @context
71
+ end
74
72
 
75
- def getVersion
76
- return @version
77
- end
73
+ def getVersion
74
+ return "merchant-identifier:2.0.0"
75
+ end
78
76
 
79
- def setEnvironment(environmet)
80
- if Environment::MAPPING.key?(environmet)
81
- tuple = Environment::MAPPING[environmet]
82
- @host = tuple[0]
83
- @context = tuple[1]
84
- end
85
- end
77
+ def getJsonNative
78
+ return false
79
+ end
86
80
 
87
- def setCustomEnvironment(host,context)
88
- @host = host
89
- @context = context
90
- end
81
+ def getContentTypeOverride
82
+ return nil
83
+ end
91
84
 
92
- @@instance = ResourceConfig.new
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
- private_class_method :new
95
- end
96
- end
97
- end
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
@@ -2,4 +2,4 @@ require 'mastercard_api_core'
2
2
 
3
3
  require 'mastercard/api/merchantidentifier/resourceconfig'
4
4
 
5
- require 'mastercard/api/merchantidentifier/merchantidentifier'
5
+ require 'mastercard/api/merchantidentifier/merchantids'
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: 1.0.3
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: 2017-02-03 00:00:00.000000000 Z
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.0
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.0
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/merchantidentifier.rb
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.5.1
77
+ rubygems_version: 2.7.7
78
78
  signing_key:
79
79
  specification_version: 4
80
80
  summary: MasterCard MerchantIdentifier SDK