mastercard_qkr 1.2.0 → 1.3.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/beneficiary.rb +10 -10
  3. data/lib/mastercard/api/qkr/beneficiarycustomfield.rb +3 -3
  4. data/lib/mastercard/api/qkr/card.rb +12 -12
  5. data/lib/mastercard/api/qkr/cart.rb +8 -8
  6. data/lib/mastercard/api/qkr/cartitem.rb +8 -8
  7. data/lib/mastercard/api/qkr/{vendingsession.rb → cartvalidation.rb} +6 -50
  8. data/lib/mastercard/api/qkr/country.rb +5 -5
  9. data/lib/mastercard/api/qkr/creditnote.rb +5 -5
  10. data/lib/mastercard/api/qkr/externaltrans.rb +25 -7
  11. data/lib/mastercard/api/qkr/forgottenpassword.rb +3 -3
  12. data/lib/mastercard/api/qkr/form.rb +3 -3
  13. data/lib/mastercard/api/qkr/formsubmission.rb +5 -5
  14. data/lib/mastercard/api/qkr/{machine.rb → inboxmessage.rb} +9 -21
  15. data/lib/mastercard/api/qkr/lightbox.rb +5 -5
  16. data/lib/mastercard/api/qkr/menu.rb +3 -3
  17. data/lib/mastercard/api/qkr/merchant.rb +5 -5
  18. data/lib/mastercard/api/qkr/order.rb +10 -10
  19. data/lib/mastercard/api/qkr/orderahead.rb +3 -3
  20. data/lib/mastercard/api/qkr/orderaheadmenu.rb +3 -3
  21. data/lib/mastercard/api/qkr/ordercalendar.rb +3 -3
  22. data/lib/mastercard/api/qkr/orderslot.rb +3 -3
  23. data/lib/mastercard/api/qkr/ordertotal.rb +3 -3
  24. data/lib/mastercard/api/qkr/posorder.rb +5 -5
  25. data/lib/mastercard/api/qkr/pospaymentnotification.rb +3 -3
  26. data/lib/mastercard/api/qkr/prodgroup.rb +3 -3
  27. data/lib/mastercard/api/qkr/refund.rb +3 -3
  28. data/lib/mastercard/api/qkr/resendotp.rb +3 -3
  29. data/lib/mastercard/api/qkr/resourceconfig.rb +2 -2
  30. data/lib/mastercard/api/qkr/securityquestion.rb +3 -3
  31. data/lib/mastercard/api/qkr/trans.rb +9 -9
  32. data/lib/mastercard/api/qkr/updatepassword.rb +3 -3
  33. data/lib/mastercard/api/qkr/user.rb +10 -10
  34. data/lib/mastercard/api/qkr/userimage.rb +6 -6
  35. data/lib/mastercard/api/qkr/usersession.rb +47 -3
  36. data/lib/mastercard/api/qkr/verifyotp.rb +3 -3
  37. data/lib/mastercard_qkr.rb +2 -3
  38. metadata +8 -10
  39. data/lib/mastercard/api/qkr/auth.rb +0 -130
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.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
- - MasterCard Worldwide
7
+ - Mastercard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-03 00:00:00.000000000 Z
11
+ date: 2019-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mastercard_api_core
@@ -44,27 +44,26 @@ dependencies:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
- description: MasterCard Qkr Description
48
- email:
49
- - APISupport@mastercard.com
47
+ description: SDK for Mastercard Qkr
48
+ email:
50
49
  executables: []
51
50
  extensions: []
52
51
  extra_rdoc_files: []
53
52
  files:
54
- - lib/mastercard/api/qkr/auth.rb
55
53
  - lib/mastercard/api/qkr/beneficiary.rb
56
54
  - lib/mastercard/api/qkr/beneficiarycustomfield.rb
57
55
  - lib/mastercard/api/qkr/card.rb
58
56
  - lib/mastercard/api/qkr/cart.rb
59
57
  - lib/mastercard/api/qkr/cartitem.rb
58
+ - lib/mastercard/api/qkr/cartvalidation.rb
60
59
  - lib/mastercard/api/qkr/country.rb
61
60
  - lib/mastercard/api/qkr/creditnote.rb
62
61
  - lib/mastercard/api/qkr/externaltrans.rb
63
62
  - lib/mastercard/api/qkr/forgottenpassword.rb
64
63
  - lib/mastercard/api/qkr/form.rb
65
64
  - lib/mastercard/api/qkr/formsubmission.rb
65
+ - lib/mastercard/api/qkr/inboxmessage.rb
66
66
  - lib/mastercard/api/qkr/lightbox.rb
67
- - lib/mastercard/api/qkr/machine.rb
68
67
  - lib/mastercard/api/qkr/menu.rb
69
68
  - lib/mastercard/api/qkr/merchant.rb
70
69
  - lib/mastercard/api/qkr/order.rb
@@ -85,7 +84,6 @@ files:
85
84
  - lib/mastercard/api/qkr/user.rb
86
85
  - lib/mastercard/api/qkr/userimage.rb
87
86
  - lib/mastercard/api/qkr/usersession.rb
88
- - lib/mastercard/api/qkr/vendingsession.rb
89
87
  - lib/mastercard/api/qkr/verifyotp.rb
90
88
  - lib/mastercard_qkr.rb
91
89
  homepage: https://developer.mastercard.com
@@ -111,5 +109,5 @@ rubyforge_project:
111
109
  rubygems_version: 2.7.7
112
110
  signing_key:
113
111
  specification_version: 4
114
- summary: MasterCard Qkr SDK
112
+ summary: Mastercard Qkr SDK
115
113
  test_files: []
@@ -1,130 +0,0 @@
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 Auth < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
38
-
39
- @__store = {
40
- 'b4c53a94-c0c2-4b3f-a649-aa48e559175d' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/auth/payment", "create", ["X-Auth-Token"], []),
41
- '53e8bb73-dd6d-4d54-b2b7-846b06e06cfe' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/auth/payment/{id}", "delete", ["X-Auth-Token"], []),
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
- def self.create(mapObj)
62
- #
63
- #Creates object of type Auth
64
- #
65
- #@param Dict mapObj, containing the required parameters to create a new object
66
- #@return [Auth] of the response of created instance.
67
- #@raise [APIException] an exception from the response status
68
- return self.execute("b4c53a94-c0c2-4b3f-a649-aa48e559175d", Auth.new(mapObj))
69
- end
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
- def self.deleteById(id, map = nil)
81
- #Delete object of type Auth by id
82
-
83
- #@param [String] id
84
- #@param [Dict] map, containing additional parameters
85
- #@return [Auth] of the response of the deleted instance.
86
- #@raise [APIException] an exception from the response status
87
-
88
-
89
- mapObj = Auth.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
-
101
- return self.execute("53e8bb73-dd6d-4d54-b2b7-846b06e06cfe", mapObj)
102
- end
103
-
104
-
105
- def delete
106
- #
107
- #Delete object of type Auth
108
-
109
- #@param [String] id
110
- #@return [Auth] of the response of the deleted instance.
111
- #@raise [APIException] an exception from the response status
112
- #
113
-
114
- return self.class.execute("53e8bb73-dd6d-4d54-b2b7-846b06e06cfe", self)
115
- end
116
-
117
-
118
-
119
-
120
- end
121
- end
122
- end
123
- end
124
-
125
-
126
-
127
-
128
-
129
-
130
-