mastercard_qkr 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mastercard/api/qkr/auth.rb +130 -0
  3. data/lib/mastercard/api/qkr/beneficiary.rb +166 -0
  4. data/lib/mastercard/api/qkr/{pospayment.rb → beneficiarycustomfield.rb} +33 -32
  5. data/lib/mastercard/api/qkr/card.rb +102 -102
  6. data/lib/mastercard/api/qkr/cart.rb +82 -82
  7. data/lib/mastercard/api/qkr/cartitem.rb +71 -71
  8. data/lib/mastercard/api/qkr/country.rb +53 -53
  9. data/lib/mastercard/api/qkr/creditnote.rb +116 -0
  10. data/lib/mastercard/api/qkr/externaltrans.rb +63 -63
  11. data/lib/mastercard/api/qkr/forgottenpassword.rb +32 -32
  12. data/lib/mastercard/api/qkr/form.rb +99 -0
  13. data/lib/mastercard/api/qkr/formsubmission.rb +104 -0
  14. data/lib/mastercard/api/qkr/lightbox.rb +53 -53
  15. data/lib/mastercard/api/qkr/machine.rb +43 -43
  16. data/lib/mastercard/api/qkr/menu.rb +32 -32
  17. data/lib/mastercard/api/qkr/merchant.rb +53 -53
  18. data/lib/mastercard/api/qkr/order.rb +92 -92
  19. data/lib/mastercard/api/qkr/orderahead.rb +32 -32
  20. data/lib/mastercard/api/qkr/orderaheadmenu.rb +32 -32
  21. data/lib/mastercard/api/qkr/ordercalendar.rb +99 -0
  22. data/lib/mastercard/api/qkr/orderslot.rb +32 -32
  23. data/lib/mastercard/api/qkr/ordertotal.rb +32 -32
  24. data/lib/mastercard/api/qkr/posorder.rb +42 -42
  25. data/lib/mastercard/api/qkr/pospaymentnotification.rb +32 -32
  26. data/lib/mastercard/api/qkr/prodgroup.rb +43 -43
  27. data/lib/mastercard/api/qkr/refund.rb +32 -32
  28. data/lib/mastercard/api/qkr/resendotp.rb +32 -32
  29. data/lib/mastercard/api/qkr/resourceconfig.rb +54 -54
  30. data/lib/mastercard/api/qkr/securityquestion.rb +32 -32
  31. data/lib/mastercard/api/qkr/trans.rb +73 -73
  32. data/lib/mastercard/api/qkr/updatepassword.rb +32 -32
  33. data/lib/mastercard/api/qkr/user.rb +52 -52
  34. data/lib/mastercard/api/qkr/{payment.rb → userimage.rb} +32 -32
  35. data/lib/mastercard/api/qkr/usersession.rb +32 -32
  36. data/lib/mastercard/api/qkr/vendingsession.rb +61 -61
  37. data/lib/mastercard/api/qkr/verifyotp.rb +32 -32
  38. data/lib/mastercard_qkr.rb +8 -2
  39. metadata +12 -6
@@ -30,43 +30,43 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module Qkr
35
- class VendingSession < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module Qkr
35
+ class VendingSession < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '39746855-f9be-45d2-a224-f0f64594f6ff' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/vendingSession", "create", ["X-Auth-Token"], []),
41
- 'fe75af9f-9e21-47ee-9616-ba26123cf90c' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/vendingSession/{id}", "delete", ["X-Auth-Token"], []),
42
-
43
- }
39
+ @__store = {
40
+ 'df667ae8-92a1-4f2f-bcd2-7651236a1fa9' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/vendingSession", "create", ["X-Auth-Token"], []),
41
+ 'cd875fed-db35-46e5-8bba-45c9ae7b02cc' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/vendingSession/{id}", "delete", ["X-Auth-Token"], []),
42
+
43
+ }
44
44
 
45
- protected
45
+ protected
46
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
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
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
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
57
 
58
- public
58
+ public
59
59
 
60
60
 
61
- def self.create(mapObj)
62
- #
63
- #Creates object of type VendingSession
64
- #
65
- #@param Dict mapObj, containing the required parameters to create a new object
66
- #@return [VendingSession] of the response of created instance.
67
- #@raise [APIException] an exception from the response status
68
- return self.execute("39746855-f9be-45d2-a224-f0f64594f6ff", VendingSession.new(mapObj))
69
- end
61
+ def self.create(mapObj)
62
+ #
63
+ #Creates object of type VendingSession
64
+ #
65
+ #@param Dict mapObj, containing the required parameters to create a new object
66
+ #@return [VendingSession] of the response of created instance.
67
+ #@raise [APIException] an exception from the response status
68
+ return self.execute("df667ae8-92a1-4f2f-bcd2-7651236a1fa9", VendingSession.new(mapObj))
69
+ end
70
70
 
71
71
 
72
72
 
@@ -77,49 +77,49 @@ module MasterCard
77
77
 
