mastercard_mediameasurement 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
2
  SHA1:
3
- metadata.gz: 7cd84f2102c523d322f38529dc4706a9d2c91fe4
4
- data.tar.gz: c8e4ed5c295967b33a8cd46503a3bca8de3f674d
3
+ metadata.gz: c6d53db71cc9e1c463e1785d63ab9f70409acb73
4
+ data.tar.gz: 7edaad88ac9db4d72f51b6ece11fa793d492b7c2
5
5
  SHA512:
6
- metadata.gz: b458693badd343d80a47678918279a921c5c2dd552aae7c976a44b1574140898fdce76ea499c1996e08bded70bc81bd6198b187a188551d722281f318e7c4614
7
- data.tar.gz: ef4cd9199a093dc7e52d6c783172da8903fc3fb1d119825c6337e1ea982d6510f9d2e71b9a2dabd5e622e957e9b71344d6ccfd41086786fe708efe56bf7f448a
6
+ metadata.gz: 9ae025bc6c75b05702650c0d02294a4f2c2a6fb7e787df752f0b7c9ed7bebbebc6d2ec91ee63b5d766deb8dfd31ecd9f8d62aa65a7e48de0661ff44aa8fe63cf
7
+ data.tar.gz: 579a5daa0da4607124d90f294e7b2990ef8fd9494e40ee51fdb834143bc60730f05fe9b24e72ac192928c22ac0d81566bb090dee10b98275ad8bb7a1cc529b59
@@ -37,7 +37,7 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '33542cab-4ae2-4dbb-887f-603f03341c34' => OperationConfig.new("/mediameasurement/v1/mediameasurementsvc.svc/mediameasurements", "create", [], []),
40
+ 'e6c2de50-9be0-43ef-8254-37c0e4266230' => OperationConfig.new("/mediameasurementv2/v2/mediameasurement/mediameasurements", "create", [], []),
41
41
 
42
42
  }
43
43
 
@@ -64,7 +64,7 @@ module MasterCard
64
64
  #@param Dict mapObj, containing the required parameters to create a new object
65
65
  #@return [MediaMeasurements] of the response of created instance.
66
66
  #@raise [APIException] an exception from the response status
67
- return self.execute("33542cab-4ae2-4dbb-887f-603f03341c34", MediaMeasurements.new(mapObj))
67
+ return self.execute("e6c2de50-9be0-43ef-8254-37c0e4266230", MediaMeasurements.new(mapObj))
68
68
  end
69
69
 
70
70
 
@@ -41,7 +41,7 @@ module MasterCard
41
41
  @override = nil
42
42
  @host = nil
43
43
  @context = nil
44
- @version = "1.0.3"
44
+ @version = "2.0.0"
45
45
 
46
46
  Config.registerResourceConfig(self)
47
47
  currentEnvironment = Config.getEnvironment()
@@ -0,0 +1,87 @@
1
+ #
2
+ # Copyright (c) 2016 MasterCard International Incorporated
3
+ # All rights reserved.
4
+ #
5
+ # Redistribution and use in source and binary forms, with or without modification, are
6
+ # permitted provided that the following conditions are met:
7
+ #
8
+ # Redistributions of source code must retain the above copyright notice, this list of
9
+ # conditions and the following disclaimer.
10
+ # Redistributions in binary form must reproduce the above copyright notice, this list of
11
+ # conditions and the following disclaimer in the documentation and/or other materials
12
+ # provided with the distribution.
13
+ # Neither the name of the MasterCard International Incorporated nor the names of its
14
+ # contributors may be used to endorse or promote products derived from this software
15
+ # without specific prior written permission.
16
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
17
+ # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
19
+ # SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
21
+ # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22
+ # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
23
+ # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24
+ # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25
+ # SUCH DAMAGE.
26
+ #
27
+
28
+
29
+ require "mastercard/core/model"
30
+ require "mastercard/core/baseobject"
31
+
32
+ module MasterCard
33
+ module API
34
+ module MediaMeasurement
35
+ class Subscriptions < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ 'b9f07480-6557-4194-abde-45025ace0381' => OperationConfig.new("/mediameasurementv2/v2/mediameasurement/subscriptions", "query", [], ["PageOffset","PageLength"]),
41
+
42
+ }
43
+
44
+ protected
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
52
+
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
+ end
56
+
57
+ public
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+ def self.query(criteria)
66
+ #
67
+ #Query objects of type Subscriptions by id and optional criteria
68
+ #@param [Dict] criteria
69
+ #@return [Subscriptions] object representing the response.
70
+ #@raise [APIException] an exception from the response status
71
+ #
72
+
73
+ return self.execute("b9f07480-6557-4194-abde-45025ace0381",Subscriptions.new(criteria))
74
+ end
75
+
76
+
77
+ end
78
+ end
79
+ end
80
+ end
81
+
82
+
83
+
84
+
85
+
86
+
87
+
@@ -3,3 +3,4 @@ require 'mastercard_api_core'
3
3
  require 'mastercard/api/mediameasurement/resourceconfig'
4
4
 
5
5
  require 'mastercard/api/mediameasurement/mediameasurements'
6
+ require 'mastercard/api/mediameasurement/subscriptions'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastercard_mediameasurement
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: 2017-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mastercard_api_core
@@ -53,6 +53,7 @@ extra_rdoc_files: []
53
53
  files:
54
54
  - lib/mastercard/api/mediameasurement/mediameasurements.rb
55
55
  - lib/mastercard/api/mediameasurement/resourceconfig.rb
56
+ - lib/mastercard/api/mediameasurement/subscriptions.rb
56
57
  - lib/mastercard_mediameasurement.rb
57
58
  homepage: https://developer.mastercard.com
58
59
  licenses: