mastercard_qkr 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mastercard/api/qkr/card.rb +16 -16
  3. data/lib/mastercard/api/qkr/cart.rb +12 -12
  4. data/lib/mastercard/api/qkr/cartitem.rb +12 -12
  5. data/lib/mastercard/api/qkr/country.rb +9 -9
  6. data/lib/mastercard/api/qkr/externaltrans.rb +11 -11
  7. data/lib/mastercard/api/qkr/forgottenpassword.rb +7 -7
  8. data/lib/mastercard/api/qkr/lightbox.rb +9 -9
  9. data/lib/mastercard/api/qkr/machine.rb +99 -0
  10. data/lib/mastercard/api/qkr/menu.rb +7 -7
  11. data/lib/mastercard/api/qkr/merchant.rb +9 -9
  12. data/lib/mastercard/api/qkr/order.rb +14 -14
  13. data/lib/mastercard/api/qkr/orderahead.rb +7 -7
  14. data/lib/mastercard/api/qkr/orderaheadmenu.rb +7 -7
  15. data/lib/mastercard/api/qkr/orderslot.rb +7 -7
  16. data/lib/mastercard/api/qkr/ordertotal.rb +7 -7
  17. data/lib/mastercard/api/qkr/payment.rb +7 -7
  18. data/lib/mastercard/api/qkr/posorder.rb +104 -0
  19. data/lib/mastercard/api/qkr/pospayment.rb +7 -7
  20. data/lib/mastercard/api/qkr/pospaymentnotification.rb +7 -7
  21. data/lib/mastercard/api/qkr/prodgroup.rb +7 -7
  22. data/lib/mastercard/api/qkr/refund.rb +7 -7
  23. data/lib/mastercard/api/qkr/resendotp.rb +7 -7
  24. data/lib/mastercard/api/qkr/resourceconfig.rb +7 -6
  25. data/lib/mastercard/api/qkr/securityquestion.rb +7 -7
  26. data/lib/mastercard/api/qkr/trans.rb +13 -13
  27. data/lib/mastercard/api/qkr/updatepassword.rb +7 -7
  28. data/lib/mastercard/api/qkr/user.rb +11 -11
  29. data/lib/mastercard/api/qkr/usersession.rb +7 -7
  30. data/lib/mastercard/api/qkr/vendingsession.rb +130 -0
  31. data/lib/mastercard/api/qkr/verifyotp.rb +7 -7
  32. data/lib/mastercard_qkr.rb +3 -0
  33. metadata +5 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 673acb77d11092f58c7f9ac50e6b53d8cfca3f66
4
- data.tar.gz: d3747993d92a82d4865e67f6177f231bb70eaafa
3
+ metadata.gz: fed7c1d4a9d2ea6ffc5343c72f6db40436d24e81
4
+ data.tar.gz: 1589a41dac4dc22c16c8ed0c1d854c2db390a47d
5
5
  SHA512:
6
- metadata.gz: f3187ed53a1156d7870ab69c3b9009bfd04cd1d5bfd1284ee9d4934574dd1a55c5b0fad413a6438464733981cff9f42931b610662098b73eecf5da2ac528bafc
7
- data.tar.gz: f5df1bee73074c4cbdebfc2d497e99d916a6a8882c43a386dcd44e202d47891a3b9b3dd6ba9afa8f3ce4e1581a2d13af09c47a68704f4d05116075816455c4cd
6
+ metadata.gz: d290d4f3fabfc4a3b32ca20db7c5ea9f30e7856907fe4c4a9de8c40db57a4c8fb298fa97414c776a150f18a0b904037fe212021311fa2e5f852f0b36d674e240
7
+ data.tar.gz: 4806533e38ed91819eaba8d353a46adca89a4238990ddd0e502857b9c30f4067f3aa9bc5cc9ffe8a5f24c8774fbf494ace5718c71eedcab3a72e5459ff1b2cf3
@@ -37,25 +37,25 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
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"], []),
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
45
 
46
46
  }
47
47
 
48
48
  protected
49
49
 
