mastercard_locations 1.0.3 → 1.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: b301ca220045734b20452ea0adbd3e0e78c2b2d3
4
- data.tar.gz: c3c99edb623ab3c19fb2b8a498e73fd11c30c555
3
+ metadata.gz: 7d802ab5eca4f2c56cac198991cef945a5c1b1d5
4
+ data.tar.gz: b4528659a8d47d6f02a83af89a2f8b8f63b073e0
5
5
  SHA512:
6
- metadata.gz: 22d68f61ee9691064cd9f7908d0a90f53652e3d6ef5e45a5de3ef09fcc76c76fbed36ee732f086efbca310da1a2a45dcd22b79905ca6e5f661e7536904783411
7
- data.tar.gz: b35e0ee6721dbf514fb6884c1fc42945100bec1ba797c497828b0571070f0363c5d79f458fd8c0c2e9f6230095fdaecd8cdb52e3e5805bf28212e9cd9eaa1ec4
6
+ metadata.gz: e5d5d368b00d1db66a63376085bf53ee57bcbb3ea76981bea6b03ad7f8bbd021e5891cc1b559a7de1013a790c89f1e6eb4373c13f04252971698dc559d7118e6
7
+ data.tar.gz: 6b0b2b0b55e822296b7ba75a07ee3a9ca6ec4fe5ed25660254833a1e92b53a3d3612d154cf963f65bc8f089721c1f1ca3da2c4ab5c62d4a4bfd40692d2a9372e
@@ -27,52 +27,56 @@
27
27
 
28
28
 
29
29
  require "mastercard/core/model"
30
+ require "mastercard/core/baseobject"
30
31
 
31
32
  module MasterCard
32
- module API
33
- module Locations
34
- class ATMCountries < MasterCard::Core::Model::BaseObject
35
- include MasterCard::Core::Model
36
- #
33
+ module API
34
+ module Locations
35
+ class ATMCountries < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
37
38
 
38
- @__store = {
39
- '2be5e885-f1f4-45e0-b09b-f7971ae1eacb' => OperationConfig.new("/atms/v1/country", "query", [], []),
40
-
41
- }
39
+ @__store = {
40
+ 'ed2c100d-9df5-4239-93a2-7c41eeb1c7f0' => OperationConfig.new("/atms/v1/country", "query", [], []),
41
+
42
+ }
42
43
 
43
- protected
44
+ protected
44
45
 
45
- def self.getOperationConfig(uuid)
46
- if @__store.key?(uuid)
47
- return @__store[uuid]
48
- end
49
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
- end
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
51
52
 
52
- def self.getOperationMetadata()
53
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
54
- end
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
+ end
55
56
 
56
- public
57
+ public
57
58
 
58
59
 
59
60
 
60
61
 
61
62
 
62
63
 
63
- def self.query(criteria)
64
- #
65
- #Query objects of type ATMCountries by id and optional criteria
66
- #@param type criteria
67
- #@return ATMCountries object representing the response.
68
- #
69
64
 
70
- return self.execute("2be5e885-f1f4-45e0-b09b-f7971ae1eacb",ATMCountries.new(criteria))
71
- end
65
+ def self.query(criteria)
66
+ #
67
+ #Query objects of type ATMCountries by id and optional criteria
68
+ #@param [Dict] criteria
69
+ #@return [ATMCountries] object representing the response.
70
+ #@raise [APIException] an exception from the response status
71
+ #
72
72
 
73
- end
74
- end
75
- end
73
+ return self.execute("ed2c100d-9df5-4239-93a2-7c41eeb1c7f0",ATMCountries.new(criteria))
74
+ end
75
+
76
+
77
+ end
78
+ end
79
+ end
76
80
  end
77
81
 
78
82
 
@@ -27,52 +27,56 @@
27
27
 
28
28
 
29
29
  require "mastercard/core/model"
30
+ require "mastercard/core/baseobject"
30
31
 
31
32
  module MasterCard
32
- module API
33
- module Locations
34
- class ATMCountrySubdivisions < MasterCard::Core::Model::BaseObject
35
- include MasterCard::Core::Model
36
- #
33
+ module API
34
+ module Locations
35
+ class ATMCountrySubdivisions < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
37
38
 
38
- @__store = {
39
- 'b27f9657-6c6c-4646-8fcd-679cc5486c3d' => OperationConfig.new("/atms/v1/countrysubdivision", "query", [], ["Country"]),
40
-
41
- }
39
+ @__store = {
40
+ '377564d9-af95-4d0a-9431-a1f5494d2218' => OperationConfig.new("/atms/v1/countrysubdivision", "query", [], ["Country"]),
41
+
42
+ }
42
43
 
43
- protected
44
+ protected
44
45
 
45
- def self.getOperationConfig(uuid)
46
- if @__store.key?(uuid)
47
- return @__store[uuid]
48
- end
49
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
- end
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
51
52
 
52
- def self.getOperationMetadata()
53
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
54
- end
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
+ end
55
56
 
56
- public
57
+ public
57
58
 
58
59
 
59
60
 
60
61
 
61
62
 
62
63
 
63
- def self.query(criteria)
64
- #
65
- #Query objects of type ATMCountrySubdivisions by id and optional criteria
66
- #@param type criteria
67
- #@return ATMCountrySubdivisions object representing the response.
68
- #
69
64
 
70
- return self.execute("b27f9657-6c6c-4646-8fcd-679cc5486c3d",ATMCountrySubdivisions.new(criteria))
71
- end
65
+ def self.query(criteria)
66
+ #
67
+ #Query objects of type ATMCountrySubdivisions by id and optional criteria
68
+ #@param [Dict] criteria
69
+ #@return [ATMCountrySubdivisions] object representing the response.
70
+ #@raise [APIException] an exception from the response status
71
+ #
72
72
 
73
- end
74
- end
75
- end
73
+ return self.execute("377564d9-af95-4d0a-9431-a1f5494d2218",ATMCountrySubdivisions.new(criteria))
74
+ end
75
+
76
+
77
+ end
78
+ end
79
+ end
76
80
  end
77
81
 
78
82
 
@@ -27,52 +27,56 @@
27
27
 
28
28
 
29
29
  require "mastercard/core/model"
30
+ require "mastercard/core/baseobject"
30
31
 
31
32
  module MasterCard
32
- module API
33
- module Locations
34
- class ATMLocations < MasterCard::Core::Model::BaseObject
35
- include MasterCard::Core::Model
36
- #
33
+ module API
34
+ module Locations
35
+ class ATMLocations < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
37
38
 
38
- @__store = {
39
- '1bc041be-1721-46bb-bbcf-001d1f77f6e4' => OperationConfig.new("/atms/v1/atm", "query", [], ["PageOffset","PageLength","AddressLine1","AddressLine2","City","CountrySubdivision","PostalCode","Country","Latitude","Longitude","DistanceUnit","Radius","SupportEMV","InternationalMaestroAccepted"]),
40
-
41
- }
39
+ @__store = {
40
+ 'b4e8cd17-d2d9-4b26-a33d-42f7100d775e' => OperationConfig.new("/atms/v1/atm", "query", [], ["PageOffset","PageLength","AddressLine1","AddressLine2","City","CountrySubdivision","PostalCode","Country","Latitude","Longitude","DistanceUnit","Radius","SupportEMV","InternationalMaestroAccepted"]),
41
+
42
+ }
42
43
 
43
- protected
44
+ protected
44
45
 
45
- def self.getOperationConfig(uuid)
46
- if @__store.key?(uuid)
47
- return @__store[uuid]
48
- end
49
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
- end
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
51
52
 
52
- def self.getOperationMetadata()
53
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
54
- end
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
+ end
55
56
 
56
- public
57
+ public
57
58
 
58
59
 
59
60
 
60
61
 
61
62
 
62
63
 
63
- def self.query(criteria)
64
- #
65
- #Query objects of type ATMLocations by id and optional criteria
66
- #@param type criteria
67
- #@return ATMLocations object representing the response.
68
- #
69
64
 
70
- return self.execute("1bc041be-1721-46bb-bbcf-001d1f77f6e4",ATMLocations.new(criteria))
71
- end
65
+ def self.query(criteria)
66
+ #
67
+ #Query objects of type ATMLocations by id and optional criteria
68
+ #@param [Dict] criteria
69
+ #@return [ATMLocations] object representing the response.
70
+ #@raise [APIException] an exception from the response status
71
+ #
72
72
 
73
- end
74
- end
75
- end
73
+ return self.execute("b4e8cd17-d2d9-4b26-a33d-42f7100d775e",ATMLocations.new(criteria))
74
+ end
75
+
76
+
77
+ end
78
+ end
79
+ end
76
80
  end
77
81
 
78
82
 
