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.
@@ -37,7 +37,7 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '30ba4d62-55b1-4a82-9cd8-6e260c38c0eb' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/prodGroup/{id}", "read", [], []),
40
+ '09b3c6f0-40af-4aef-bbc6-3d1634923897' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/prodGroup/{id}", "read", [], []),
41
41
 
42
42
  }
43
43
 
@@ -51,7 +51,7 @@ module MasterCard
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())
55
55
  end
56
56
 
57
57
  public
@@ -81,7 +81,7 @@ module MasterCard
81
81
  end
82
82
  end
83
83
 
84
- return self.execute("30ba4d62-55b1-4a82-9cd8-6e260c38c0eb",ProdGroup.new(mapObj))
84
+ return self.execute("09b3c6f0-40af-4aef-bbc6-3d1634923897",ProdGroup.new(mapObj))
85
85
  end
86
86
 
87
87
 
@@ -0,0 +1,86 @@
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 Refund < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '48c431a5-4e94-40fc-a3a8-792d4cbfe3bc' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/refund", "create", [], []),
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(), ResourceConfig.instance.getJsonNative())
55
+ end
56
+
57
+ public
58
+
59
+
60
+ def self.create(mapObj)
61
+ #
62
+ #Creates object of type Refund
63
+ #
64
+ #@param Dict mapObj, containing the required parameters to create a new object
65
+ #@return [Refund] of the response of created instance.
66
+ #@raise [APIException] an exception from the response status
67
+ return self.execute("48c431a5-4e94-40fc-a3a8-792d4cbfe3bc", Refund.new(mapObj))
68
+ end
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+ end
77
+ end
78
+ end
79
+ end
80
+
81
+
82
+
83
+
84
+
85
+
86
+
@@ -37,7 +37,7 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '5e5b7df1-fa74-4486-89b3-47dac7f38d44' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/resendOTP", "create", [], []),
40
+ '22160926-e28e-4ab4-a308-c2fbc5ad7c29' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/resendOTP", "create", [], []),
41
41
 
42
42
  }
43
43
 
@@ -51,7 +51,7 @@ module MasterCard
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())
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 [ResendOTP] of the response of created instance.
66
66
  #@raise [APIException] an exception from the response status
67
- return self.execute("5e5b7df1-fa74-4486-89b3-47dac7f38d44", ResendOTP.new(mapObj))
67
+ return self.execute("22160926-e28e-4ab4-a308-c2fbc5ad7c29", ResendOTP.new(mapObj))
68
68
  end
69
69
 
70
70
 
@@ -41,7 +41,8 @@ module MasterCard
41
41
  @override = nil
42
42
  @host = nil
43
43
  @context = nil
44
- @version = "1.0.0"
44
+ @version = "qkr:1.0.1"
45
+ @jsonNative = false
45
46
 
46
47
  Config.registerResourceConfig(self)
47
48
  currentEnvironment = Config.getEnvironment()
@@ -76,6 +77,10 @@ module MasterCard
76
77
  return @version
77
78
  end
78
79
 
80
+ def getJsonNative
81
+ return @jsonNative
82
+ end
83
+
79
84
  def setEnvironment(environmet)
80
85
  if Environment::MAPPING.key?(environmet)
81
86
  tuple = Environment::MAPPING[environmet]
@@ -37,7 +37,7 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '92cd0ec6-7a06-4fac-b0ce-10ae06ff7ef6' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/securityQuestion", "query", [], []),
40
+ 'c87f2906-688f-4fce-98a5-caea6fc9d59d' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/securityQuestion", "query", [], []),
41
41
 
42
42
  }
43
43
 
@@ -51,7 +51,7 @@ module MasterCard
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())
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("92cd0ec6-7a06-4fac-b0ce-10ae06ff7ef6",SecurityQuestion.new(criteria))
73
+ return self.execute("c87f2906-688f-4fce-98a5-caea6fc9d59d",SecurityQuestion.new(criteria))
74
74
  end
75
75
 
76
76
 
@@ -37,10 +37,10 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '0efac433-938b-40f1-95a4-b19453b6ad18' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/trans", "create", ["X-Auth-Token"], []),
41
- 'f0f21349-4cc1-4c32-b955-86ba1cd074ba' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/trans", "query", ["X-Auth-Token"], ["from","to"]),
42
- '5d17010f-fe51-4cf1-9067-b046f33f96b2' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/trans/{id}", "read", ["X-Auth-Token"], []),
43
- '57ada896-d763-4969-aac6-bb7d82b7c92e' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/trans/{id}", "update", ["X-Auth-Token"], []),
40
+ 'e6a3092f-8208-4e45-92fa-c83abe3ce774' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/trans", "create", ["X-Auth-Token"], []),
41
+ '5604afd8-1c27-4001-9183-b7bac6fbc2e6' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/trans", "query", ["X-Auth-Token"], ["from","to"]),
42
+ 'de091737-dfc0-4178-80b5-90342fb64b79' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/trans/{id}", "read", ["X-Auth-Token"], []),
43
+ '8931e1c3-2941-4649-985d-3ab477d85ae8' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/trans/{id}", "update", ["X-Auth-Token"], []),
44
44
 