50
- def self.getOperationConfig(uuid)
51
- if @__store.key?(uuid)
52
- return @__store[uuid]
50
+ def self.getOperationConfig(operationUUID)
51
+ if @__store.key?(operationUUID)
52
+ return @__store[operationUUID]
53
53
  end
54
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
54
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
55
55
  end
56
56
 
57
57
  def self.getOperationMetadata()
58
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
58
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
59
59
  end
60
60
 
61
61
  public
@@ -68,7 +68,7 @@ module MasterCard
68
68
  #@param Dict mapObj, containing the required parameters to create a new object
69
69
  #@return [Card] of the response of created instance.
70
70
  #@raise [APIException] an exception from the response status
71
- return self.execute("daa1f90d-1487-4d73-b2c0-dc7036daeaeb", Card.new(mapObj))
71
+ return self.execute("97081133-3da3-412a-8f0e-a1adab5ca065", Card.new(mapObj))
72
72
  end
73
73
 
74
74
 
@@ -101,7 +101,7 @@ module MasterCard
101
101
  end
102
102
  end
103
103
 
104
- return self.execute("ba0d3392-ac40-44b6-ae12-7277dee138d6", mapObj)
104
+ return self.execute("b813d4ec-c0f3-4b3c-8bc4-dd133e45d482", mapObj)
105
105
  end
106
106
 
107
107
 
@@ -114,7 +114,7 @@ module MasterCard
114
114
  #@raise [APIException] an exception from the response status
115
115
  #
116
116
 
117
- return self.class.execute("ba0d3392-ac40-44b6-ae12-7277dee138d6", self)
117
+ return self.class.execute("b813d4ec-c0f3-4b3c-8bc4-dd133e45d482", self)
118
118
  end
119
119
 
120
120
 
@@ -133,7 +133,7 @@ module MasterCard
133
133
  #@raise [APIException] an exception from the response status
134
134
  #
135
135
 
136
- return self.execute("6bab5b21-60b1-4fdd-a83c-0c6fca16c750",Card.new(criteria))
136
+ return self.execute("b689bbe1-4277-49f5-89aa-3949ede2a460",Card.new(criteria))
137
137
  end
138
138
 
139
139
 
@@ -161,7 +161,7 @@ module MasterCard
161
161
  end
162
162
  end
163
163
 
164
- return self.execute("ec8541a2-44f5-4bfa-9f95-d54e85e588d3",Card.new(mapObj))
164
+ return self.execute("3554909c-c21a-47d0-9bc6-8ace36bb89c2",Card.new(mapObj))
165
165
  end
166
166
 
167
167
 
@@ -174,7 +174,7 @@ module MasterCard
174
174
  #@return [Card] object representing the response.
175
175
  #@raise [APIException] an exception from the response status
176
176
  #
177
- return self.class.execute("78e3e573-0a93-45a4-823e-e94d7f55feb5",self)
177
+ return self.class.execute("481f8d8a-1dbf-4d40-a515-8da72a558726",self)
178
178
  end
179
179
 
180
180
 
@@ -37,23 +37,23 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
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"], []),
40
+ 'aaeb3387-f6bd-47e2-8986-19ec157f05a9' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cart/{id}", "delete", ["X-Auth-Token"], []),
41
+ '2a8c0034-0338-420d-900f-34f669092002' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cart", "query", ["X-Auth-Token"], []),
42
+ '32383045-71e5-4545-a4ae-07bca62c5624' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cart/{id}", "read", ["X-Auth-Token"], []),
43
43
 
44
44
  }
45
45
 
46
46
  protected
47
47
 
48
- def self.getOperationConfig(uuid)
49
- if @__store.key?(uuid)
50
- return @__store[uuid]
48
+ def self.getOperationConfig(operationUUID)
49
+ if @__store.key?(operationUUID)
50
+ return @__store[operationUUID]
51
51
  end
52
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
52
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
53
53
  end
54
54
 
55
55
  def self.getOperationMetadata()
56
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
56
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
57
57
  end
58
58
 
59
59
  public
@@ -83,7 +83,7 @@ module MasterCard
83
83
  end
84
84
  end
85
85
 
