mastercard_parametermanagementservices 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00fe93af61ea4c592b3dc5bca4483902704c7cd4
4
- data.tar.gz: b26bcb8f949159ff967dc3d793b3ce51163a927f
3
+ metadata.gz: 9c1cea9b7afc6d64f43e9bc862394674b17c50df
4
+ data.tar.gz: 1e6f93a49e01df144667bfbb80817130908971fe
5
5
  SHA512:
6
- metadata.gz: 2f5a5e7ae53676944d5150400bc811dc7cbf20e09a80199a828e6936ec9561277f2fd18f0f46b523c0036a3e8335f9927174ca549b7b7a2e125350734c2565d3
7
- data.tar.gz: 1d62b564b0de0e41cecf017657916702b96b43671ae82f242444acf62dab6a5f37f860cbe6b0da4f50d2ed6c90d7b9ed64cca6d9bfa185ff28a212587447151f
6
+ metadata.gz: 2674acd3fb4056bf4c2817a816335e820202d86d1566c74a4673b0e2890c1adc7366d457339090f813b5659d494cc8dff5c433cc45e3a73957bc258dfd12c0b8
7
+ data.tar.gz: 0bd044dd72fbab5ad40adc254f2cac7f7e5527d753661ad23568dd530000427f614354669e1d2a1ae335a3e456fe536426b57e752013083143ece85ef58dce58
@@ -0,0 +1,105 @@
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 ParameterManagementServices
35
+ class DailyCreditLimit < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '76268f3e-2bd4-42f2-9d5e-7f3d7c0fcdce' => OperationConfig.new("/send/v1/partners/{partnerId}/daily-limit", "query", [], []),
41
+ '9a7b5fb2-cbb2-4d8e-95ff-05e64fea0a04' => OperationConfig.new("/send/v1/partners/{partnerId}/daily-limit", "update", [], []),
42
+
43
+ }
44
+
45
+ protected
46
+
47
+ def self.getOperationConfig(operationUUID)
48
+ if @__store.key?(operationUUID)
49
+ return @__store[operationUUID]
50
+ end
51
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
52
+ end
53
+
54
+ def self.getOperationMetadata()
55
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
56
+ end
57
+
58
+ public
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+ def self.read(criteria)
67
+ #
68
+ #Query objects of type DailyCreditLimit by id and optional criteria
69
+ #@param [Dict] criteria
70
+ #@return [DailyCreditLimit] object representing the response.
71
+ #@raise [APIException] an exception from the response status
72
+ #
73
+
74
+ return self.execute("76268f3e-2bd4-42f2-9d5e-7f3d7c0fcdce",DailyCreditLimit.new(criteria))
75
+ end
76
+
77
+
78
+
79
+ def update
80
+ #
81
+ #Updates an object of type DailyCreditLimit
82
+ #
83
+ #@return [DailyCreditLimit] object representing the response.
84
+ #@raise [APIException] an exception from the response status
85
+ #
86
+ return self.class.execute("9a7b5fb2-cbb2-4d8e-95ff-05e64fea0a04",self)
87
+ end
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ end
96
+ end
97
+ end
98
+ end
99
+
100
+
101
+
102
+
103
+
104
+
105
+
@@ -37,22 +37,22 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- 'ca9a08f5-ad01-45e4-a32e-ccf5a53ec52d' => OperationConfig.new("/send/v1/partners/{partnerId}/partner-status", "query", [], []),
41
- 'ef0fd976-6f1a-4841-8fe0-37a66db3b937' => OperationConfig.new("/send/v1/partners/{partnerId}/partner-status", "update", [], []),
40
+ '0cbb0e92-37da-4e7d-9225-48b3b8956bc3' => OperationConfig.new("/send/v1/partners/{partnerId}/partner-status", "query", [], []),
41
+ 'f1d13d2c-7ba5-40dd-8803-2b2657143813' => OperationConfig.new("/send/v1/partners/{partnerId}/partner-status", "update", [], []),
42
42
 
43
43
  }
44
44
 
45
45
  protected
46
46
 
47
- def self.getOperationConfig(uuid)
48
- if @__store.key?(uuid)
49
- return @__store[uuid]
47
+ def self.getOperationConfig(operationUUID)
48
+ if @__store.key?(operationUUID)
49
+ return @__store[operationUUID]
50
50
  end
51
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
51
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
52
52
  end
53
53
 
54
54
  def self.getOperationMetadata()
55
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
56
56
  end
57
57
 
58
58
  public
@@ -71,7 +71,7 @@ module MasterCard
71
71
  #@raise [APIException] an exception from the response status
72
72
  #
73
73
 
74
- return self.execute("ca9a08f5-ad01-45e4-a32e-ccf5a53ec52d",PartnerStatus.new(criteria))
74
+ return self.execute("0cbb0e92-37da-4e7d-9225-48b3b8956bc3",PartnerStatus.new(criteria))
75
75
  end
76
76
 
77
77
 
@@ -83,7 +83,7 @@ module MasterCard
83
83
  #@return [PartnerStatus] object representing the response.
84
84
  #@raise [APIException] an exception from the response status
85
85
  #
86
- return self.class.execute("ef0fd976-6f1a-4841-8fe0-37a66db3b937",self)
86
+ return self.class.execute("f1d13d2c-7ba5-40dd-8803-2b2657143813",self)
87
87
  end
88
88
 
89
89
 
@@ -37,11 +37,9 @@ module MasterCard
37
37
  @@instance = nil
38
38
 
39
39
  def initialize
40
- @name = "parameter-management-services"
41
40
  @override = nil
42
41
  @host = nil
43
42
  @context = nil
44
- @version = "1.0.2"
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 "parameter-management-services"
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 "parameter-management-services:1.0.3"
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,4 +2,5 @@ require 'mastercard_api_core'
2
2
 
3
3
  require 'mastercard/api/parametermanagementservices/resourceconfig'
4
4
 
5
+ require 'mastercard/api/parametermanagementservices/dailycreditlimit'
5
6
  require 'mastercard/api/parametermanagementservices/partnerstatus'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastercard_parametermanagementservices
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
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-06 00:00:00.000000000 Z
11
+ date: 2018-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mastercard_api_core
@@ -51,6 +51,7 @@ executables: []
51
51
  extensions: []
52
52
  extra_rdoc_files: []
53
53
  files:
54
+ - lib/mastercard/api/parametermanagementservices/dailycreditlimit.rb
54
55
  - lib/mastercard/api/parametermanagementservices/partnerstatus.rb
55
56
  - lib/mastercard/api/parametermanagementservices/resourceconfig.rb
56
57
  - lib/mastercard_parametermanagementservices.rb