@@ -27,52 +27,56 @@
27
27
 
28
28
 
29
29
  require "mastercard/core/model"
30
+ require "mastercard/core/baseobject"
30
31
 
31
32
  module MasterCard
32
- module API
33
- module Locations
34
- class MerchantCategories < MasterCard::Core::Model::BaseObject
35
- include MasterCard::Core::Model
36
- #
33
+ module API
34
+ module Locations
35
+ class MerchantCategories < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
37
38
 
38
- @__store = {
39
- '38e4ea80-0395-4537-b54c-c9667ee6942e' => OperationConfig.new("/merchants/v1/category", "query", [], []),
40
-
41
- }
39
+ @__store = {
40
+ 'cd06014e-3355-4964-afc9-5a90f6a5b603' => OperationConfig.new("/merchants/v1/category", "query", [], []),
41
+
42
+ }
42
43
 
43
- protected
44
+ protected
44
45
 
45
- def self.getOperationConfig(uuid)
46
- if @__store.key?(uuid)
47
- return @__store[uuid]
48
- end
49
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
- end
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
51
52
 
52
- def self.getOperationMetadata()
53
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
54
- end
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
+ end
55
56
 
56
- public
57
+ public
57
58
 
58
59
 
59
60
 
60
61
 
61
62
 
62
63
 
63
- def self.query(criteria)
64
- #
65
- #Query objects of type MerchantCategories by id and optional criteria
66
- #@param type criteria
67
- #@return MerchantCategories object representing the response.
68
- #
69
64
 
70
- return self.execute("38e4ea80-0395-4537-b54c-c9667ee6942e",MerchantCategories.new(criteria))
71
- end
65
+ def self.query(criteria)
66
+ #
67
+ #Query objects of type MerchantCategories by id and optional criteria
68
+ #@param [Dict] criteria
69
+ #@return [MerchantCategories] object representing the response.
70
+ #@raise [APIException] an exception from the response status
71
+ #
72
72
 
73
- end
74
- end
75
- end
73
+ return self.execute("cd06014e-3355-4964-afc9-5a90f6a5b603",MerchantCategories.new(criteria))
74
+ end
75
+
76
+
77
+ end
78
+ end
79
+ end
76
80
  end
77
81
 
78
82
 
@@ -27,52 +27,56 @@
27
27
 
28
28
 
29
29
  require "mastercard/core/model"
30
+ require "mastercard/core/baseobject"
30
31
 
31
32
  module MasterCard
32
- module API
33
- module Locations
34
- class MerchantCountries < MasterCard::Core::Model::BaseObject
35
- include MasterCard::Core::Model
36
- #
33
+ module API
34
+ module Locations
35
+ class MerchantCountries < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
37
38
 
38
- @__store = {
39
- '385be4a1-8fe0-4d40-94c0-05bf3239be8a' => OperationConfig.new("/merchants/v1/country", "query", [], ["details"]),
40
-
41
- }
39
+ @__store = {
40
+ '97b34feb-33c1-48c2-950b-845b92441541' => OperationConfig.new("/merchants/v1/country", "query", [], ["details"]),
41
+
42
+ }
42
43
 
43
- protected
44
+ protected
44
45
 
45
- def self.getOperationConfig(uuid)
46
- if @__store.key?(uuid)
47
- return @__store[uuid]
48
- end
49
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
- end
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
51
52
 
52
- def self.getOperationMetadata()
53
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
54
- end
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
+ end
55
56
 
56
- public
57
+ public
57
58
 
58
59
 
59
60
 
60
61
 
61
62
 
62
63
 
63
- def self.query(criteria)
64
- #
65
- #Query objects of type MerchantCountries by id and optional criteria
66
- #@param type criteria
67
- #@return MerchantCountries object representing the response.
68
- #
69
64
 
70
- return self.execute("385be4a1-8fe0-4d40-94c0-05bf3239be8a",MerchantCountries.new(criteria))
71
- end
65
+ def self.query(criteria)
66
+ #
67
+ #Query objects of type MerchantCountries by id and optional criteria
68
+ #@param [Dict] criteria
69
+ #@return [MerchantCountries] object representing the response.
70
+ #@raise [APIException] an exception from the response status
71
+ #
72
72
 
73
- end
74
- end
75
- end
73
+ return self.execute("97b34feb-33c1-48c2-950b-845b92441541",MerchantCountries.new(criteria))
74
+ end
75
+
76
+
77
+ end
78
+ end
79
+ end
76
80
  end
