mastercard_places 1.0.3 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mastercard/api/places/merchantcategorycodes.rb +7 -7
- data/lib/mastercard/api/places/merchantindustries.rb +7 -7
- data/lib/mastercard/api/places/merchantpointofinterest.rb +7 -7
- data/lib/mastercard/api/places/{geocodelocation.rb → placebylocationid.rb} +10 -10
- data/lib/mastercard/api/places/resourceconfig.rb +10 -4
- data/lib/mastercard_places.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 717a2d63ce44e13dd53d53bb5df262e55956ca77
|
4
|
+
data.tar.gz: e47cf7c8b4400e987a22f44b66b93a2f88779592
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07a7647d88967680e0489a05208cf804793b46f13cdd66bdde643e835854f51035519cd097331fb2e13fe61dcb105f82001e334c95ad9a15998dc2a469065bf2
|
7
|
+
data.tar.gz: a6d9bc50b251cd8b316b155b75b11b61870b43716fad93d8a550ce1b0f34a8d8c3b36f99b09ca275d9273b4dc21a0f0882aa3d504f2e221246955ca0d54b9b34
|
@@ -37,21 +37,21 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'e52f2803-07cd-4bcf-9e3e-a4b695d0a40f' => OperationConfig.new("/merchantpoi/v1/merchantpoi/merchantcategorycodes", "query", [], ["MCC_Codes"]),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
44
44
|
protected
|
45
45
|
|
46
|
-
def self.getOperationConfig(
|
47
|
-
if @__store.key?(
|
48
|
-
return @__store[
|
46
|
+
def self.getOperationConfig(operationUUID)
|
47
|
+
if @__store.key?(operationUUID)
|
48
|
+
return @__store[operationUUID]
|
49
49
|
end
|
50
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
50
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.getOperationMetadata()
|
54
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
55
55
|
end
|
56
56
|
|
57
57
|
public
|
@@ -70,7 +70,7 @@ module MasterCard
|
|
70
70
|
#@raise [APIException] an exception from the response status
|
71
71
|
#
|
72
72
|
|
73
|
-
return self.execute("
|
73
|
+
return self.execute("e52f2803-07cd-4bcf-9e3e-a4b695d0a40f",MerchantCategoryCodes.new(criteria))
|
74
74
|
end
|
75
75
|
|
76
76
|
|
@@ -37,21 +37,21 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'13f3e5b7-672c-45dc-ba34-edb4b98dbeee' => OperationConfig.new("/merchantpoi/v1/merchantpoi/merchantindustries", "query", [], ["IND_Codes"]),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
44
44
|
protected
|
45
45
|
|
46
|
-
def self.getOperationConfig(
|
47
|
-
if @__store.key?(
|
48
|
-
return @__store[
|
46
|
+
def self.getOperationConfig(operationUUID)
|
47
|
+
if @__store.key?(operationUUID)
|
48
|
+
return @__store[operationUUID]
|
49
49
|
end
|
50
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
50
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.getOperationMetadata()
|
54
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
55
55
|
end
|
56
56
|
|
57
57
|
public
|
@@ -70,7 +70,7 @@ module MasterCard
|
|
70
70
|
#@raise [APIException] an exception from the response status
|
71
71
|
#
|
72
72
|
|
73
|
-
return self.execute("
|
73
|
+
return self.execute("13f3e5b7-672c-45dc-ba34-edb4b98dbeee",MerchantIndustries.new(criteria))
|
74
74
|
end
|
75
75
|
|
76
76
|
|
@@ -37,21 +37,21 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'123e452a-38a8-4f73-ba31-f89453b454f2' => OperationConfig.new("/merchantpoi/v1/merchantpoi/places", "create", [], ["pageOffset","pageLength","radiusSearch","unit","distance"]),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
44
44
|
protected
|
45
45
|
|
46
|
-
def self.getOperationConfig(
|
47
|
-
if @__store.key?(
|
48
|
-
return @__store[
|
46
|
+
def self.getOperationConfig(operationUUID)
|
47
|
+
if @__store.key?(operationUUID)
|
48
|
+
return @__store[operationUUID]
|
49
49
|
end
|
50
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
50
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.getOperationMetadata()
|
54
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
55
55
|
end
|
56
56
|
|
57
57
|
public
|
@@ -64,7 +64,7 @@ module MasterCard
|
|
64
64
|
#@param Dict mapObj, containing the required parameters to create a new object
|
65
65
|
#@return [MerchantPointOfInterest] of the response of created instance.
|
66
66
|
#@raise [APIException] an exception from the response status
|
67
|
-
return self.execute("
|
67
|
+
return self.execute("123e452a-38a8-4f73-ba31-f89453b454f2", MerchantPointOfInterest.new(mapObj))
|
68
68
|
end
|
69
69
|
|
70
70
|
|
@@ -32,26 +32,26 @@ require "mastercard/core/baseobject"
|
|
32
32
|
module MasterCard
|
33
33
|
module API
|
34
34
|
module Places
|
35
|
-
class
|
35
|
+
class PlaceByLocationId < MasterCard::Core::Model::BaseObject
|
36
36
|
include MasterCard::Core::Model
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'3300a144-82a8-4467-ba51-df9c864cca06' => OperationConfig.new("/merchantpoi/v1/merchantpoi/placeByLocationId", "query", [], ["locationId"]),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
44
44
|
protected
|
45
45
|
|
46
|
-
def self.getOperationConfig(
|
47
|
-
if @__store.key?(
|
48
|
-
return @__store[
|
46
|
+
def self.getOperationConfig(operationUUID)
|
47
|
+
if @__store.key?(operationUUID)
|
48
|
+
return @__store[operationUUID]
|
49
49
|
end
|
50
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
50
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.getOperationMetadata()
|
54
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
55
55
|
end
|
56
56
|
|
57
57
|
public
|
@@ -64,13 +64,13 @@ module MasterCard
|
|
64
64
|
|
65
65
|
def self.query(criteria)
|
66
66
|
#
|
67
|
-
#Query objects of type
|
67
|
+
#Query objects of type PlaceByLocationId by id and optional criteria
|
68
68
|
#@param [Dict] criteria
|
69
|
-
#@return [
|
69
|
+
#@return [PlaceByLocationId] object representing the response.
|
70
70
|
#@raise [APIException] an exception from the response status
|
71
71
|
#
|
72
72
|
|
73
|
-
return self.execute("
|
73
|
+
return self.execute("3300a144-82a8-4467-ba51-df9c864cca06",PlaceByLocationId.new(criteria))
|
74
74
|
end
|
75
75
|
|
76
76
|
|
@@ -37,11 +37,9 @@ module MasterCard
|
|
37
37
|
@@instance = nil
|
38
38
|
|
39
39
|
def initialize
|
40
|
-
@name = "places"
|
41
40
|
@override = nil
|
42
41
|
@host = nil
|
43
42
|
@context = nil
|
44
|
-
@version = "1.0.3"
|
45
43
|
|
46
44
|
Config.registerResourceConfig(self)
|
47
45
|
currentEnvironment = Config.getEnvironment()
|
@@ -56,7 +54,7 @@ module MasterCard
|
|
56
54
|
|
57
55
|
|
58
56
|
def getName
|
59
|
-
return
|
57
|
+
return "places"
|
60
58
|
end
|
61
59
|
|
62
60
|
|
@@ -73,7 +71,15 @@ module MasterCard
|
|
73
71
|
end
|
74
72
|
|
75
73
|
def getVersion
|
76
|
-
return
|
74
|
+
return "places:1.0.5"
|
75
|
+
end
|
76
|
+
|
77
|
+
def getJsonNative
|
78
|
+
return false
|
79
|
+
end
|
80
|
+
|
81
|
+
def getContentTypeOverride
|
82
|
+
return nil
|
77
83
|
end
|
78
84
|
|
79
85
|
def setEnvironment(environmet)
|
data/lib/mastercard_places.rb
CHANGED
@@ -2,7 +2,7 @@ require 'mastercard_api_core'
|
|
2
2
|
|
3
3
|
require 'mastercard/api/places/resourceconfig'
|
4
4
|
|
5
|
-
require 'mastercard/api/places/geocodelocation'
|
6
5
|
require 'mastercard/api/places/merchantcategorycodes'
|
7
6
|
require 'mastercard/api/places/merchantindustries'
|
8
7
|
require 'mastercard/api/places/merchantpointofinterest'
|
8
|
+
require 'mastercard/api/places/placebylocationid'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mastercard_places
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
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: 2018-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mastercard_api_core
|
@@ -51,10 +51,10 @@ executables: []
|
|
51
51
|
extensions: []
|
52
52
|
extra_rdoc_files: []
|
53
53
|
files:
|
54
|
-
- lib/mastercard/api/places/geocodelocation.rb
|
55
54
|
- lib/mastercard/api/places/merchantcategorycodes.rb
|
56
55
|
- lib/mastercard/api/places/merchantindustries.rb
|
57
56
|
- lib/mastercard/api/places/merchantpointofinterest.rb
|
57
|
+
- lib/mastercard/api/places/placebylocationid.rb
|
58
58
|
- lib/mastercard/api/places/resourceconfig.rb
|
59
59
|
- lib/mastercard_places.rb
|
60
60
|
homepage: https://developer.mastercard.com
|