SVClient 1.0.2.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.
- checksums.yaml +7 -0
- data/lib/SVClient/GCWebPos.rb +338 -0
- data/lib/SVClient/SVBalanceEnquiry.rb +28 -0
- data/lib/SVClient/SVCancelRedeem.rb +28 -0
- data/lib/SVClient/SVClient.rb +65 -0
- data/lib/SVClient/SVGiftCardCodes.rb +35 -0
- data/lib/SVClient/SVGiftRecentTransactions.rb +96 -0
- data/lib/SVClient/SVParamDownload.rb +24 -0
- data/lib/SVClient/SVProperties.rb +329 -0
- data/lib/SVClient/SVQcsData.rb +49 -0
- data/lib/SVClient/SVRecentTransactions.rb +10 -0
- data/lib/SVClient/SVRedeem.rb +28 -0
- data/lib/SVClient/SVRequest.rb +495 -0
- data/lib/SVClient/SVResponse.rb +1051 -0
- data/lib/SVClient/SVStatus.rb +82 -0
- data/lib/SVClient/SVTags.rb +142 -0
- data/lib/SVClient/SVType.rb +16 -0
- data/lib/SVClient/SVUtils.rb +81 -0
- metadata +59 -0
|
@@ -0,0 +1,1051 @@
|
|
|
1
|
+
#
|
|
2
|
+
# © 2011 QwikCilver Solutions Private Limited, All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# @author Nityananda
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
require 'net/http'
|
|
8
|
+
require 'cgi'
|
|
9
|
+
|
|
10
|
+
# =Overview
|
|
11
|
+
# Class that contains the response data received from QwikCilver Server for all SVClient Operations.
|
|
12
|
+
#
|
|
13
|
+
# SVRequest.execute() method returns an SVResponse object.
|
|
14
|
+
#
|
|
15
|
+
# Call SVResponse.geterrorcode() method to determine if SVRequest.execute() method completed successfully or failed.
|
|
16
|
+
# 1. if return value of SVResponse.geterrorcode() is equal to SVStatus.SUCCESS then read the desired attributes/properties using the appropriate getters
|
|
17
|
+
# 2. if return value of SVResponse.geterrorcode() is not equal to SVStatus.SUCCESS then get the detailed error message by calling SVResponse.getErrorMessage()
|
|
18
|
+
class SVResponse < SVQcsData
|
|
19
|
+
private
|
|
20
|
+
@errorcode = SVStatus::SUCCESS
|
|
21
|
+
@errormessage = ''
|
|
22
|
+
|
|
23
|
+
def parsehttpresponse(httpresponse)
|
|
24
|
+
@httpstatus = httpresponse.code.to_i
|
|
25
|
+
if(@httpstatus != SVStatus::HTTP_OK)
|
|
26
|
+
@errorcode = SVStatus::SERVICE_UNAVAILABLE_ERROR
|
|
27
|
+
@errormessage = SVStatus::gethttpmessage(httpresponse)
|
|
28
|
+
return
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
@respbody = httpresponse.body
|
|
32
|
+
if (@respbody == nil || @respbody.length <= 0)
|
|
33
|
+
@errorcode = SVStatus::OPERATION_FAILED_ERROR
|
|
34
|
+
@errormessage = SVStatus::getmessage(@errorcode)
|
|
35
|
+
return
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
begin
|
|
39
|
+
@@params = CGI.parse(@respbody)
|
|
40
|
+
rescue StandardError => error
|
|
41
|
+
print "Error from SVResponse::parsehttpresponse @{#{error}}"
|
|
42
|
+
end
|
|
43
|
+
@errorcode = getvalue(SVTags::RESPONSE_CODE)
|
|
44
|
+
@errormessage = getvalue(SVTags::RESPONSE_MESSAGE)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
public
|
|
48
|
+
def initialize(resultcode, message = nil, httpresponse = nil)
|
|
49
|
+
super()
|
|
50
|
+
@errorcode = resultcode
|
|
51
|
+
@errormessage = message
|
|
52
|
+
parsehttpresponse(httpresponse) if (httpresponse != nil)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Method for getting the status of @link SVRequest.execute() method.
|
|
56
|
+
#
|
|
57
|
+
# ===return
|
|
58
|
+
# int - The error code
|
|
59
|
+
# returns SVStatus.SUCCESS (zero) if the execution of SVRequest.execute() method is successful.
|
|
60
|
+
#
|
|
61
|
+
# returns a non-zero integer value if there is any failure in the execution of SVRequest.execute() method.
|
|
62
|
+
def geterrorcode()
|
|
63
|
+
if(@errorcode.is_a? Integer)
|
|
64
|
+
return @errorcode
|
|
65
|
+
else
|
|
66
|
+
return @errorcode[0].to_i
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Method for getting the error message if the execute method returns failure.
|
|
71
|
+
#
|
|
72
|
+
# ===return
|
|
73
|
+
# String - The error message
|
|
74
|
+
def geterrormessage()
|
|
75
|
+
return @errormessage
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Method for getting the Card Number.
|
|
79
|
+
# This method will return a valid value only if execute method returns SUCCESS
|
|
80
|
+
# This method will return null
|
|
81
|
+
# 1. if execute method returns an error or
|
|
82
|
+
# 2. if response does not contain a value
|
|
83
|
+
#
|
|
84
|
+
# ===return
|
|
85
|
+
# String - The cardNumber, returns null if execute method returns an error or if response does not contain the value.
|
|
86
|
+
def getcardnumber()
|
|
87
|
+
return getvalue(SVTags::CARD_NUMBER)
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Method for getting the Card Pin.
|
|
91
|
+
# This method will return a valid value only if execute method returns SUCCESS
|
|
92
|
+
# This method will return null
|
|
93
|
+
# 1. if execute method returns an error or
|
|
94
|
+
# 2. if response does not contain a value
|
|
95
|
+
#
|
|
96
|
+
# ===return
|
|
97
|
+
# String - The Card Pin, returns null if execute method returns an error or if response does not contain the value.
|
|
98
|
+
def getcardpin()
|
|
99
|
+
return getvalue(SVTags::CARD_PIN)
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Method for getting the Current Batch Number.
|
|
103
|
+
# This method will return a valid value only if execute method returns SUCCESS
|
|
104
|
+
# This method will return null
|
|
105
|
+
# 1. if execute method returns an error or
|
|
106
|
+
# 2. if response does not contain a value
|
|
107
|
+
#
|
|
108
|
+
# ===return
|
|
109
|
+
# Fixnum - The Current Batch Number, returns null if execute method returns an error or if response does not contain the value.
|
|
110
|
+
def getcurrentbatchnumber()
|
|
111
|
+
return getvalue(SVTags::CURRENT_BATCH_NUMBER)
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Method for getting the Transaction ID.
|
|
115
|
+
# This method will return a valid value only if execute method returns SUCCESS
|
|
116
|
+
# This method will return null
|
|
117
|
+
# 1. if execute method returns an error or
|
|
118
|
+
# 2. if response does not contain a value
|
|
119
|
+
#
|
|
120
|
+
# ===return
|
|
121
|
+
# Fixnum - The transaction ID, returns null if execute method returns an error or if response does not contain the value.
|
|
122
|
+
def gettransactionid()
|
|
123
|
+
return getvalueasint(SVTags::TRANSACTION_ID)
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Method for getting the Terminal ID.
|
|
127
|
+
# This method will return a valid value only if execute method returns SUCCESS
|
|
128
|
+
# This method will return null
|
|
129
|
+
# 1. if execute method returns an error or
|
|
130
|
+
# 2. if response does not contain a value
|
|
131
|
+
#
|
|
132
|
+
# ===return
|
|
133
|
+
# String - the Terminal Id
|
|
134
|
+
# returns null if execute method returns an error
|
|
135
|
+
def getterminalid()
|
|
136
|
+
return getvalue(SVTags::TERMINAL_ID)
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Method for getting the Track Data.
|
|
140
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
141
|
+
# This method will return null
|
|
142
|
+
# 1. if execute method returns an error or
|
|
143
|
+
# 2. if response does not contain a value
|
|
144
|
+
#
|
|
145
|
+
# ===return
|
|
146
|
+
# String - the Track Data
|
|
147
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
148
|
+
def gettrackdata()
|
|
149
|
+
return getvalue(SVTags::TRACK_DATA)
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Method for getting the Phone Number.
|
|
153
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
154
|
+
# This method will return null
|
|
155
|
+
# 1. if execute method returns an error or
|
|
156
|
+
# 2. if response does not contain a value
|
|
157
|
+
#
|
|
158
|
+
# ===return
|
|
159
|
+
# String - the Phone Number
|
|
160
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
161
|
+
def getphonenumber()
|
|
162
|
+
return getvalue(SVTags::PHONE_NUMBER)
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Method for getting the Approval Code.
|
|
166
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
167
|
+
# This method will return null
|
|
168
|
+
# 1. if execute method returns an error or
|
|
169
|
+
# 2. if response does not contain a value
|
|
170
|
+
#
|
|
171
|
+
# ===return
|
|
172
|
+
# String - the approval code.
|
|
173
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
174
|
+
def getapprovalcode()
|
|
175
|
+
return getvalue(SVTags::APPROVAL_CODE)
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Method for getting the Transaction Type ID.
|
|
179
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
180
|
+
# This method will return null
|
|
181
|
+
# 1. if execute method returns an error or
|
|
182
|
+
# 2. if response does not contain a value
|
|
183
|
+
#
|
|
184
|
+
# ===return
|
|
185
|
+
# String - the transaction type id.
|
|
186
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
187
|
+
def gettransactiontypeid()
|
|
188
|
+
return getvalue(SVTags::TRANSACTION_TYPE_ID)
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Method for getting the First Name.
|
|
192
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
193
|
+
# This method will return null
|
|
194
|
+
# 1. if execute method returns an error or
|
|
195
|
+
# 2. if response does not contain a value
|
|
196
|
+
#
|
|
197
|
+
# ===return
|
|
198
|
+
# String - the First Name.
|
|
199
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
200
|
+
def getfirstname()
|
|
201
|
+
return getvalue(SVTags::FIRST_NAME)
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Method for getting the Last Name.
|
|
205
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
206
|
+
# This method will return null
|
|
207
|
+
# 1. if execute method returns an error or
|
|
208
|
+
# 2. if response does not contain a value
|
|
209
|
+
#
|
|
210
|
+
# ===return
|
|
211
|
+
# String - the Last Name.
|
|
212
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
213
|
+
def getlastname()
|
|
214
|
+
return getvalue(SVTags::LAST_NAME)
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Method for getting the expiry date of the card.
|
|
218
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
219
|
+
# This method will return null
|
|
220
|
+
# 1. if execute method returns an error or
|
|
221
|
+
# 2. if response does not contain a value
|
|
222
|
+
#
|
|
223
|
+
# ===return
|
|
224
|
+
# Date - the value for Expiry
|
|
225
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
226
|
+
def getcardexpiry()
|
|
227
|
+
return getvalue(SVTags::EXPIRY)
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Method for getting the date at QwikCilver Server.
|
|
231
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
232
|
+
# This method will return null
|
|
233
|
+
# 1. if execute method returns an error or
|
|
234
|
+
# 2. if response does not contain a value
|
|
235
|
+
#
|
|
236
|
+
# ===return
|
|
237
|
+
# Date - the date at QwikCilver Server
|
|
238
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
239
|
+
def getdateatserver()
|
|
240
|
+
return getdate(SVTags::DATE_AT_SERVER, SVUtils::QC_SERVER_DATE_FORMAT)
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# Method for getting the balance amount on a card.
|
|
244
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
245
|
+
# This method will return null
|
|
246
|
+
# 1. if execute method returns an error or
|
|
247
|
+
# 2. if response does not contain a value
|
|
248
|
+
#
|
|
249
|
+
# ===return
|
|
250
|
+
# Float - the balance amount for the given card
|
|
251
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
252
|
+
def getcardbalance()
|
|
253
|
+
return getvalueasfloat(SVTags::CARD_BALANCE)
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Method for getting the amount used in an operation on a card.
|
|
257
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
258
|
+
# This method will return null
|
|
259
|
+
# 1. if execute method returns an error or
|
|
260
|
+
# 2. if response does not contain a value
|
|
261
|
+
#
|
|
262
|
+
# ===return
|
|
263
|
+
# double - the amount specified for this operation
|
|
264
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
265
|
+
def getamount()
|
|
266
|
+
return getvalueasfloat(SVTags::AMOUNT)
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# Method for getting the Card Type.
|
|
270
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
271
|
+
# This method will return null
|
|
272
|
+
# if execute method returns an error or
|
|
273
|
+
# if response does not contain a value
|
|
274
|
+
#
|
|
275
|
+
# ===return
|
|
276
|
+
# String - the Card Type.
|
|
277
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
278
|
+
def getcardtype()
|
|
279
|
+
return getvalue(SVTags::CARD_TYPE)
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# Method for getting the Corporate Name.
|
|
283
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
284
|
+
# This method will return null
|
|
285
|
+
# if execute method returns an error or
|
|
286
|
+
# if response does not contain a value
|
|
287
|
+
#
|
|
288
|
+
# ===return
|
|
289
|
+
# String - the Corporate Name.
|
|
290
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
291
|
+
def getcorporatename()
|
|
292
|
+
return getvalue(SVTags::CORPORATE_NAME)
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# Method for getting the Card Program Group Name.
|
|
296
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
297
|
+
# This method will return null
|
|
298
|
+
# if execute method returns an error or
|
|
299
|
+
# if response does not contain a value
|
|
300
|
+
#
|
|
301
|
+
# ===return
|
|
302
|
+
# String - the Card Program Group Name.
|
|
303
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
304
|
+
def getcardprogramgroupname()
|
|
305
|
+
return getvalue(SVTags::CARD_PROGRAM_GROUP_NAME)
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
# Method for getting the Invoice Number specified for an operation on a card.
|
|
309
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
310
|
+
# This method will return null
|
|
311
|
+
# if execute method returns an error or
|
|
312
|
+
# if response does not contain a value
|
|
313
|
+
#
|
|
314
|
+
# ===return
|
|
315
|
+
# String - the Invoice Number specified for this operation.
|
|
316
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
317
|
+
def getinvoicenumber()
|
|
318
|
+
return getvalue(SVTags::INVOICE_NUMBER)
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
# Method for getting the Transfer Card Number.
|
|
322
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
323
|
+
# This method will return null
|
|
324
|
+
# if execute method returns an error or
|
|
325
|
+
# if response does not contain a value
|
|
326
|
+
#
|
|
327
|
+
# ===return
|
|
328
|
+
# String - the Transfer Card Number.
|
|
329
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
330
|
+
def gettransfercardnumber()
|
|
331
|
+
return getvalue(SVTags::TRANSFER_CARD_NUMBER)
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
# Method for getting the Transfer Card Expiry date.
|
|
335
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
336
|
+
# This method will return null
|
|
337
|
+
# if execute method returns an error or
|
|
338
|
+
# if response does not contain a value
|
|
339
|
+
#
|
|
340
|
+
# ===return
|
|
341
|
+
# Date - the Transfer Card Expiry date.
|
|
342
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
343
|
+
def gettransfercardexpiry()
|
|
344
|
+
return getvalue(SVTags::TRANSFER_CARD_EXPIRY)
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
# Method for getting the balance amount on a transfer card.
|
|
348
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
349
|
+
# This method will return null
|
|
350
|
+
# if execute method returns an error or
|
|
351
|
+
# if response does not contain a value
|
|
352
|
+
#
|
|
353
|
+
# ===return
|
|
354
|
+
# Float - the balance amount
|
|
355
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
356
|
+
def gettransfercardbalance()
|
|
357
|
+
return getvalueasfloat(SVTags::TRANSFER_CARD_BALANCE)
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
# Method for getting the EmbossingFileRecord.
|
|
361
|
+
# EmbossingFileRecord contains multiple tracks with trackdata in each track
|
|
362
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
363
|
+
# This method will return null
|
|
364
|
+
# if execute method returns an error or
|
|
365
|
+
# if response does not contain a value
|
|
366
|
+
#
|
|
367
|
+
# ===return
|
|
368
|
+
# String - EmbossingFileRecord contains multiple tracks with trackdata in each track
|
|
369
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
370
|
+
def getembossingrecord()
|
|
371
|
+
return getvalue(SVTags::EMBOSSING_RECORD)
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
# Method for getting the Settlement Date.
|
|
375
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
376
|
+
# This method will return null
|
|
377
|
+
# if execute method returns an error or
|
|
378
|
+
# if response does not contain a value
|
|
379
|
+
#
|
|
380
|
+
# ===return
|
|
381
|
+
# Date - the Settlement Date.
|
|
382
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
383
|
+
def getsettlementdate()
|
|
384
|
+
return getvalue(SVTags::SETTLEMENT_DATE, SVUtils.QC_SERVER_DATE_FORMAT)
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
# Method for getting the Activation Amount.
|
|
388
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
389
|
+
# This method will return null
|
|
390
|
+
# if execute method returns an error or
|
|
391
|
+
# if response does not contain a value
|
|
392
|
+
#
|
|
393
|
+
# ===return
|
|
394
|
+
# Float - the Activation Amount
|
|
395
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
396
|
+
def getactivationamount()
|
|
397
|
+
return getvalueasfloat(SVTags::ACTIVATION_AMOUNT)
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
# Method for getting the Activation Count.
|
|
401
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
402
|
+
# This method will return null
|
|
403
|
+
# if execute method returns an error or
|
|
404
|
+
# if response does not contain a value
|
|
405
|
+
#
|
|
406
|
+
# ===return
|
|
407
|
+
# Bignum - the Activation Count
|
|
408
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
409
|
+
def getactivationcount()
|
|
410
|
+
return getvalueasint(SVTags::ACTIVATION_COUNT)
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
# Method for getting the Redemption Count.
|
|
414
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
415
|
+
# This method will return null
|
|
416
|
+
# if execute method returns an error or
|
|
417
|
+
# if response does not contain a value
|
|
418
|
+
#
|
|
419
|
+
# ===return
|
|
420
|
+
# Float - the Redemption Count
|
|
421
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
422
|
+
def getredemptioncount()
|
|
423
|
+
return getvalueasfloat(SVTags::REDEEM_COUNT)
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
# Method for getting the Redemption Amount.
|
|
427
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
428
|
+
# This method will return null
|
|
429
|
+
# if execute method returns an error or
|
|
430
|
+
# if response does not contain a value
|
|
431
|
+
#
|
|
432
|
+
# ===return
|
|
433
|
+
# Float - the Redemption Amount
|
|
434
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
435
|
+
def getredemptionamount()
|
|
436
|
+
return getvalueasfloat(SVTags::REDEEM_AMOUNT)
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
# Method for getting the Cancel Activation Amount.
|
|
440
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
441
|
+
# This method will return null
|
|
442
|
+
# if execute method returns an error or
|
|
443
|
+
# if response does not contain a value
|
|
444
|
+
#
|
|
445
|
+
# ===return
|
|
446
|
+
# Float - the Cancel Activation Amount
|
|
447
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
448
|
+
def getcancelactivationamount()
|
|
449
|
+
return getvalueasfloat(SVTags::CANCEL_ACTIVATION_AMOUNT)
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
# Method for getting the Cancel Activation Count.
|
|
453
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
454
|
+
# This method will return null
|
|
455
|
+
# if execute method returns an error or
|
|
456
|
+
# if response does not contain a value
|
|
457
|
+
#
|
|
458
|
+
# ===return
|
|
459
|
+
# Bignum - the Cancel Activation Count
|
|
460
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
461
|
+
def getcancelactivationcount()
|
|
462
|
+
return getvalueasint(SVTags::CANCEL_ACTIVATION_COUNT)
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
# Method for getting the Reload Amount.
|
|
466
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
467
|
+
# This method will return null
|
|
468
|
+
# if execute method returns an error or
|
|
469
|
+
# if response does not contain a value
|
|
470
|
+
#
|
|
471
|
+
# ===return
|
|
472
|
+
# Float - the Reload amount
|
|
473
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
474
|
+
def getreloadamount()
|
|
475
|
+
return getvalueasfloat(SVTags::RELOAD_AMOUNT)
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
# Method for getting the Reload Count.
|
|
479
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
480
|
+
# This method will return null
|
|
481
|
+
# if execute method returns an error or
|
|
482
|
+
# if response does not contain a value
|
|
483
|
+
#
|
|
484
|
+
# ===return
|
|
485
|
+
# Bignum - the Reload Count
|
|
486
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
487
|
+
def getreloadcount()
|
|
488
|
+
return getvalueasint(SVTags::RELOAD_COUNT)
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
# Method for getting the Cancel Load Amount.
|
|
492
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
493
|
+
# This method will return null
|
|
494
|
+
# if execute method returns an error or
|
|
495
|
+
# if response does not contain a value
|
|
496
|
+
#
|
|
497
|
+
# ===return
|
|
498
|
+
# Float - the Cancel Load amount
|
|
499
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
500
|
+
def getcancelloadamount()
|
|
501
|
+
return getvalueasfloat(SVTags::CANCEL_LOAD_AMOUNT)
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
# Method for getting the Cancel Load Count.
|
|
505
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
506
|
+
# This method will return null
|
|
507
|
+
# if execute method returns an error or
|
|
508
|
+
# if response does not contain a value
|
|
509
|
+
#
|
|
510
|
+
# ===return
|
|
511
|
+
# Bignum - the Cancel Load Count
|
|
512
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
513
|
+
def getcancelloadcount()
|
|
514
|
+
return getvalueasint(SVTags::CANCEL_LOAD_COUNT)
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
# Method for getting the Redeem Amount.
|
|
518
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
519
|
+
# This method will return null
|
|
520
|
+
# if execute method returns an error or
|
|
521
|
+
# if response does not contain a value
|
|
522
|
+
#
|
|
523
|
+
# ===return
|
|
524
|
+
# Float - the Redeem amount
|
|
525
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
526
|
+
def getredeemamount()
|
|
527
|
+
return getvalueasfloat(SVTags::REDEEM_AMOUNT)
|
|
528
|
+
end
|
|
529
|
+
|
|
530
|
+
# Method for getting the Redeem Count.
|
|
531
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
532
|
+
# This method will return null
|
|
533
|
+
# if execute method returns an error or
|
|
534
|
+
# if response does not contain a value
|
|
535
|
+
#
|
|
536
|
+
# ===return
|
|
537
|
+
# Bignum - the Redeem Count
|
|
538
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
539
|
+
def getredeemcount()
|
|
540
|
+
return getvalueasint(SVTags::REDEEM_COUNT)
|
|
541
|
+
end
|
|
542
|
+
|
|
543
|
+
# Method for getting the Cancel Redeem Amount.
|
|
544
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
545
|
+
# This method will return null
|
|
546
|
+
# if execute method returns an error or
|
|
547
|
+
# if response does not contain a value
|
|
548
|
+
#
|
|
549
|
+
# ===return
|
|
550
|
+
# Float - the Cancel Redeem amount
|
|
551
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
552
|
+
def getcancelredeemamount()
|
|
553
|
+
return getvalueasfloat(SVTags::CANCEL_REDEEM_AMOUNT)
|
|
554
|
+
end
|
|
555
|
+
|
|
556
|
+
# Method for getting the Cancel Redeem Count.
|
|
557
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
558
|
+
# This method will return null
|
|
559
|
+
# if execute method returns an error or
|
|
560
|
+
# if response does not contain a value
|
|
561
|
+
#
|
|
562
|
+
# ===return
|
|
563
|
+
# Bignum - the Cancel Redeem Count
|
|
564
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
565
|
+
def getcancelredeemcount()
|
|
566
|
+
return getvalueasint(SVTags::CANCEL_REDEEM_COUNT)
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
# Method for getting the new batch number.
|
|
570
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
571
|
+
# This method will return null
|
|
572
|
+
# 1. if execute method returns an error or
|
|
573
|
+
# 2. if response does not contain a value
|
|
574
|
+
#
|
|
575
|
+
# ===return
|
|
576
|
+
# Bignum - the new batch number
|
|
577
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
578
|
+
def getnewbatchnumber()
|
|
579
|
+
return getvalueasint(SVTags::NEW_BATCH_NUMBER)
|
|
580
|
+
end
|
|
581
|
+
# Method for getting the previous balance.
|
|
582
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
583
|
+
# This method will return null
|
|
584
|
+
# 1. if execute method returns an error or
|
|
585
|
+
# 2. if response does not contain a value
|
|
586
|
+
#
|
|
587
|
+
# ===return
|
|
588
|
+
# String - the previous balance
|
|
589
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
590
|
+
def getpreviousbalance()
|
|
591
|
+
return getvalue(SVTags::PREV_BALANCE)
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
# Method for getting the promotional value.
|
|
595
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
596
|
+
# This method will return null
|
|
597
|
+
# 1. if execute method returns an error or
|
|
598
|
+
# 2. if response does not contain a value
|
|
599
|
+
#
|
|
600
|
+
# ===return
|
|
601
|
+
# String - the promotional value
|
|
602
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
603
|
+
def getpromotionalvalue()
|
|
604
|
+
return getvalue(SVTags::PROMOTIONAL_VALUE)
|
|
605
|
+
end
|
|
606
|
+
|
|
607
|
+
# Method for getting the transaction amount converted value.
|
|
608
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
609
|
+
# This method will return null
|
|
610
|
+
# 1. if execute method returns an error or
|
|
611
|
+
# 2. if response does not contain a value
|
|
612
|
+
#
|
|
613
|
+
# ===return
|
|
614
|
+
# String - the transaction amount converted value
|
|
615
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
616
|
+
def gettransactionamountconvertedvalue()
|
|
617
|
+
return getvalue(SVTags::TRANSACTION_AMOUNT_CONVERTED_VALUE)
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
# Method for getting the card currency.
|
|
621
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
622
|
+
# This method will return null
|
|
623
|
+
# 1. if execute method returns an error or
|
|
624
|
+
# 2. if response does not contain a value
|
|
625
|
+
#
|
|
626
|
+
# ===return
|
|
627
|
+
# String - the currency symbol
|
|
628
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
629
|
+
def getcardcurrencysymbol()
|
|
630
|
+
return getvalue(SVTags::CARD_CURRENCY_SYMBOL)
|
|
631
|
+
end
|
|
632
|
+
|
|
633
|
+
# Method for getting the currency conversion rate.
|
|
634
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
635
|
+
# This method will return null
|
|
636
|
+
# 1. if execute method returns an error or
|
|
637
|
+
# 2. if response does not contain a value
|
|
638
|
+
#
|
|
639
|
+
# ===return
|
|
640
|
+
# String - the currency conversion rate
|
|
641
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
642
|
+
def getcurrencyconversionrate()
|
|
643
|
+
return getvalue(SVTags::CURRENCY_CONVERSION_RATE)
|
|
644
|
+
end
|
|
645
|
+
|
|
646
|
+
# Method for getting the currency converted amount.
|
|
647
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
648
|
+
# This method will return null
|
|
649
|
+
# 1. if execute method returns an error or
|
|
650
|
+
# 2. if response does not contain a value
|
|
651
|
+
#
|
|
652
|
+
# ===return
|
|
653
|
+
# String - the currency converted amount
|
|
654
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
655
|
+
def getcurrencyconvertedamount()
|
|
656
|
+
return getvalue(SVTags::CURRENCY_CONVERTED_AMOUNT)
|
|
657
|
+
end
|
|
658
|
+
|
|
659
|
+
# Method for getting the Card Holder Name.
|
|
660
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
661
|
+
# This method will return null
|
|
662
|
+
# 1. if execute method returns an error or
|
|
663
|
+
# 2. if response does not contain a value
|
|
664
|
+
#
|
|
665
|
+
# ===return
|
|
666
|
+
# String - the Card Holder Name
|
|
667
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
668
|
+
def getcardholdername()
|
|
669
|
+
return getvalue(SVTags::CARD_HOLDER_NAME)
|
|
670
|
+
end
|
|
671
|
+
|
|
672
|
+
# Method for getting the Employee Id.
|
|
673
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
674
|
+
# This method will return null
|
|
675
|
+
# 1. if execute method returns an error or
|
|
676
|
+
# 2. if response does not contain a value
|
|
677
|
+
#
|
|
678
|
+
# ===return
|
|
679
|
+
# String - the Employee Id
|
|
680
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
681
|
+
def getemployeeid()
|
|
682
|
+
return getvalue(SVTags::EMPLOYEE_ID)
|
|
683
|
+
end
|
|
684
|
+
|
|
685
|
+
# Method for getting the SVType.
|
|
686
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
687
|
+
# This method will return null
|
|
688
|
+
# 1. if execute method returns an error or
|
|
689
|
+
# 2. if response does not contain a value
|
|
690
|
+
#
|
|
691
|
+
# ===return
|
|
692
|
+
# String - the SVType
|
|
693
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
694
|
+
def getsvtype()
|
|
695
|
+
return getvalue(SVTags::SV_TYPE)
|
|
696
|
+
end
|
|
697
|
+
|
|
698
|
+
# Method for getting the SV Converted Amount.
|
|
699
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
700
|
+
# This method will return null
|
|
701
|
+
# 1. if execute method returns an error or
|
|
702
|
+
# 2. if response does not contain a value
|
|
703
|
+
#
|
|
704
|
+
# ===return
|
|
705
|
+
# String - the SV Converted Amount
|
|
706
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
707
|
+
def getsvconvertedamount()
|
|
708
|
+
return getvalue(SVTags::SV_CONVERTED_AMOUNT)
|
|
709
|
+
end
|
|
710
|
+
|
|
711
|
+
# Method for getting the Transaction Amount.
|
|
712
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
713
|
+
# This method will return null
|
|
714
|
+
# 1. if execute method returns an error or
|
|
715
|
+
# 2. if response does not contain a value
|
|
716
|
+
#
|
|
717
|
+
# ===return
|
|
718
|
+
# String - the Transaction Amount
|
|
719
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
720
|
+
def gettransactionamount()
|
|
721
|
+
return getvalue(SVTags::XACTION_AMOUNT)
|
|
722
|
+
end
|
|
723
|
+
|
|
724
|
+
# Method for getting the Earned Value.
|
|
725
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
726
|
+
# This method will return null
|
|
727
|
+
# 1. if execute method returns an error or
|
|
728
|
+
# 2. if response does not contain a value
|
|
729
|
+
#
|
|
730
|
+
# ===return
|
|
731
|
+
# String - the Earned Value
|
|
732
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
733
|
+
def getearnedvalue()
|
|
734
|
+
return getvalue(SVTags::EARNED_VALUE)
|
|
735
|
+
end
|
|
736
|
+
|
|
737
|
+
# Method for getting the Salutation.
|
|
738
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
739
|
+
# This method will return null
|
|
740
|
+
# 1. if execute method returns an error or
|
|
741
|
+
# 2. if response does not contain a value
|
|
742
|
+
#
|
|
743
|
+
# ===return
|
|
744
|
+
# String - the Salutation
|
|
745
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
746
|
+
def getsalutation()
|
|
747
|
+
return getvalue(SVTags::SALUTATION)
|
|
748
|
+
end
|
|
749
|
+
|
|
750
|
+
# Method for getting the Address1.
|
|
751
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
752
|
+
# This method will return null
|
|
753
|
+
# 1. if execute method returns an error or
|
|
754
|
+
# 2. if response does not contain a value
|
|
755
|
+
#
|
|
756
|
+
# ===return
|
|
757
|
+
# String - the Address1
|
|
758
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
759
|
+
def getaddress1()
|
|
760
|
+
return getvalue(SVTags::ADDRESS1)
|
|
761
|
+
end
|
|
762
|
+
|
|
763
|
+
# Method for getting the Address2.
|
|
764
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
765
|
+
# This method will return null
|
|
766
|
+
# 1. if execute method returns an error or
|
|
767
|
+
# 2. if response does not contain a value
|
|
768
|
+
#
|
|
769
|
+
# ===return
|
|
770
|
+
# String - the Address2
|
|
771
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
772
|
+
def getaddress2()
|
|
773
|
+
return getvalue(SVTags::ADDRESS2)
|
|
774
|
+
end
|
|
775
|
+
|
|
776
|
+
# Method for getting the Area.
|
|
777
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
778
|
+
# This method will return null
|
|
779
|
+
# 1. if execute method returns an error or
|
|
780
|
+
# 2. if response does not contain a value
|
|
781
|
+
#
|
|
782
|
+
# ===return
|
|
783
|
+
# String - the Area
|
|
784
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
785
|
+
def getarea()
|
|
786
|
+
return getvalue(SVTags::AREA)
|
|
787
|
+
end
|
|
788
|
+
|
|
789
|
+
# Method for getting the City.
|
|
790
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
791
|
+
# This method will return null
|
|
792
|
+
# 1. if execute method returns an error or
|
|
793
|
+
# 2. if response does not contain a value
|
|
794
|
+
#
|
|
795
|
+
# ===return
|
|
796
|
+
# String - the City
|
|
797
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
798
|
+
def getcity()
|
|
799
|
+
return getvalue(SVTags::CITY)
|
|
800
|
+
end
|
|
801
|
+
|
|
802
|
+
# Method for getting the State.
|
|
803
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
804
|
+
# This method will return null
|
|
805
|
+
# 1. if execute method returns an error or
|
|
806
|
+
# 2. if response does not contain a value
|
|
807
|
+
#
|
|
808
|
+
# ===return
|
|
809
|
+
# String - the State
|
|
810
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
811
|
+
def getstate()
|
|
812
|
+
return getvalue(SVTags::STATE)
|
|
813
|
+
end
|
|
814
|
+
|
|
815
|
+
# Method for getting the Country.
|
|
816
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
817
|
+
# This method will return null
|
|
818
|
+
# 1. if execute method returns an error or
|
|
819
|
+
# 2. if response does not contain a value
|
|
820
|
+
#
|
|
821
|
+
# ===return
|
|
822
|
+
# String - the Country
|
|
823
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
824
|
+
def getcountry()
|
|
825
|
+
return getvalue(SVTags::COUNTRY)
|
|
826
|
+
end
|
|
827
|
+
|
|
828
|
+
# Method for getting the PinCode.
|
|
829
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
830
|
+
# This method will return null
|
|
831
|
+
# 1. if execute method returns an error or
|
|
832
|
+
# 2. if response does not contain a value
|
|
833
|
+
#
|
|
834
|
+
# ===return
|
|
835
|
+
# String - the PinCode
|
|
836
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
837
|
+
def getpincode()
|
|
838
|
+
return getvalue(SVTags::PIN_CODE)
|
|
839
|
+
end
|
|
840
|
+
|
|
841
|
+
# Method for getting the Alternate Phone Number.
|
|
842
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
843
|
+
# This method will return null
|
|
844
|
+
# 1. if execute method returns an error or
|
|
845
|
+
# 2. if response does not contain a value
|
|
846
|
+
#
|
|
847
|
+
# ===return
|
|
848
|
+
# String - the Alternate Phone Number
|
|
849
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
850
|
+
def getalternatephonenumber()
|
|
851
|
+
return getvalue(SVTags::PHONE_ALTERNATE)
|
|
852
|
+
end
|
|
853
|
+
|
|
854
|
+
# Method for getting the Email.
|
|
855
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
856
|
+
# This method will return null
|
|
857
|
+
# 1. if execute method returns an error or
|
|
858
|
+
# 2. if response does not contain a value
|
|
859
|
+
#
|
|
860
|
+
# ===return
|
|
861
|
+
# String - the Email
|
|
862
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
863
|
+
def getemail()
|
|
864
|
+
return getvalue(SVTags::EMAIL)
|
|
865
|
+
end
|
|
866
|
+
|
|
867
|
+
# Method for getting the Date Of Birth.
|
|
868
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
869
|
+
# This method will return null
|
|
870
|
+
# 1. if execute method returns an error or
|
|
871
|
+
# 2. if response does not contain a value
|
|
872
|
+
#
|
|
873
|
+
# ===return
|
|
874
|
+
# String - the Date Of Birth
|
|
875
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
876
|
+
def getdob()
|
|
877
|
+
return getvalue(SVTags::DOB)
|
|
878
|
+
end
|
|
879
|
+
|
|
880
|
+
# Method for getting the Anniversary Date.
|
|
881
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
882
|
+
# This method will return null
|
|
883
|
+
# 1. if execute method returns an error or
|
|
884
|
+
# 2. if response does not contain a value
|
|
885
|
+
#
|
|
886
|
+
# ===return
|
|
887
|
+
# String - the Anniversary Date
|
|
888
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
889
|
+
def getanniversary()
|
|
890
|
+
return getvalue(SVTags::ANNIVERSARY)
|
|
891
|
+
end
|
|
892
|
+
|
|
893
|
+
# Method for getting the Gender.
|
|
894
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
895
|
+
# This method will return null
|
|
896
|
+
# 1. if execute method returns an error or
|
|
897
|
+
# 2. if response does not contain a value
|
|
898
|
+
#
|
|
899
|
+
# ===return
|
|
900
|
+
# String - the Gender
|
|
901
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
902
|
+
def getgender()
|
|
903
|
+
return getvalue(SVTags::GENDER)
|
|
904
|
+
end
|
|
905
|
+
|
|
906
|
+
# Method for getting the Marital Status.
|
|
907
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
908
|
+
# This method will return null
|
|
909
|
+
# 1. if execute method returns an error or
|
|
910
|
+
# 2. if response does not contain a value
|
|
911
|
+
#
|
|
912
|
+
# ===return
|
|
913
|
+
# String - the Marital Status
|
|
914
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
915
|
+
def getmaritalstatus()
|
|
916
|
+
return getvalue(SVTags::MARITAL_STATUS)
|
|
917
|
+
end
|
|
918
|
+
|
|
919
|
+
# Method for getting the Enrolled Store.
|
|
920
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
921
|
+
# This method will return null
|
|
922
|
+
# 1. if execute method returns an error or
|
|
923
|
+
# 2. if response does not contain a value
|
|
924
|
+
#
|
|
925
|
+
# ===return
|
|
926
|
+
# String - the Enrolled Store
|
|
927
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
928
|
+
def getenrolledstore()
|
|
929
|
+
return getvalue(SVTags::ENROLLED_STORE)
|
|
930
|
+
end
|
|
931
|
+
|
|
932
|
+
# Method for getting the Enrolled Since.
|
|
933
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
934
|
+
# This method will return null
|
|
935
|
+
# 1. if execute method returns an error or
|
|
936
|
+
# 2. if response does not contain a value
|
|
937
|
+
#
|
|
938
|
+
# ===return
|
|
939
|
+
# String - the Enrolled Since
|
|
940
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
941
|
+
def getenrolledsince()
|
|
942
|
+
return getvalue(SVTags::ENROLLED_SINCE)
|
|
943
|
+
end
|
|
944
|
+
|
|
945
|
+
# Method for getting the Card Status.
|
|
946
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
947
|
+
# This method will return null
|
|
948
|
+
# 1. if execute method returns an error or
|
|
949
|
+
# 2. if response does not contain a value
|
|
950
|
+
#
|
|
951
|
+
# ===return
|
|
952
|
+
# String - the Card Status
|
|
953
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
954
|
+
def getcardstatus()
|
|
955
|
+
return getvalue(SVTags::CARD_STATUS)
|
|
956
|
+
end
|
|
957
|
+
|
|
958
|
+
# Method for getting the Outstanding Balance.
|
|
959
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
960
|
+
# This method will return null
|
|
961
|
+
# 1. if execute method returns an error or
|
|
962
|
+
# 2. if response does not contain a value
|
|
963
|
+
#
|
|
964
|
+
# ===return
|
|
965
|
+
# String - the Outstanding Balance
|
|
966
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
967
|
+
def getoutstandingbalance()
|
|
968
|
+
return getvalue(SVTags::OUTSTANDING_BALANCE)
|
|
969
|
+
end
|
|
970
|
+
|
|
971
|
+
# Method for getting the Card Expiry Date.
|
|
972
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
973
|
+
# This method will return null
|
|
974
|
+
# 1. if execute method returns an error or
|
|
975
|
+
# 2. if response does not contain a value
|
|
976
|
+
#
|
|
977
|
+
# ===return
|
|
978
|
+
# String - the Card Expiry Date
|
|
979
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
980
|
+
def getcardexpirydate()
|
|
981
|
+
return getvalue(SVTags::CARD_EXPIRY_DATE)
|
|
982
|
+
end
|
|
983
|
+
|
|
984
|
+
# Method for getting the Customer Validation For Redemption.
|
|
985
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
986
|
+
# This method will return null
|
|
987
|
+
# 1. if execute method returns an error or
|
|
988
|
+
# 2. if response does not contain a value
|
|
989
|
+
#
|
|
990
|
+
# ===return
|
|
991
|
+
# String - the Customer Validation For Redemption
|
|
992
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
993
|
+
def getcustomervalidationforredemption()
|
|
994
|
+
return getvalue(SVTags::CUSTOMER_VALIDATION_FOR_REDEMPTION)
|
|
995
|
+
end
|
|
996
|
+
|
|
997
|
+
# Method for getting the Meets Minimum Redemption Criteria.
|
|
998
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
999
|
+
# This method will return null
|
|
1000
|
+
# 1. if execute method returns an error or
|
|
1001
|
+
# 2. if response does not contain a value
|
|
1002
|
+
#
|
|
1003
|
+
# ===return
|
|
1004
|
+
# String - the Meets Minimum Redemption Criteria
|
|
1005
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
1006
|
+
def getmeetsminimumredemptioncriteria()
|
|
1007
|
+
return getvalue(SVTags::MEETS_MINIMUM_REDEMPTION_CRITERIA)
|
|
1008
|
+
end
|
|
1009
|
+
|
|
1010
|
+
# Method for getting the Ready For Redemption.
|
|
1011
|
+
# This method will return a valid value only if execute method returns SUCCESS.
|
|
1012
|
+
# This method will return null
|
|
1013
|
+
# 1. if execute method returns an error or
|
|
1014
|
+
# 2. if response does not contain a value
|
|
1015
|
+
#
|
|
1016
|
+
# ===return
|
|
1017
|
+
# String - the Ready For Redemption
|
|
1018
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
1019
|
+
def getreadyforredemption()
|
|
1020
|
+
return getvalue(SVTags::READY_FOR_REDEMPTION)
|
|
1021
|
+
end
|
|
1022
|
+
|
|
1023
|
+
def getposname() return getvalue(SVTags::POS_NAME) end
|
|
1024
|
+
def getpostypeid() return getvalue(SVTags::POS_TYPE_ID) end
|
|
1025
|
+
def getposentrymode() return getvalue(SVTags::POS_ENTRY_MODE) end
|
|
1026
|
+
def getmerchantoutletname() return getvalue(SVTags::MERCHANT_OUTLET_NAME) end
|
|
1027
|
+
def getmerchantname() return getvalue(SVTags::MERCHANT_NAME) end
|
|
1028
|
+
def getorganizationname() return getvalue(SVTags::ORGANIZATION_NAME) end
|
|
1029
|
+
def getacquirerid() return getvalue(SVTags::ACQUIRER_ID) end
|
|
1030
|
+
|
|
1031
|
+
def self.getparams()
|
|
1032
|
+
return @@params
|
|
1033
|
+
end
|
|
1034
|
+
|
|
1035
|
+
# Method for getting the Last N Transactions.
|
|
1036
|
+
# This method will return an array of SVGiftRecentTransactions objects which has that last N transactions data.
|
|
1037
|
+
# This method will return null
|
|
1038
|
+
# 1. if execute method returns an error or
|
|
1039
|
+
# 2. if response does not contain a value
|
|
1040
|
+
#
|
|
1041
|
+
# ===return
|
|
1042
|
+
# Array(SVGiftRecentTransactions) - the Last N Transactions data.
|
|
1043
|
+
# returns null if execute method returns an error or if response does not contain the value
|
|
1044
|
+
def getgiftrecenttransactions()
|
|
1045
|
+
recenttransactions = getvalue(SVTags::RECENT_TRANSACTIONS)
|
|
1046
|
+
if (recenttransactions[0] != nil)
|
|
1047
|
+
parsedrecenttransactions = SVUtils::parsegiftrecenttransactions(recenttransactions)
|
|
1048
|
+
end
|
|
1049
|
+
return parsedrecenttransactions
|
|
1050
|
+
end
|
|
1051
|
+
end
|