mastercard_qkr 1.0.0 → 1.0.1

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: 78b04ee584c7efc2400770b8c78ddb0e57cb093e
4
- data.tar.gz: 2f544f17a0cbabbb69d0e5a74fe12a3c97f89d37
3
+ metadata.gz: 673acb77d11092f58c7f9ac50e6b53d8cfca3f66
4
+ data.tar.gz: d3747993d92a82d4865e67f6177f231bb70eaafa
5
5
  SHA512:
6
- metadata.gz: 909f4ea0f9a238e72a45fd42861c51a1d401ac75e8ec7440413204e9ee67653559294667fa6796945e01086cd3e4668eeb48a03f528c44e87a363a2a7c8328b3
7
- data.tar.gz: 542a8358ad598673b4b1c1696ff1db1c2216e1fdf7f7a4983525b953ba4d1af275e372aed81a4c0427d7cc3348082101d316ef91c37bd519818acd721158e15e
6
+ metadata.gz: f3187ed53a1156d7870ab69c3b9009bfd04cd1d5bfd1284ee9d4934574dd1a55c5b0fad413a6438464733981cff9f42931b610662098b73eecf5da2ac528bafc
7
+ data.tar.gz: f5df1bee73074c4cbdebfc2d497e99d916a6a8882c43a386dcd44e202d47891a3b9b3dd6ba9afa8f3ce4e1581a2d13af09c47a68704f4d05116075816455c4cd
@@ -37,10 +37,11 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- 'b864a120-291f-4544-91c3-55a0e1a2a5fc' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card", "create", ["X-Auth-Token"], []),
41
- 'f98258a6-6a56-4c47-9e6b-b051b3d8ffbb' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card/{id}", "delete", ["X-Auth-Token"], []),
42
- 'cedbdad5-c7cd-4e88-aa35-8941458b59bf' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card", "query", ["X-Auth-Token"], []),
43
- '406e8ff1-6cd5-44cf-ab40-ba1094595118' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card/{id}", "update", ["X-Auth-Token"], []),
40
+ 'daa1f90d-1487-4d73-b2c0-dc7036daeaeb' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card", "create", ["X-Auth-Token"], []),
41
+ 'ba0d3392-ac40-44b6-ae12-7277dee138d6' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card/{id}", "delete", ["X-Auth-Token"], []),
42
+ '6bab5b21-60b1-4fdd-a83c-0c6fca16c750' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card", "query", ["X-Auth-Token"], []),
43
+ 'ec8541a2-44f5-4bfa-9f95-d54e85e588d3' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card/{id}", "read", ["X-Auth-Token"], ["amountMinorUnits","currency","id2"]),
44
+ '78e3e573-0a93-45a4-823e-e94d7f55feb5' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card/{id}", "update", ["X-Auth-Token"], []),
44
45
 
45
46
  }
46
47
 
@@ -54,7 +55,7 @@ module MasterCard
54
55
  end
55
56
 
56
57
  def self.getOperationMetadata()
57
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
58
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
58
59
  end
59
60
 
60
61
  public
@@ -67,7 +68,7 @@ module MasterCard
67
68
  #@param Dict mapObj, containing the required parameters to create a new object
68
69
  #@return [Card] of the response of created instance.
69
70
  #@raise [APIException] an exception from the response status
70
- return self.execute("b864a120-291f-4544-91c3-55a0e1a2a5fc", Card.new(mapObj))
71
+ return self.execute("daa1f90d-1487-4d73-b2c0-dc7036daeaeb", Card.new(mapObj))
71
72
  end
72
73
 
73
74
 
@@ -100,7 +101,7 @@ module MasterCard
100
101
  end
101
102
  end
102
103
 
103
- return self.execute("f98258a6-6a56-4c47-9e6b-b051b3d8ffbb", mapObj)
104
+ return self.execute("ba0d3392-ac40-44b6-ae12-7277dee138d6", mapObj)
104
105
  end
105
106
 
106
107
 
@@ -113,7 +114,7 @@ module MasterCard
113
114
  #@raise [APIException] an exception from the response status
114
115
  #
115
116
 
116
- return self.class.execute("f98258a6-6a56-4c47-9e6b-b051b3d8ffbb", self)
117
+ return self.class.execute("ba0d3392-ac40-44b6-ae12-7277dee138d6", self)
117
118
  end