77
81
 
78
82
 
@@ -27,52 +27,56 @@
27
27
 
28
28
 
29
29
  require "mastercard/core/model"
30
+ require "mastercard/core/baseobject"
30
31
 
31
32
  module MasterCard
32
- module API
33
- module Locations
34
- class MerchantCountrySubdivisions < MasterCard::Core::Model::BaseObject
35
- include MasterCard::Core::Model
36
- #
33
+ module API
34
+ module Locations
35
+ class MerchantCountrySubdivisions < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
37
38
 
38
- @__store = {
39
- '7a83a5f5-2751-4279-a029-e4b20f3fb9df' => OperationConfig.new("/merchants/v1/countrysubdivision", "query", [], ["details","country"]),
40
-
41
- }
39
+ @__store = {
40
+ '97cc22b0-5484-486a-8810-d17a8cb91988' => OperationConfig.new("/merchants/v1/countrysubdivision", "query", [], ["details","country"]),
41
+
42
+ }
42
43
 
43
- protected
44
+ protected
44
45
 
45
- def self.getOperationConfig(uuid)
46
- if @__store.key?(uuid)
47
- return @__store[uuid]
48
- end
49
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
- end
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
51
52
 
52
- def self.getOperationMetadata()
53
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
54
- end
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
+ end
55
56
 
56
- public
57
+ public
57
58
 
58
59
 
59
60
 
60
61
 
61
62
 
62
63
 
63
- def self.query(criteria)
64
- #
65
- #Query objects of type MerchantCountrySubdivisions by id and optional criteria
66
- #@param type criteria
67
- #@return MerchantCountrySubdivisions object representing the response.
68
- #
69
64
 
70
- return self.execute("7a83a5f5-2751-4279-a029-e4b20f3fb9df",MerchantCountrySubdivisions.new(criteria))
71
- end
65
+ def self.query(criteria)
66
+ #
67
+ #Query objects of type MerchantCountrySubdivisions by id and optional criteria
68
+ #@param [Dict] criteria
69
+ #@return [MerchantCountrySubdivisions] object representing the response.
70
+ #@raise [APIException] an exception from the response status
71
+ #
72
72
 
73
- end
74
- end
75
- end
73
+ return self.execute("97cc22b0-5484-486a-8810-d17a8cb91988",MerchantCountrySubdivisions.new(criteria))
74
+ end
75
+
76
+
77
+ end
78
+ end
79
+ end
76
80
  end
77
81
 
78
82
 
@@ -27,52 +27,56 @@
27
27
 
28
28
 
29
29
  require "mastercard/core/model"
30
+ require "mastercard/core/baseobject"
30
31
 
31
32
  module MasterCard
32
- module API
33
- module Locations
34
- class MerchantLocations < MasterCard::Core::Model::BaseObject
35
- include MasterCard::Core::Model
36
- #
33
+ module API
34
+ module Locations
35
+ class MerchantLocations < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
37
38
 
38
- @__store = {
39
- '31441e96-1d51-43b4-98ce-b838379dc209' => OperationConfig.new("/merchants/v1/merchant", "query", [], ["Details","PageOffset","PageLength","Category","AddressLine1","AddressLine2","City","CountrySubdivision","PostalCode","Country","Latitude","Longitude","DistanceUnit","Radius","OfferMerchantID"]),
40
-
41
- }
39
+ @__store = {
40
+ '560a47ec-230e-4bb9-a4e5-0c8dc9c275ce' => OperationConfig.new("/merchants/v1/merchant", "query", [], ["Details","PageOffset","PageLength","Category","AddressLine1","AddressLine2","City","CountrySubdivision","PostalCode","Country","Latitude","Longitude","DistanceUnit","Radius","OfferMerchantID"]),
41
+
42
+ }
42
43
 
43
- protected
44
+ protected
44
45
 
45
- def self.getOperationConfig(uuid)
46
- if @__store.key?(uuid)
47
- return @__store[uuid]
48
- end
49
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
- end
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
51
52
 
52
- def self.getOperationMetadata()
53
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
54
- end
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
+ end
55
56
 
56
- public
57
+ public
57
58
 
58
59
 
59
60
 
60
61
 
61
62
 
62
63
 
63
- def self.query(criteria)
64
- #
65
- #Query objects of type MerchantLocations by id and optional criteria
66
- #@param type criteria
67
- #@return MerchantLocations object representing the response.
68
- #
69
64
 