86
- return self.execute("7b500d6f-041b-426c-bf8d-891ef0fc50f0", mapObj)
86
+ return self.execute("aaeb3387-f6bd-47e2-8986-19ec157f05a9", mapObj)
87
87
  end
88
88
 
89
89
 
@@ -96,7 +96,7 @@ module MasterCard
96
96
  #@raise [APIException] an exception from the response status
97
97
  #
98
98
 
99
- return self.class.execute("7b500d6f-041b-426c-bf8d-891ef0fc50f0", self)
99
+ return self.class.execute("aaeb3387-f6bd-47e2-8986-19ec157f05a9", self)
100
100
  end
101
101
 
102
102
 
@@ -115,7 +115,7 @@ module MasterCard
115
115
  #@raise [APIException] an exception from the response status
116
116
  #
117
117
 
118
- return self.execute("6a9087f0-378c-49f4-bf56-901e3f60e18b",Cart.new(criteria))
118
+ return self.execute("2a8c0034-0338-420d-900f-34f669092002",Cart.new(criteria))
119
119
  end
120
120
 
121
121
 
@@ -143,7 +143,7 @@ module MasterCard
143
143
  end
144
144
  end
145
145
 
146
- return self.execute("72764c57-b41a-48ee-b392-c92fe6d2ae02",Cart.new(mapObj))
146
+ return self.execute("32383045-71e5-4545-a4ae-07bca62c5624",Cart.new(mapObj))
147
147
  end
148
148
 
149
149
 
@@ -37,23 +37,23 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
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"], []),
40
+ 'fe8aef51-9426-443b-87b0-f60e3552c6f0' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cartItem", "create", ["X-Auth-Token"], []),
41
+ '8d470f7a-384d-49a1-a4b8-b181220c5580' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cartItem/{id}", "delete", ["X-Auth-Token"], []),
42
+ 'e8653141-482b-4519-b6b5-aebae7a63cff' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cartItem/{id}", "update", ["X-Auth-Token"], []),
43
43
 
44
44
  }
45
45
 
46
46
  protected
47
47
 
48
- def self.getOperationConfig(uuid)
49
- if @__store.key?(uuid)
50
- return @__store[uuid]
48
+ def self.getOperationConfig(operationUUID)
49
+ if @__store.key?(operationUUID)
50
+ return @__store[operationUUID]
51
51
  end
52
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
52
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
53
53
  end
54
54
 
55
55
  def self.getOperationMetadata()
56
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
56
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
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 [CartItem] of the response of created instance.
68
68
  #@raise [APIException] an exception from the response status
69
- return self.execute("e2d7966d-403b-4408-a670-385e07665e5e", CartItem.new(mapObj))
69
+ return self.execute("fe8aef51-9426-443b-87b0-f60e3552c6f0", CartItem.new(mapObj))
70
70
  end
71
71
 
72
72
 
@@ -99,7 +99,7 @@ module MasterCard
99
99
  end
100
100
  end
101
101
 
102
- return self.execute("a583479a-c58b-49dc-8e57-499e634d46df", mapObj)
102
+ return self.execute("8d470f7a-384d-49a1-a4b8-b181220c5580", mapObj)
103
103
  end
104
104
 
105
105
 
@@ -112,7 +112,7 @@ module MasterCard
112
112
  #@raise [APIException] an exception from the response status
113
113
  #
114
114
 
115
- return self.class.execute("a583479a-c58b-49dc-8e57-499e634d46df", self)
115
+ return self.class.execute("8d470f7a-384d-49a1-a4b8-b181220c5580", self)
116
116
  end
117
117
 
118
118
 
@@ -126,7 +126,7 @@ module MasterCard
126
126
  #@return [CartItem] object representing the response.
127
127
  #@raise [APIException] an exception from the response status
128
128
  #
129
- return self.class.execute("55a51dc8-fff4-44ba-96d9-f8fde3f7bc57",self)
129
+ return self.class.execute("e8653141-482b-4519-b6b5-aebae7a63cff",self)
130
130
  end
131
131
 
132
132
 