118
119
 
119
120
 
@@ -132,11 +133,40 @@ module MasterCard
132
133
  #@raise [APIException] an exception from the response status
133
134
  #
134
135
 
135
- return self.execute("cedbdad5-c7cd-4e88-aa35-8941458b59bf",Card.new(criteria))
136
+ return self.execute("6bab5b21-60b1-4fdd-a83c-0c6fca16c750",Card.new(criteria))
136
137
  end
137
138
 
138
139
 
139
140
 
141
+
142
+
143
+
144
+ def self.read(id, criteria = nil)
145
+ #
146
+ #Returns objects of type Card by id and optional criteria
147
+ #@param [String] id
148
+ #@param [Dict] criteria
149
+ #@return [Card] object representing the response
150
+ #@raise [APIException] an exception from the response status
151
+
152
+ mapObj = Card.new
153
+ if !(id.nil? || id.to_s.empty?)
154
+ mapObj.set("id", id)
155
+ end
156
+ if !criteria.nil?
157
+ if criteria.instance_of? RequestMap
158
+ mapObj.setAll(criteria.getObject())
159
+ else
160
+ mapObj.setAll(criteria)
161
+ end
162
+ end
163
+
164
+ return self.execute("ec8541a2-44f5-4bfa-9f95-d54e85e588d3",Card.new(mapObj))
165
+ end
166
+
167
+
168
+
169
+
140
170
  def update
141
171
  #
142
172
  #Updates an object of type Card
@@ -144,7 +174,7 @@ module MasterCard
144
174
  #@return [Card] object representing the response.
145
175
  #@raise [APIException] an exception from the response status
146
176
  #
147
- return self.class.execute("406e8ff1-6cd5-44cf-ab40-ba1094595118",self)
177
+ return self.class.execute("78e3e573-0a93-45a4-823e-e94d7f55feb5",self)
148
178
  end
149
179
 
150
180
 
@@ -37,8 +37,9 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '32eb27b1-7705-4a96-9fd6-11d3bbfd90fe' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cart", "query", ["X-Auth-Token"], []),
41
- '5716c8bb-ec52-4425-bd15-53f4f014e4fe' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cart/{id}", "read", ["X-Auth-Token"], []),
40
+ '7b500d6f-041b-426c-bf8d-891ef0fc50f0' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cart/{id}", "delete", ["X-Auth-Token"], []),
41
+ '6a9087f0-378c-49f4-bf56-901e3f60e18b' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cart", "query", ["X-Auth-Token"], []),
42
+ '72764c57-b41a-48ee-b392-c92fe6d2ae02' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cart/{id}", "read", ["X-Auth-Token"], []),
42
43
 
43
44
  }
44
45
 
@@ -52,7 +53,7 @@ module MasterCard
52
53
  end
53
54
 
54
55
  def self.getOperationMetadata()
55
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
56
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
56
57
  end
57
58
 
58
59
  public
@@ -61,6 +62,49 @@ module MasterCard
61
62
 
62
63
 
63
64
 
65
+ def self.deleteById(id, map = nil)
66
+ #Delete object of type Cart by id
67
+
68
+ #@param [String] id
69
+ #@param [Dict] map, containing additional parameters
70
+ #@return [Cart] of the response of the deleted instance.
71
+ #@raise [APIException] an exception from the response status
72
+
73
+
74
+ mapObj = Cart.new
75
+ if !(id.nil? || id.to_s.empty?)
76
+ mapObj.set("id", id)
77
+ end
78
+ if !map.nil?
79
+ if map.instance_of? RequestMap
80
+ mapObj.setAll(map.getObject())
81
+ else
82
+ mapObj.setAll(map)
83
+ end
84
+ end
85
+
86
+ return self.execute("7b500d6f-041b-426c-bf8d-891ef0fc50f0", mapObj)
87
+ end
88
+
89
+
90
+ def delete
91
+ #
92
+ #Delete object of type Cart
93
+
94
+ #@param [String] id
95
+ #@return [Cart] of the response of the deleted instance.
96
+ #@raise [APIException] an exception from the response status
97
+ #
98
+
99
+ return self.class.execute("7b500d6f-041b-426c-bf8d-891ef0fc50f0", self)
100
+ end
101
+
102
+
103
+
104
+
105
+
106
+
107
+
64
108
 