78
78
 
79
79
 
80
- def self.deleteById(id, map = nil)
81
- #Delete object of type VendingSession by id
80
+ def self.deleteById(id, map = nil)
81
+ #Delete object of type VendingSession by id
82
82
 
83
- #@param [String] id
84
- #@param [Dict] map, containing additional parameters
85
- #@return [VendingSession] of the response of the deleted instance.
86
- #@raise [APIException] an exception from the response status
83
+ #@param [String] id
84
+ #@param [Dict] map, containing additional parameters
85
+ #@return [VendingSession] of the response of the deleted instance.
86
+ #@raise [APIException] an exception from the response status
87
87
 
88
88
 
89
- mapObj = VendingSession.new
90
- if !(id.nil? || id.to_s.empty?)
91
- mapObj.set("id", id)
92
- end
93
- if !map.nil?
94
- if map.instance_of? RequestMap
95
- mapObj.setAll(map.getObject())
96
- else
97
- mapObj.setAll(map)
98
- end
99
- end
89
+ mapObj = VendingSession.new
90
+ if !(id.nil? || id.to_s.empty?)
91
+ mapObj.set("id", id)
92
+ end
93
+ if !map.nil?
94
+ if map.instance_of? RequestMap
95
+ mapObj.setAll(map.getObject())
96
+ else
97
+ mapObj.setAll(map)
98
+ end
99
+ end
100
100
 
101
- return self.execute("fe75af9f-9e21-47ee-9616-ba26123cf90c", mapObj)
102
- end
101
+ return self.execute("cd875fed-db35-46e5-8bba-45c9ae7b02cc", mapObj)
102
+ end
103
103
 
104
104
 
105
- def delete
106
- #
107
- #Delete object of type VendingSession
105
+ def delete
106
+ #
107
+ #Delete object of type VendingSession
108
108
 
109
- #@param [String] id
110
- #@return [VendingSession] of the response of the deleted instance.
111
- #@raise [APIException] an exception from the response status
112
- #
109
+ #@param [String] id
110
+ #@return [VendingSession] of the response of the deleted instance.
111
+ #@raise [APIException] an exception from the response status
112
+ #
113
113
 
114
- return self.class.execute("fe75af9f-9e21-47ee-9616-ba26123cf90c", self)
115
- end
114
+ return self.class.execute("cd875fed-db35-46e5-8bba-45c9ae7b02cc", self)
115
+ end
116
116
 
117
117
 
118
118
 
119
119
 
120
- end
121
- end
122
- end
120
+ end
121
+ end
122
+ end
123
123
  end
124
124
 
125
125
 
@@ -30,43 +30,43 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module Qkr
35
- class VerifyOTP < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module Qkr
35
+ class VerifyOTP < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '2547039c-baec-4c47-98a4-36b380150e60' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/verifyOTP", "update", [], []),
41
-
42
- }
39
+ @__store = {
40
+ '19276d70-c9f2-42e5-af3e-5c442d14a0d3' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/verifyOTP", "update", [], []),
41
+
42
+ }
43
43
 
44
- protected
44
+ protected
45
45
 
46
- def self.getOperationConfig(operationUUID)
47
- if @__store.key?(operationUUID)
48
- return @__store[operationUUID]
49
- end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
51
- end
46
+ def self.getOperationConfig(operationUUID)
47
+ if @__store.key?(operationUUID)
48
+ return @__store[operationUUID]
49
+ end
50
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
51
+ end
52
52
 
53
- def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
55
- end
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
55
+ end
56
56
 
57
- public
57
+ public
58
58
 
59
59
 
60
60
 
61
- def update
62
- #
63
- #Updates an object of type VerifyOTP
64
- #
65
- #@return [VerifyOTP] object representing the response.
66
- #@raise [APIException] an exception from the response status
67
- #
68
- return self.class.execute("2547039c-baec-4c47-98a4-36b380150e60",self)
69
- end
61
+ def update
62
+ #
63
+ #Updates an object of type VerifyOTP
64
+ #
65
+ #@return [VerifyOTP] object representing the response.
66
+ #@raise [APIException] an exception from the response status
67
+ #
68
+ return self.class.execute("19276d70-c9f2-42e5-af3e-5c442d14a0d3",self)
69
+ end
70
70
 
71
71
 
72
72
 
@@ -74,9 +74,9 @@ module MasterCard
74
74
 
75
75
 
76
76
 
77
- end
78
- end
79
- end
77
+ end
78
+ end
79
+ end
80
80
  end
81
81
 
82
82
 
@@ -2,12 +2,18 @@ require 'mastercard_api_core'
2
2
 
3
3
  require 'mastercard/api/qkr/resourceconfig'
4
4
 
5
+ require 'mastercard/api/qkr/auth'
6
+ require 'mastercard/api/qkr/beneficiary'
7
+ require 'mastercard/api/qkr/beneficiarycustomfield'
5
8
  require 'mastercard/api/qkr/card'