45
45
  }
46
46
 
@@ -54,7 +54,7 @@ module MasterCard
54
54
  end
55
55
 
56
56
  def self.getOperationMetadata()
57
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
57
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
58
58
  end
59
59
 
60
60
  public
@@ -67,7 +67,7 @@ module MasterCard
67
67
  #@param Dict mapObj, containing the required parameters to create a new object
68
68
  #@return [Trans] of the response of created instance.
69
69
  #@raise [APIException] an exception from the response status
70
- return self.execute("0efac433-938b-40f1-95a4-b19453b6ad18", Trans.new(mapObj))
70
+ return self.execute("e6a3092f-8208-4e45-92fa-c83abe3ce774", Trans.new(mapObj))
71
71
  end
72
72
 
73
73
 
@@ -89,7 +89,7 @@ module MasterCard
89
89
  #@raise [APIException] an exception from the response status
90
90
  #
91
91
 
92
- return self.execute("f0f21349-4cc1-4c32-b955-86ba1cd074ba",Trans.new(criteria))
92
+ return self.execute("5604afd8-1c27-4001-9183-b7bac6fbc2e6",Trans.new(criteria))
93
93
  end
94
94
 
95
95
 
@@ -117,7 +117,7 @@ module MasterCard
117
117
  end
118
118
  end
119
119
 
120
- return self.execute("5d17010f-fe51-4cf1-9067-b046f33f96b2",Trans.new(mapObj))
120
+ return self.execute("de091737-dfc0-4178-80b5-90342fb64b79",Trans.new(mapObj))
121
121
  end
122
122
 
123
123
 
@@ -130,7 +130,7 @@ module MasterCard
130
130
  #@return [Trans] object representing the response.
131
131
  #@raise [APIException] an exception from the response status
132
132
  #
133
- return self.class.execute("57ada896-d763-4969-aac6-bb7d82b7c92e",self)
133
+ return self.class.execute("8931e1c3-2941-4649-985d-3ab477d85ae8",self)
134
134
  end
135
135
 
136
136
 
@@ -37,7 +37,7 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '18e5ac3c-115f-472c-a7cd-8ff7fbb55232' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/updatePassword", "update", ["X-Auth-Token"], []),
40
+ '81e62e92-9525-48f3-a929-06a42a3ec24d' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/updatePassword", "update", ["X-Auth-Token"], []),
41
41
 
42
42
  }
43
43
 
@@ -51,7 +51,7 @@ module MasterCard
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())
55
55
  end
56
56
 
57
57
  public
@@ -65,7 +65,7 @@ module MasterCard
65
65
  #@return [UpdatePassword] object representing the response.
66
66
  #@raise [APIException] an exception from the response status
67
67
  #
68
- return self.class.execute("18e5ac3c-115f-472c-a7cd-8ff7fbb55232",self)
68
+ return self.class.execute("81e62e92-9525-48f3-a929-06a42a3ec24d",self)
69
69
  end
70
70
 
71
71
 
@@ -37,9 +37,9 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '226b99f8-4d0b-45c8-b0f1-e5d5c293bad4' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/user", "create", ["X-Auth-Token"], []),
41
- '57a52cca-7777-4ac8-b335-2d1f09996675' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/user", "query", ["X-Auth-Token"], []),
42
- '96611e40-119a-4448-96fa-121e5e1b3b14' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/user", "update", ["X-Auth-Token"], []),
40
+ 'a5ffe20a-8201-42de-9cfb-2c7c8528b16f' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/user", "create", ["X-Auth-Token"], []),
41
+ '4cac55a1-ef54-4f99-b3a9-556d4efc4d20' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/user", "query", ["X-Auth-Token"], []),
42
+ '7df68227-9170-4625-a20d-af6c43c73e3a' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/user", "update", ["X-Auth-Token"], []),
43
43
 
44
44
  }
45
45
 
@@ -53,7 +53,7 @@ module MasterCard
53
53
  end
54
54
 
55
55
  def self.getOperationMetadata()
56
- 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())
57
57
  end
58
58
 
59
59
  public
@@ -66,7 +66,7 @@ module MasterCard
66
66
  #@param Dict mapObj, containing the required parameters to create a new object
67
67
  #@return [User] of the response of created instance.
68
68
  #@raise [APIException] an exception from the response status
69
- return self.execute("226b99f8-4d0b-45c8-b0f1-e5d5c293bad4", User.new(mapObj))
69
+ return self.execute("a5ffe20a-8201-42de-9cfb-2c7c8528b16f", User.new(mapObj))
70
70
  end
71
71
 
72
72
 
@@ -88,7 +88,7 @@ module MasterCard
88
88
  #@raise [APIException] an exception from the response status
89
89
  #
90
90
 
91
- return self.execute("57a52cca-7777-4ac8-b335-2d1f09996675",User.new(criteria))
91
+ return self.execute("4cac55a1-ef54-4f99-b3a9-556d4efc4d20",User.new(criteria))
92
92
  end
93
93
 