70
- return self.execute("31441e96-1d51-43b4-98ce-b838379dc209",MerchantLocations.new(criteria))
71
- end
65
+ def self.query(criteria)
66
+ #
67
+ #Query objects of type MerchantLocations by id and optional criteria
68
+ #@param [Dict] criteria
69
+ #@return [MerchantLocations] object representing the response.
70
+ #@raise [APIException] an exception from the response status
71
+ #
72
72
 
73
- end
74
- end
75
- end
73
+ return self.execute("560a47ec-230e-4bb9-a4e5-0c8dc9c275ce",MerchantLocations.new(criteria))
74
+ end
75
+
76
+
77
+ end
78
+ end
79
+ end
76
80
  end
77
81
 
78
82
 
@@ -29,65 +29,70 @@ require "mastercard/core/constants"
29
29
  require "mastercard/core/config"
30
30
 
31
31
  module MasterCard
32
- module API
33
- module Locations
34
- class ResourceConfig
35
- include MasterCard::Core
32
+ module API
33
+ module Locations
34
+ class ResourceConfig
35
+ include MasterCard::Core
36
36
 
37
- @@instance = nil
37
+ @@instance = nil
38
38
 
39
- def initialize
40
- @name = "locations"
41
- @override = nil
42
- @host = nil
43
- @context = nil
44
- @version = "1.0.3"
39
+ def initialize
40
+ @name = "locations"
41
+ @override = nil
42
+ @host = nil
43
+ @context = nil
44
+ @version = "1.0.4"
45
45
 
46
- Config.registerResourceConfig(self)
47
- currentEnvironment = Config.getEnvironment()
48
- self.setEnvironment(currentEnvironment)
46
+ Config.registerResourceConfig(self)
47
+ currentEnvironment = Config.getEnvironment()
48
+ self.setEnvironment(currentEnvironment)
49
49
 
50
- end
50
+ end
51
51
 
52
52
 
53
- def self.instance
54
- return @@instance
55
- end
53
+ def self.instance
54
+ return @@instance
55
+ end
56
56
 
57
57
 
58
- def getName
59
- return @name
60
- end
58
+ def getName
59
+ return @name
60
+ end
61
61
 
62
62
 
63
- def getHost
64
- unless @override.nil? || @override == 0
65
- return @override
66
- else
67
- return @host
68
- end
69
- end
63
+ def getHost
64
+ unless @override.nil? || @override == 0
65
+ return @override
66
+ else
67
+ return @host
68
+ end
69
+ end
70
70
 
71
- def getContext
72
- return @context
73
- end
71
+ def getContext
72
+ return @context
73
+ end
74
74
 
75
- def getVersion
76
- return @version
77
- end
75
+ def getVersion
76
+ return @version
77
+ end
78
78
 
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
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
86
86
 
87
- @@instance = ResourceConfig.new
87
+ def setCustomEnvironment(host,context)
88
+ @host = host
89
+ @context = context
90
+ end
88
91
 
89
- private_class_method :new
90
- end
91
- end
92
- end
92
+ @@instance = ResourceConfig.new
93
+
94
+ private_class_method :new
95
+ end
96
+ end
97
+ end
93
98
  end
@@ -1,9 +1,11 @@
1
1
  require 'mastercard_api_core'
2
- require 'mastercard/api/locations/atmcountrysubdivisions'
2
+
3
+ require 'mastercard/api/locations/resourceconfig'
4
+
3
5
  require 'mastercard/api/locations/atmcountries'
4
- require 'mastercard/api/locations/merchantcountrysubdivisions'
6
+ require 'mastercard/api/locations/atmcountrysubdivisions'
5
7
  require 'mastercard/api/locations/atmlocations'
6
- require 'mastercard/api/locations/resourceconfig'
7
8
  require 'mastercard/api/locations/merchantcategories'
8
9
  require 'mastercard/api/locations/merchantcountries'
10
+ require 'mastercard/api/locations/merchantcountrysubdivisions'
9
11
  require 'mastercard/api/locations/merchantlocations'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastercard_locations
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - MasterCard Worldwide
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.3.0
19
+ version: 1.4.0
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.3.0
22
+ version: 1.4.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: 1.3.0
29
+ version: 1.4.0
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.3.0
32
+ version: 1.4.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: ci_reporter_minitest
35
35
  requirement: !ruby/object:Gem::Requirement