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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd6861b81a3a862c6fbe273ab9159ef690fb261e
4
- data.tar.gz: 1537ced4232f57be9d3d2426b456e9603adeab8c
3
+ metadata.gz: 717a2d63ce44e13dd53d53bb5df262e55956ca77
4
+ data.tar.gz: e47cf7c8b4400e987a22f44b66b93a2f88779592
5
5
  SHA512:
6
- metadata.gz: 6bd64ef3119cadddb2af5883ebe983750b3db5f5d7bb8f05449af9a4da10552a8342468736f6f3851f169982d0c83632e22a6f33815256f220bc04c88ff64be0
7
- data.tar.gz: d93fdac4d30d513341d94c251558b59fe003e77028abdb195c7527b553cebcf1195da5b079f00e8572b52e097e42301a7219aab4086d523e87e426338b48bd6f
6
+ metadata.gz: 07a7647d88967680e0489a05208cf804793b46f13cdd66bdde643e835854f51035519cd097331fb2e13fe61dcb105f82001e334c95ad9a15998dc2a469065bf2
7
+ data.tar.gz: a6d9bc50b251cd8b316b155b75b11b61870b43716fad93d8a550ce1b0f34a8d8c3b36f99b09ca275d9273b4dc21a0f0882aa3d504f2e221246955ca0d54b9b34
@@ -37,21 +37,21 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- 'b3865d0f-477a-4237-bfff-457d9733b219' => OperationConfig.new("/merchantpoi/v1/merchantpoi/merchantcategorycodes", "query", [], ["MCC_Codes"]),
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(uuid)
47
- if @__store.key?(uuid)
48
- return @__store[uuid]
46
+ def self.getOperationConfig(operationUUID)
47
+ if @__store.key?(operationUUID)
48
+ return @__store[operationUUID]
49
49
  end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
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("b3865d0f-477a-4237-bfff-457d9733b219",MerchantCategoryCodes.new(criteria))
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
- '3f81146b-509e-4af3-aa35-083bc417f9ce' => OperationConfig.new("/merchantpoi/v1/merchantpoi/merchantindustries", "query", [], ["IND_Codes"]),
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(uuid)
47
- if @__store.key?(uuid)
48
- return @__store[uuid]
46
+ def self.getOperationConfig(operationUUID)
47
+ if @__store.key?(operationUUID)
48
+ return @__store[operationUUID]
49
49
  end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
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("3f81146b-509e-4af3-aa35-083bc417f9ce",MerchantIndustries.new(criteria))
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
- 'd556c3fb-570f-44f2-ae23-15bc7738b39b' => OperationConfig.new("/merchantpoi/v1/merchantpoi/places", "create", [], ["pageOffset","pageLength","radiusSearch","unit","distance"]),
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(uuid)
47
- if @__store.key?(uuid)
48
- return @__store[uuid]
46
+ def self.getOperationConfig(operationUUID)
47
+ if @__store.key?(operationUUID)
48
+ return @__store[operationUUID]
49
49
  end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
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("d556c3fb-570f-44f2-ae23-15bc7738b39b", MerchantPointOfInterest.new(mapObj))
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 GeocodeLocation < MasterCard::Core::Model::BaseObject
35
+ class PlaceByLocationId < MasterCard::Core::Model::BaseObject
36
36
  include MasterCard::Core::Model
37
37
  #
38
38
 
39
39
  @__store = {
40
- 'f1c9db58-6498-4538-86f0-ccd9a0084a17' => OperationConfig.new("/merchantpoi/v1/merchantpoi/geoCodeLocation", "query", [], ["addressLine1","addressLine2","cityName","countrySubDivision","countryCode","postalCode"]),
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(uuid)
47
- if @__store.key?(uuid)
48
- return @__store[uuid]
46
+ def self.getOperationConfig(operationUUID)
47
+ if @__store.key?(operationUUID)
48
+ return @__store[operationUUID]
49
49
  end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
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 GeocodeLocation by id and optional criteria
67
+ #Query objects of type PlaceByLocationId by id and optional criteria
68
68
  #@param [Dict] criteria
69
- #@return [GeocodeLocation] object representing the response.
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("f1c9db58-6498-4538-86f0-ccd9a0084a17",GeocodeLocation.new(criteria))
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 @name
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 @version
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)
@@ -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.3
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: 2017-02-03 00:00:00.000000000 Z
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