65
109
 
66
110
  def self.query(criteria)
@@ -71,7 +115,7 @@ module MasterCard
71
115
  #@raise [APIException] an exception from the response status
72
116
  #
73
117
 
74
- return self.execute("32eb27b1-7705-4a96-9fd6-11d3bbfd90fe",Cart.new(criteria))
118
+ return self.execute("6a9087f0-378c-49f4-bf56-901e3f60e18b",Cart.new(criteria))
75
119
  end
76
120
 
77
121
 
@@ -99,7 +143,7 @@ module MasterCard
99
143
  end
100
144
  end
101
145
 
102
- return self.execute("5716c8bb-ec52-4425-bd15-53f4f014e4fe",Cart.new(mapObj))
146
+ return self.execute("72764c57-b41a-48ee-b392-c92fe6d2ae02",Cart.new(mapObj))
103
147
  end
104
148
 
105
149
 
@@ -37,8 +37,9 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- 'cf871f17-87a1-4ba6-8b8a-66147b103860' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cartItem", "create", ["X-Auth-Token"], []),
41
- '1a0979bd-e2dc-40c9-aa11-366b9f22d582' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cartItem/{id}", "delete", ["X-Auth-Token"], []),
40
+ 'e2d7966d-403b-4408-a670-385e07665e5e' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cartItem", "create", ["X-Auth-Token"], []),
41
+ 'a583479a-c58b-49dc-8e57-499e634d46df' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cartItem/{id}", "delete", ["X-Auth-Token"], []),
42
+ '55a51dc8-fff4-44ba-96d9-f8fde3f7bc57' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cartItem/{id}", "update", ["X-Auth-Token"], []),
42
43
 
43
44
  }
44
45
 
@@ -52,7 +53,7 @@ module MasterCard
52
53
  end
53
54
 
54
55
  def self.getOperationMetadata()
55
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
56
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
56
57
  end
57
58
 
58
59
  public
@@ -65,7 +66,7 @@ module MasterCard
65
66
  #@param Dict mapObj, containing the required parameters to create a new object
66
67
  #@return [CartItem] of the response of created instance.
67
68
  #@raise [APIException] an exception from the response status
68
- return self.execute("cf871f17-87a1-4ba6-8b8a-66147b103860", CartItem.new(mapObj))
69
+ return self.execute("e2d7966d-403b-4408-a670-385e07665e5e", CartItem.new(mapObj))
69
70
  end
70
71
 
71
72
 
@@ -98,7 +99,7 @@ module MasterCard
98
99
  end
99
100
  end
100
101
 
101
- return self.execute("1a0979bd-e2dc-40c9-aa11-366b9f22d582", mapObj)
102
+ return self.execute("a583479a-c58b-49dc-8e57-499e634d46df", mapObj)
102
103
  end
103
104
 
104
105
 
@@ -111,12 +112,29 @@ module MasterCard
111
112
  #@raise [APIException] an exception from the response status
112
113
  #
113
114
 
114
- return self.class.execute("1a0979bd-e2dc-40c9-aa11-366b9f22d582", self)
115
+ return self.class.execute("a583479a-c58b-49dc-8e57-499e634d46df", self)
115
116
  end
116
117
 
117
118
 
118
119
 
119
120
 
121
+
122
+ def update
123
+ #
124
+ #Updates an object of type CartItem
125
+ #
126
+ #@return [CartItem] object representing the response.
127
+ #@raise [APIException] an exception from the response status
128
+ #
129
+ return self.class.execute("55a51dc8-fff4-44ba-96d9-f8fde3f7bc57",self)
130
+ end
131
+
132
+
133
+
134
+
135
+
136
+
137
+
120
138
  end
121
139
  end
122
140
  end
@@ -37,7 +37,8 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '61696eb0-64bc-4a03-8986-adcabb840e9e' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/country", "query", [], []),
40
+ 'd89ad569-97f9-4e50-aa07-d52b4c8dfbb5' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/country", "query", [], []),
41
+ '383a11fd-7c38-4a6e-bcb0-e93d719ba941' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/country/{id}", "read", [], []),
41
42
 
42
43
  }
43
44
 
@@ -51,7 +52,7 @@ module MasterCard
51
52
  end
52
53
 