@@ -37,22 +37,22 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
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", [], []),
40
+ '103fcb26-f116-4c0c-b494-4dc209806fd7' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/country", "query", [], []),
41
+ 'da49a4b7-75b3-4e5d-953f-9e62bf1c2d08' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/country/{id}", "read", [], []),
42
42
 
43
43
  }
44
44
 
45
45
  protected
46
46
 
47
- def self.getOperationConfig(uuid)
48
- if @__store.key?(uuid)
49
- return @__store[uuid]
47
+ def self.getOperationConfig(operationUUID)
48
+ if @__store.key?(operationUUID)
49
+ return @__store[operationUUID]
50
50
  end
51
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
51
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
52
52
  end
53
53
 
54
54
  def self.getOperationMetadata()
55
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
55
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
56
56
  end
57
57
 
58
58
  public
@@ -71,7 +71,7 @@ module MasterCard
71
71
  #@raise [APIException] an exception from the response status
72
72
  #
73
73
 
74
- return self.execute("d89ad569-97f9-4e50-aa07-d52b4c8dfbb5",Country.new(criteria))
74
+ return self.execute("103fcb26-f116-4c0c-b494-4dc209806fd7",Country.new(criteria))
75
75
  end
76
76
 
77
77
 
@@ -99,7 +99,7 @@ module MasterCard
99
99
  end
100
100
  end
101
101
 
102
- return self.execute("383a11fd-7c38-4a6e-bcb0-e93d719ba941",Country.new(mapObj))
102
+ return self.execute("da49a4b7-75b3-4e5d-953f-9e62bf1c2d08",Country.new(mapObj))
103
103
  end
104
104
 
105
105
 
@@ -37,23 +37,23 @@ module MasterCard
37
37
  #
38
38
 
39
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", [], []),
40
+ 'b8c6be19-3b49-461e-82f7-fa65f9c2cc9f' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/externalTrans", "create", [], []),
41
+ '27c0dc15-b295-4fc7-8a34-d42c9d840936' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/externalTrans", "query", [], []),
42
+ '50e2ce57-da9a-4406-aceb-e7f38593f251' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/externalTrans/{id}", "read", [], []),
43
43
 
44
44
  }
45
45
 
46
46
  protected
47
47
 
48
- def self.getOperationConfig(uuid)
49
- if @__store.key?(uuid)
50
- return @__store[uuid]
48
+ def self.getOperationConfig(operationUUID)
49
+ if @__store.key?(operationUUID)
50
+ return @__store[operationUUID]
51
51
  end
52
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
52
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
53
53
  end
54
54
 
55
55
  def self.getOperationMetadata()
56
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
56
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
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 [ExternalTrans] of the response of created instance.
68
68
  #@raise [APIException] an exception from the response status
69
- return self.execute("b6d956d2-66d0-4caa-bc9c-95c7a7b93745", ExternalTrans.new(mapObj))
69
+ return self.execute("b8c6be19-3b49-461e-82f7-fa65f9c2cc9f", ExternalTrans.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("eaca55ac-3894-41d0-a332-c5266ff3e7e7",ExternalTrans.new(criteria))
91
+ return self.execute("27c0dc15-b295-4fc7-8a34-d42c9d840936",ExternalTrans.new(criteria))
92
92
  end
93
93
 
94
94
 
@@ -116,7 +116,7 @@ module MasterCard
116
116
  end
117
117
  end
118
118
 
119
- return self.execute("f4a28155-9ebc-4234-880b-5e5be7955dbd",ExternalTrans.new(mapObj))
119
+ return self.execute("50e2ce57-da9a-4406-aceb-e7f38593f251",ExternalTrans.new(mapObj))
120
120
  end
121
121
 
122
122
 
@@ -37,21 +37,21 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- 'a2027c51-b2e6-45b8-a70a-f39b9f97e196' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/forgottenPassword", "create", [], []),
40
+ '1ecc9a1f-784e-4f16-b862-d47514deebf5' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/forgottenPassword", "create", [], []),
41
41
 
42
42
  }
43
43
 
44
44
  protected
45
45
 