6
9
  require 'mastercard/api/qkr/cart'
7
10
  require 'mastercard/api/qkr/cartitem'
8
11
  require 'mastercard/api/qkr/country'
12
+ require 'mastercard/api/qkr/creditnote'
9
13
  require 'mastercard/api/qkr/externaltrans'
10
14
  require 'mastercard/api/qkr/forgottenpassword'
15
+ require 'mastercard/api/qkr/form'
16
+ require 'mastercard/api/qkr/formsubmission'
11
17
  require 'mastercard/api/qkr/lightbox'
12
18
  require 'mastercard/api/qkr/machine'
13
19
  require 'mastercard/api/qkr/menu'
@@ -15,11 +21,10 @@ require 'mastercard/api/qkr/merchant'
15
21
  require 'mastercard/api/qkr/order'
16
22
  require 'mastercard/api/qkr/orderahead'
17
23
  require 'mastercard/api/qkr/orderaheadmenu'
24
+ require 'mastercard/api/qkr/ordercalendar'
18
25
  require 'mastercard/api/qkr/orderslot'
19
26
  require 'mastercard/api/qkr/ordertotal'
20
- require 'mastercard/api/qkr/payment'
21
27
  require 'mastercard/api/qkr/posorder'
22
- require 'mastercard/api/qkr/pospayment'
23
28
  require 'mastercard/api/qkr/pospaymentnotification'
24
29
  require 'mastercard/api/qkr/prodgroup'
25
30
  require 'mastercard/api/qkr/refund'
@@ -28,6 +33,7 @@ require 'mastercard/api/qkr/securityquestion'
28
33
  require 'mastercard/api/qkr/trans'
29
34
  require 'mastercard/api/qkr/updatepassword'
30
35
  require 'mastercard/api/qkr/user'
36
+ require 'mastercard/api/qkr/userimage'
31
37
  require 'mastercard/api/qkr/usersession'
32
38
  require 'mastercard/api/qkr/vendingsession'
33
39
  require 'mastercard/api/qkr/verifyotp'
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.2
4
+ version: 1.1.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: 2018-03-28 00:00:00.000000000 Z
11
+ date: 2018-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mastercard_api_core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 1.4.0
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.4.0
22
+ version: 1.4.8
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 1.4.0
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.4.0
32
+ version: 1.4.8
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: ci_reporter_minitest
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -51,12 +51,18 @@ executables: []
51
51
  extensions: []
52
52
  extra_rdoc_files: []
53
53
  files:
54
+ - lib/mastercard/api/qkr/auth.rb
55
+ - lib/mastercard/api/qkr/beneficiary.rb
56
+ - lib/mastercard/api/qkr/beneficiarycustomfield.rb
54
57
  - lib/mastercard/api/qkr/card.rb
55
58
  - lib/mastercard/api/qkr/cart.rb
56
59
  - lib/mastercard/api/qkr/cartitem.rb
57
60
  - lib/mastercard/api/qkr/country.rb
61
+ - lib/mastercard/api/qkr/creditnote.rb
58
62
  - lib/mastercard/api/qkr/externaltrans.rb
59
63
  - lib/mastercard/api/qkr/forgottenpassword.rb
64
+ - lib/mastercard/api/qkr/form.rb
65
+ - lib/mastercard/api/qkr/formsubmission.rb
60
66
  - lib/mastercard/api/qkr/lightbox.rb
61
67
  - lib/mastercard/api/qkr/machine.rb
62
68
  - lib/mastercard/api/qkr/menu.rb
@@ -64,11 +70,10 @@ files:
64
70
  - lib/mastercard/api/qkr/order.rb
65
71
  - lib/mastercard/api/qkr/orderahead.rb
66
72
  - lib/mastercard/api/qkr/orderaheadmenu.rb
73
+ - lib/mastercard/api/qkr/ordercalendar.rb
67
74
  - lib/mastercard/api/qkr/orderslot.rb
68
75
  - lib/mastercard/api/qkr/ordertotal.rb
69
- - lib/mastercard/api/qkr/payment.rb
70
76
  - lib/mastercard/api/qkr/posorder.rb
71
- - lib/mastercard/api/qkr/pospayment.rb
72
77
  - lib/mastercard/api/qkr/pospaymentnotification.rb
73
78
  - lib/mastercard/api/qkr/prodgroup.rb
74
79
  - lib/mastercard/api/qkr/refund.rb
@@ -78,6 +83,7 @@ files:
78
83
  - lib/mastercard/api/qkr/trans.rb
79
84
  - lib/mastercard/api/qkr/updatepassword.rb
80
85
  - lib/mastercard/api/qkr/user.rb
86
+ - lib/mastercard/api/qkr/userimage.rb
81
87
  - lib/mastercard/api/qkr/usersession.rb
82
88
  - lib/mastercard/api/qkr/vendingsession.rb
83
89
  - lib/mastercard/api/qkr/verifyotp.rb