53
54
  def self.getOperationMetadata()
54
- 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())
55
56
  end
56
57
 
57
58
  public
@@ -70,10 +71,39 @@ module MasterCard
70
71
  #@raise [APIException] an exception from the response status
71
72
  #
72
73
 
73
- return self.execute("61696eb0-64bc-4a03-8986-adcabb840e9e",Country.new(criteria))
74
+ return self.execute("d89ad569-97f9-4e50-aa07-d52b4c8dfbb5",Country.new(criteria))
74
75
  end
75
76
 
76
77
 
78
+
79
+
80
+
81
+
82
+ def self.read(id, criteria = nil)
83
+ #
84
+ #Returns objects of type Country by id and optional criteria
85
+ #@param [String] id
86
+ #@param [Dict] criteria
87
+ #@return [Country] object representing the response
88
+ #@raise [APIException] an exception from the response status
89
+
90
+ mapObj = Country.new
91
+ if !(id.nil? || id.to_s.empty?)
92
+ mapObj.set("id", id)
93
+ end
94
+ if !criteria.nil?
95
+ if criteria.instance_of? RequestMap
96
+ mapObj.setAll(criteria.getObject())
97
+ else
98
+ mapObj.setAll(criteria)
99
+ end
100
+ end
101
+
102
+ return self.execute("383a11fd-7c38-4a6e-bcb0-e93d719ba941",Country.new(mapObj))
103
+ end
104
+
105
+
106
+
77
107
  end
78
108
  end
79
109
  end
@@ -0,0 +1,134 @@
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 Qkr
35
+ class ExternalTrans < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ 'b6d956d2-66d0-4caa-bc9c-95c7a7b93745' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/externalTrans", "create", [], []),
41
+ 'eaca55ac-3894-41d0-a332-c5266ff3e7e7' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/externalTrans", "query", [], []),
42
+ 'f4a28155-9ebc-4234-880b-5e5be7955dbd' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/externalTrans/{id}", "read", [], []),
43
+
44
+ }
45
+
46
+ protected
47
+
48
+ def self.getOperationConfig(uuid)
49
+ if @__store.key?(uuid)
50
+ return @__store[uuid]
51
+ end
52
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
53
+ end
54
+
55
+ def self.getOperationMetadata()
56
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
57
+ end
58
+
59
+ public
60
+
61
+
62
+ def self.create(mapObj)
63
+ #
64
+ #Creates object of type ExternalTrans
65
+ #
66
+ #@param Dict mapObj, containing the required parameters to create a new object
67
+ #@return [ExternalTrans] of the response of created instance.
68
+ #@raise [APIException] an exception from the response status
69
+ return self.execute("b6d956d2-66d0-4caa-bc9c-95c7a7b93745", ExternalTrans.new(mapObj))
70
+ end
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+ def self.query(criteria)
84
+ #
85
+ #Query objects of type ExternalTrans by id and optional criteria
86
+ #@param [Dict] criteria
87
+ #@return [ExternalTrans] object representing the response.
88
+ #@raise [APIException] an exception from the response status
89
+ #
90
+
91
+ return self.execute("eaca55ac-3894-41d0-a332-c5266ff3e7e7",ExternalTrans.new(criteria))
92
+ end
93
+
94
+
95
+
96
+
97
+
98
+
99
+ def self.read(id, criteria = nil)
100
+ #
101
+ #Returns objects of type ExternalTrans by id and optional criteria
102
+ #@param [String] id
103
+ #@param [Dict] criteria
104
+ #@return [ExternalTrans] object representing the response
105
+ #@raise [APIException] an exception from the response status
106
+
107
+ mapObj = ExternalTrans.new
108
+ if !(id.nil? || id.to_s.empty?)
109
+ mapObj.set("id", id)
110
+ end
111
+ if !criteria.nil?
112
+ if criteria.instance_of? RequestMap
113
+ mapObj.setAll(criteria.getObject())
114
+ else
115
+ mapObj.setAll(criteria)
116
+ end
117
+ end
118
+
119
+ return self.execute("f4a28155-9ebc-4234-880b-5e5be7955dbd",ExternalTrans.new(mapObj))
120
+ end
121
+
122
+
123
+
124
+ end
125
+ end
126
+ end
127
+ end
128
+
129
+
130
+
131
+
132
+
133
+
134
+