94
94
 
@@ -100,7 +100,7 @@ module MasterCard
100
100
  #@return [User] object representing the response.
101
101
  #@raise [APIException] an exception from the response status
102
102
  #
103
- return self.class.execute("96611e40-119a-4448-96fa-121e5e1b3b14",self)
103
+ return self.class.execute("7df68227-9170-4625-a20d-af6c43c73e3a",self)
104
104
  end
105
105
 
106
106
 
@@ -37,7 +37,7 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- 'b29a7b79-9a77-455d-bb3c-06f41a367cfd' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/userSession", "create", [], []),
40
+ '66be660e-0ea6-49f2-bdfe-7fa5b16b0e63' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/userSession", "create", [], []),
41
41
 
42
42
  }
43
43
 
@@ -51,7 +51,7 @@ module MasterCard
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())
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 [UserSession] of the response of created instance.
66
66
  #@raise [APIException] an exception from the response status
67
- return self.execute("b29a7b79-9a77-455d-bb3c-06f41a367cfd", UserSession.new(mapObj))
67
+ return self.execute("66be660e-0ea6-49f2-bdfe-7fa5b16b0e63", UserSession.new(mapObj))
68
68
  end
69
69
 
70
70
 
@@ -37,7 +37,7 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '4b32c8b8-861e-4885-82e3-2d8644f3da7d' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/verifyOTP", "update", [], []),
40
+ 'e79dc2f7-3908-4809-8317-150491f0b878' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/verifyOTP", "update", [], []),
41
41
 
42
42
  }
43
43
 
@@ -51,7 +51,7 @@ module MasterCard
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())
55
55
  end
56
56
 
57
57
  public
@@ -65,7 +65,7 @@ module MasterCard
65
65
  #@return [VerifyOTP] object representing the response.
66
66
  #@raise [APIException] an exception from the response status
67
67
  #
68
- return self.class.execute("4b32c8b8-861e-4885-82e3-2d8644f3da7d",self)
68
+ return self.class.execute("e79dc2f7-3908-4809-8317-150491f0b878",self)
69
69
  end
70
70
 
71
71
 
@@ -6,10 +6,21 @@ require 'mastercard/api/qkr/card'
6
6
  require 'mastercard/api/qkr/cart'
7
7
  require 'mastercard/api/qkr/cartitem'
8
8
  require 'mastercard/api/qkr/country'
9
+ require 'mastercard/api/qkr/externaltrans'
9
10
  require 'mastercard/api/qkr/forgottenpassword'
10
11
  require 'mastercard/api/qkr/lightbox'
12
+ require 'mastercard/api/qkr/menu'
11
13
  require 'mastercard/api/qkr/merchant'
14
+ require 'mastercard/api/qkr/order'
15
+ require 'mastercard/api/qkr/orderahead'
16
+ require 'mastercard/api/qkr/orderaheadmenu'
17
+ require 'mastercard/api/qkr/orderslot'
18
+ require 'mastercard/api/qkr/ordertotal'
19
+ require 'mastercard/api/qkr/payment'
20
+ require 'mastercard/api/qkr/pospayment'
21
+ require 'mastercard/api/qkr/pospaymentnotification'
12
22
  require 'mastercard/api/qkr/prodgroup'
23
+ require 'mastercard/api/qkr/refund'
13
24
  require 'mastercard/api/qkr/resendotp'
14
25
  require 'mastercard/api/qkr/securityquestion'
15
26
  require 'mastercard/api/qkr/trans'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastercard_qkr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
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-05-26 00:00:00.000000000 Z
11
+ date: 2017-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mastercard_api_core
@@ -55,10 +55,21 @@ files:
55
55
  - lib/mastercard/api/qkr/cart.rb
56
56
  - lib/mastercard/api/qkr/cartitem.rb
57
57
  - lib/mastercard/api/qkr/country.rb
58
+ - lib/mastercard/api/qkr/externaltrans.rb
58
59
  - lib/mastercard/api/qkr/forgottenpassword.rb
59
60
  - lib/mastercard/api/qkr/lightbox.rb
61
+ - lib/mastercard/api/qkr/menu.rb
60
62
  - lib/mastercard/api/qkr/merchant.rb
63
+ - lib/mastercard/api/qkr/order.rb
64
+ - lib/mastercard/api/qkr/orderahead.rb
65
+ - lib/mastercard/api/qkr/orderaheadmenu.rb
66
+ - lib/mastercard/api/qkr/orderslot.rb
67
+ - lib/mastercard/api/qkr/ordertotal.rb
68
+ - lib/mastercard/api/qkr/payment.rb
69
+ - lib/mastercard/api/qkr/pospayment.rb
70
+ - lib/mastercard/api/qkr/pospaymentnotification.rb
61
71
  - lib/mastercard/api/qkr/prodgroup.rb
72
+ - lib/mastercard/api/qkr/refund.rb
62
73
  - lib/mastercard/api/qkr/resendotp.rb
63
74
  - lib/mastercard/api/qkr/resourceconfig.rb
64
75
  - lib/mastercard/api/qkr/securityquestion.rb