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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fed7c1d4a9d2ea6ffc5343c72f6db40436d24e81
4
- data.tar.gz: 1589a41dac4dc22c16c8ed0c1d854c2db390a47d
3
+ metadata.gz: 3b528260bf80e7ea9227e41326db8947fb7000d3
4
+ data.tar.gz: 64150db7fd67d1a44e48f205c9b6e9a3fe40db0e
5
5
  SHA512:
6
- metadata.gz: d290d4f3fabfc4a3b32ca20db7c5ea9f30e7856907fe4c4a9de8c40db57a4c8fb298fa97414c776a150f18a0b904037fe212021311fa2e5f852f0b36d674e240
7
- data.tar.gz: 4806533e38ed91819eaba8d353a46adca89a4238990ddd0e502857b9c30f4067f3aa9bc5cc9ffe8a5f24c8774fbf494ace5718c71eedcab3a72e5459ff1b2cf3
6
+ metadata.gz: 5828b3bec137b327f07b0097c1f6717655dd3061449ddf680ce5836284dbe0768105dbee5a2daae5acb8d6501611aa1c47b351b432dec55ca1c3e6606cd1d796
7
+ data.tar.gz: 9d226f909da05c7151c9acdf431f2edff0a02cddf3068bbc05a853eac0adb753d49dc63e64d62d4e985d31dec02b2f6c0639e3e5b73a7049c8cd29fc59727640
@@ -0,0 +1,130 @@
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
+ 'f70ce1c9-835a-426a-99ec-59be4a16d8fc' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/auth/payment", "create", ["X-Auth-Token"], []),
41
+ 'ad0c185b-ae9b-443c-b73d-57793fbda09d' => 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("f70ce1c9-835a-426a-99ec-59be4a16d8fc", 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("ad0c185b-ae9b-443c-b73d-57793fbda09d", 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("ad0c185b-ae9b-443c-b73d-57793fbda09d", self)
115
+ end
116
+
117
+
118
+
119
+
120
+ end
121
+ end
122
+ end
123
+ end
124
+
125
+
126
+
127
+
128
+
129
+
130
+
@@ -0,0 +1,166 @@
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 Beneficiary < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '9160dafb-93cb-4dce-bcfa-7066ecf3892e' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/beneficiary", "create", ["X-Auth-Token"], []),
41
+ 'fbb21e7c-37b2-4836-b415-37392fa96ecf' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/beneficiary/{id}", "delete", ["X-Auth-Token"], []),
42
+ 'f617e14a-f2b9-450c-9db0-8a84bfca013e' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/beneficiary", "query", ["X-Auth-Token"], ["merchantId"]),
43
+ '1f2d3f55-0e51-40aa-ba28-7ac112437f13' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/beneficiary/{id}", "update", ["X-Auth-Token"], []),
44
+
45
+ }
46
+
47
+ protected
48
+
49
+ def self.getOperationConfig(operationUUID)
50
+ if @__store.key?(operationUUID)
51
+ return @__store[operationUUID]
52
+ end
53
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
54
+ end
55
+
56
+ def self.getOperationMetadata()
57
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
58
+ end
59
+
60
+ public
61
+
62
+
63
+ def self.create(mapObj)
64
+ #
65
+ #Creates object of type Beneficiary
66
+ #
67
+ #@param Dict mapObj, containing the required parameters to create a new object
68
+ #@return [Beneficiary] of the response of created instance.
69
+ #@raise [APIException] an exception from the response status
70
+ return self.execute("9160dafb-93cb-4dce-bcfa-7066ecf3892e", Beneficiary.new(mapObj))
71
+ end
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+ def self.deleteById(id, map = nil)
83
+ #Delete object of type Beneficiary by id
84
+
85
+ #@param [String] id
86
+ #@param [Dict] map, containing additional parameters
87
+ #@return [Beneficiary] of the response of the deleted instance.
88
+ #@raise [APIException] an exception from the response status
89
+
90
+
91
+ mapObj = Beneficiary.new
92
+ if !(id.nil? || id.to_s.empty?)
93
+ mapObj.set("id", id)
94
+ end
95
+ if !map.nil?
96
+ if map.instance_of? RequestMap
97
+ mapObj.setAll(map.getObject())
98
+ else
99
+ mapObj.setAll(map)
100
+ end
101
+ end
102
+
103
+ return self.execute("fbb21e7c-37b2-4836-b415-37392fa96ecf", mapObj)
104
+ end
105
+
106
+
107
+ def delete
108
+ #
109
+ #Delete object of type Beneficiary
110
+
111
+ #@param [String] id
112
+ #@return [Beneficiary] of the response of the deleted instance.
113
+ #@raise [APIException] an exception from the response status
114
+ #
115
+
116
+ return self.class.execute("fbb21e7c-37b2-4836-b415-37392fa96ecf", self)
117
+ end
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+ def self.query(criteria)
128
+ #
129
+ #Query objects of type Beneficiary by id and optional criteria
130
+ #@param [Dict] criteria
131
+ #@return [Beneficiary] object representing the response.
132
+ #@raise [APIException] an exception from the response status
133
+ #
134
+
135
+ return self.execute("f617e14a-f2b9-450c-9db0-8a84bfca013e",Beneficiary.new(criteria))
136
+ end
137
+
138
+
139
+
140
+ def update
141
+ #
142
+ #Updates an object of type Beneficiary
143
+ #
144
+ #@return [Beneficiary] object representing the response.
145
+ #@raise [APIException] an exception from the response status
146
+ #
147
+ return self.class.execute("1f2d3f55-0e51-40aa-ba28-7ac112437f13",self)
148
+ end
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+ end
157
+ end
158
+ end
159
+ end
160
+
161
+
162
+
163
+
164
+
165
+
166
+
@@ -30,52 +30,53 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module Qkr
35
- class PosPayment < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module Qkr
35
+ class BeneficiaryCustomField < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- 'bc223b24-71f5-4856-9691-dbfc0683ea52' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/posPayment/pat", "create", ["X-Auth-Token"], []),
41
-
42
- }
39
+ @__store = {
40
+ '81a61b76-cc64-43e6-b990-8dfe1d0ac75a' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/beneficiaryCustomField", "query", ["X-Auth-Token"], ["merchantId"]),
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
- def self.create(mapObj)
61
- #
62
- #Creates object of type PosPayment
63
- #
64
- #@param Dict mapObj, containing the required parameters to create a new object
65
- #@return [PosPayment] of the response of created instance.
66
- #@raise [APIException] an exception from the response status
67
- return self.execute("bc223b24-71f5-4856-9691-dbfc0683ea52", PosPayment.new(mapObj))
68
- end
69
60
 
70
61
 
71
62
 
72
63
 
73
64
 
65
+ def self.query(criteria)
66
+ #
67
+ #Query objects of type BeneficiaryCustomField by id and optional criteria
68
+ #@param [Dict] criteria
69
+ #@return [BeneficiaryCustomField] object representing the response.
70
+ #@raise [APIException] an exception from the response status
71
+ #
74
72
 
73
+ return self.execute("81a61b76-cc64-43e6-b990-8dfe1d0ac75a",BeneficiaryCustomField.new(criteria))
74
+ end
75
75
 
76
- end
77
- end
78
- end
76
+
77
+ end
78
+ end
79
+ end
79
80
  end
80
81
 
81
82
 
@@ -30,46 +30,46 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module Qkr
35
- class Card < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module Qkr
35
+ class Card < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '97081133-3da3-412a-8f0e-a1adab5ca065' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card", "create", ["X-Auth-Token"], []),
41
- 'b813d4ec-c0f3-4b3c-8bc4-dd133e45d482' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card/{id}", "delete", ["X-Auth-Token"], []),
42
- 'b689bbe1-4277-49f5-89aa-3949ede2a460' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card", "query", ["X-Auth-Token"], []),
43
- '3554909c-c21a-47d0-9bc6-8ace36bb89c2' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card/{id}", "read", ["X-Auth-Token"], []),
44
- '481f8d8a-1dbf-4d40-a515-8da72a558726' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card/{id}", "update", ["X-Auth-Token"], []),
45
-
46
- }
39
+ @__store = {
40
+ '6685a579-5bd9-4ae1-a259-36cc814ef154' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card", "create", ["X-Auth-Token"], []),
41
+ '7dc1d320-fa8b-4425-afad-86e7559ec538' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card/{id}", "delete", ["X-Auth-Token"], []),
42
+ '460e4251-e676-4bac-9733-9e4e8d4aba3c' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card", "query", ["X-Auth-Token"], []),
43
+ '208d005b-b2ed-4458-a9f0-0d7d267d7517' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card/{id}", "read", ["X-Auth-Token"], []),
44
+ '33fb62f9-b31e-4a54-8f43-454c21a34a50' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card/{id}", "update", ["X-Auth-Token"], []),
45
+
46
+ }
47
47
 