46
- def self.getOperationConfig(uuid)
47
- if @__store.key?(uuid)
48
- return @__store[uuid]
46
+ def self.getOperationConfig(operationUUID)
47
+ if @__store.key?(operationUUID)
48
+ return @__store[operationUUID]
49
49
  end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
51
51
  end
52
52
 
53
53
  def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
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 [ForgottenPassword] of the response of created instance.
66
66
  #@raise [APIException] an exception from the response status
67
- return self.execute("a2027c51-b2e6-45b8-a70a-f39b9f97e196", ForgottenPassword.new(mapObj))
67
+ return self.execute("1ecc9a1f-784e-4f16-b862-d47514deebf5", ForgottenPassword.new(mapObj))
68
68
  end
69
69
 
70
70
 
@@ -37,22 +37,22 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '6deaf692-5d6a-4a28-8296-59e425735031' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/lightbox", "create", ["X-Auth-Token"], []),
41
- '863234ee-cbf8-4467-8213-f12b5ffc20c2' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/lightbox/{id}", "read", [], []),
40
+ 'd24f8e16-b6be-43e3-a242-ee63af95b7b3' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/lightbox", "create", ["X-Auth-Token"], []),
41
+ 'a6cf0dc0-70c4-419e-889b-81d514dd5b20' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/lightbox/{id}", "read", [], []),
42
42
 
43
43
  }
44
44
 
45
45
  protected
46
46
 
47
- def self.getOperationConfig(uuid)
48
- if @__store.key?(uuid)
49
- return @__store[uuid]
47
+ def self.getOperationConfig(operationUUID)
48
+ if @__store.key?(operationUUID)
49
+ return @__store[operationUUID]
50
50
  end
51
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
51
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
52
52
  end
53
53
 
54
54
  def self.getOperationMetadata()
55
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
55
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
56
56
  end
57
57
 
58
58
  public
@@ -65,7 +65,7 @@ module MasterCard
65
65
  #@param Dict mapObj, containing the required parameters to create a new object
66
66
  #@return [Lightbox] of the response of created instance.
67
67
  #@raise [APIException] an exception from the response status
68
- return self.execute("6deaf692-5d6a-4a28-8296-59e425735031", Lightbox.new(mapObj))
68
+ return self.execute("d24f8e16-b6be-43e3-a242-ee63af95b7b3", Lightbox.new(mapObj))
69
69
  end
70
70
 
71
71
 
@@ -98,7 +98,7 @@ module MasterCard
98
98
  end
99
99
  end
100
100
 
101
- return self.execute("863234ee-cbf8-4467-8213-f12b5ffc20c2",Lightbox.new(mapObj))
101
+ return self.execute("a6cf0dc0-70c4-419e-889b-81d514dd5b20",Lightbox.new(mapObj))
102
102
  end
103
103
 
104
104
 
@@ -0,0 +1,99 @@
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 Machine < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '6256b565-ce71-42db-9697-cea1f1697e91' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/machine/{id}", "read", ["X-Auth-Token"], []),
41
+
42
+ }
43
+
44
+ protected
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
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
56
+
57
+ public
58
+
59
+
60
+
61
+
62
+
63
+
64
+ def self.read(id, criteria = nil)
65
+ #
66
+ #Returns objects of type Machine by id and optional criteria
67
+ #@param [String] id
68
+ #@param [Dict] criteria
69
+ #@return [Machine] object representing the response
70
+ #@raise [APIException] an exception from the response status
71
+
72
+ mapObj = Machine.new
73
+ if !(id.nil? || id.to_s.empty?)
74
+ mapObj.set("id", id)
75
+ end
76
+ if !criteria.nil?
77
+ if criteria.instance_of? RequestMap
78
+ mapObj.setAll(criteria.getObject())
79
+ else
80
+ mapObj.setAll(criteria)
81
+ end
82
+ end
83
+
84
+ return self.execute("6256b565-ce71-42db-9697-cea1f1697e91",Machine.new(mapObj))
85
+ end
86
+
87
+
88
+
89
+ end
90
+ end
91
+ end
92
+ end
93
+
94
+
95
+
96
+
97
+
98
+
99
+