48
- protected
48
+ protected
49
49
 
50
- def self.getOperationConfig(operationUUID)
51
- if @__store.key?(operationUUID)
52
- return @__store[operationUUID]
53
- end
54
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
55
- end
50
+ def self.getOperationConfig(operationUUID)
51
+ if @__store.key?(operationUUID)
52
+ return @__store[operationUUID]
53
+ end
54
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
55
+ end
56
56
 
57
- def self.getOperationMetadata()
58
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
59
- end
57
+ def self.getOperationMetadata()
58
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
59
+ end
60
60
 
61
- public
61
+ public
62
62
 
63
63
 
64
- def self.create(mapObj)
65
- #
66
- #Creates object of type Card
67
- #
68
- #@param Dict mapObj, containing the required parameters to create a new object
69
- #@return [Card] of the response of created instance.
70
- #@raise [APIException] an exception from the response status
71
- return self.execute("97081133-3da3-412a-8f0e-a1adab5ca065", Card.new(mapObj))
72
- end
64
+ def self.create(mapObj)
65
+ #
66
+ #Creates object of type Card
67
+ #
68
+ #@param Dict mapObj, containing the required parameters to create a new object
69
+ #@return [Card] of the response of created instance.
70
+ #@raise [APIException] an exception from the response status
71
+ return self.execute("6685a579-5bd9-4ae1-a259-36cc814ef154", Card.new(mapObj))
72
+ end
73
73
 
74
74
 
75
75
 
@@ -80,42 +80,42 @@ module MasterCard
80
80
 
81
81
 
82
82
 
83
- def self.deleteById(id, map = nil)
84
- #Delete object of type Card by id
83
+ def self.deleteById(id, map = nil)
84
+ #Delete object of type Card by id
85
85
 
86
- #@param [String] id
87
- #@param [Dict] map, containing additional parameters
88
- #@return [Card] of the response of the deleted instance.
89
- #@raise [APIException] an exception from the response status
86
+ #@param [String] id
87
+ #@param [Dict] map, containing additional parameters
88
+ #@return [Card] of the response of the deleted instance.
89
+ #@raise [APIException] an exception from the response status
90
90
 
91
91
 
92
- mapObj = Card.new
93
- if !(id.nil? || id.to_s.empty?)
94
- mapObj.set("id", id)
95
- end
96
- if !map.nil?
97
- if map.instance_of? RequestMap
98
- mapObj.setAll(map.getObject())
99
- else
100
- mapObj.setAll(map)
101
- end
102
- end
92
+ mapObj = Card.new
93
+ if !(id.nil? || id.to_s.empty?)
94
+ mapObj.set("id", id)
95
+ end
96
+ if !map.nil?
97
+ if map.instance_of? RequestMap
98
+ mapObj.setAll(map.getObject())
99
+ else
100
+ mapObj.setAll(map)
101
+ end
102
+ end
103
103
 
104
- return self.execute("b813d4ec-c0f3-4b3c-8bc4-dd133e45d482", mapObj)
105
- end
104
+ return self.execute("7dc1d320-fa8b-4425-afad-86e7559ec538", mapObj)
105
+ end
106
106
 
107
107
 
108
- def delete
109
- #
110
- #Delete object of type Card
108
+ def delete
109
+ #
110
+ #Delete object of type Card
111
111
 
112
- #@param [String] id
113
- #@return [Card] of the response of the deleted instance.
114
- #@raise [APIException] an exception from the response status
115
- #
112
+ #@param [String] id
113
+ #@return [Card] of the response of the deleted instance.
114
+ #@raise [APIException] an exception from the response status
115
+ #
116
116
 
117
- return self.class.execute("b813d4ec-c0f3-4b3c-8bc4-dd133e45d482", self)
118
- end
117
+ return self.class.execute("7dc1d320-fa8b-4425-afad-86e7559ec538", self)
118
+ end
119
119
 
120
120
 
121
121
 
@@ -125,57 +125,57 @@ module MasterCard
125
125
 
126
126
 
127
127
 
128
- def self.query(criteria)
129
- #
130
- #Query objects of type Card by id and optional criteria
131
- #@param [Dict] criteria
132
- #@return [Card] object representing the response.
133
- #@raise [APIException] an exception from the response status
134
- #
128
+ def self.query(criteria)
129
+ #
130
+ #Query objects of type Card by id and optional criteria
131
+ #@param [Dict] criteria
132
+ #@return [Card] object representing the response.
133
+ #@raise [APIException] an exception from the response status
134
+ #
135
135
 
136
- return self.execute("b689bbe1-4277-49f5-89aa-3949ede2a460",Card.new(criteria))
137
- end
136
+ return self.execute("460e4251-e676-4bac-9733-9e4e8d4aba3c",Card.new(criteria))
137
+ end
138
138
 
139
139
 
140
140
 
141
141
 
142
142
 
143
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
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
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
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
163
 
164
- return self.execute("3554909c-c21a-47d0-9bc6-8ace36bb89c2",Card.new(mapObj))
165
- end
164
+ return self.execute("208d005b-b2ed-4458-a9f0-0d7d267d7517",Card.new(mapObj))
165
+ end
166
166
 
167
167
 
168
168
 
169
169
 
170
- def update
171
- #
172
- #Updates an object of type Card
173
- #
174
- #@return [Card] object representing the response.
175
- #@raise [APIException] an exception from the response status
176
- #
177
- return self.class.execute("481f8d8a-1dbf-4d40-a515-8da72a558726",self)
178
- end
170
+ def update
171
+ #
172
+ #Updates an object of type Card
173
+ #
174
+ #@return [Card] object representing the response.
175
+ #@raise [APIException] an exception from the response status
176
+ #
177
+ return self.class.execute("33fb62f9-b31e-4a54-8f43-454c21a34a50",self)
178
+ end
179
179
 
180
180
 
181
181
 
@@ -183,9 +183,9 @@ module MasterCard
183
183
 
184
184
 
185
185
 
186
- end
187
- end
188
- end
186
+ end
187
+ end
188
+ end
189
189
  end
190
190
 
191
191