Class: ShellDataReportingApIs::AuditResponseAuditsItems

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb

Overview

AuditResponseAuditsItems Model.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

Constructor Details

#initialize(account_id = SKIP, account_number = SKIP, additional_information1 = SKIP, additional_information2 = SKIP, additional_information3 = SKIP, additional_information4 = SKIP, additional_information5 = SKIP, additional_information6 = SKIP, additional_information7 = SKIP, additional_information8 = SKIP, additional_information9 = SKIP, card_group_id = SKIP, card_group_name = SKIP, card_id = SKIP, col_co_code = SKIP, col_co_id = SKIP, error_code = SKIP, error_string = SKIP, global_request_id = SKIP, pan = SKIP, payer_id = SKIP, payer_number = SKIP, processed_on = SKIP, requested_by = SKIP, requested_operation = SKIP, request_reference = SKIP, request_type = SKIP, status = SKIP, submitted_on = SKIP, sub_request_reference = SKIP, user_display_name = SKIP) ⇒ AuditResponseAuditsItems

Returns a new instance of AuditResponseAuditsItems.



300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 300

def initialize( = SKIP,  = SKIP,
               additional_information1 = SKIP,
               additional_information2 = SKIP,
               additional_information3 = SKIP,
               additional_information4 = SKIP,
               additional_information5 = SKIP,
               additional_information6 = SKIP,
               additional_information7 = SKIP,
               additional_information8 = SKIP,
               additional_information9 = SKIP, card_group_id = SKIP,
               card_group_name = SKIP, card_id = SKIP, col_co_code = SKIP,
               col_co_id = SKIP, error_code = SKIP, error_string = SKIP,
               global_request_id = SKIP, pan = SKIP, payer_id = SKIP,
               payer_number = SKIP, processed_on = SKIP,
               requested_by = SKIP, requested_operation = SKIP,
               request_reference = SKIP, request_type = SKIP, status = SKIP,
                = SKIP, sub_request_reference = SKIP,
               user_display_name = SKIP)
  @account_id =  unless  == SKIP
  @account_number =  unless  == SKIP
  @additional_information1 = additional_information1 unless additional_information1 == SKIP
  @additional_information2 = additional_information2 unless additional_information2 == SKIP
  @additional_information3 = additional_information3 unless additional_information3 == SKIP
  @additional_information4 = additional_information4 unless additional_information4 == SKIP
  @additional_information5 = additional_information5 unless additional_information5 == SKIP
  @additional_information6 = additional_information6 unless additional_information6 == SKIP
  @additional_information7 = additional_information7 unless additional_information7 == SKIP
  @additional_information8 = additional_information8 unless additional_information8 == SKIP
  @additional_information9 = additional_information9 unless additional_information9 == SKIP
  @card_group_id = card_group_id unless card_group_id == SKIP
  @card_group_name = card_group_name unless card_group_name == SKIP
  @card_id = card_id unless card_id == SKIP
  @col_co_code = col_co_code unless col_co_code == SKIP
  @col_co_id = col_co_id unless col_co_id == SKIP
  @error_code = error_code unless error_code == SKIP
  @error_string = error_string unless error_string == SKIP
  @global_request_id = global_request_id unless global_request_id == SKIP
  @pan = pan unless pan == SKIP
  @payer_id = payer_id unless payer_id == SKIP
  @payer_number = payer_number unless payer_number == SKIP
  @processed_on = processed_on unless processed_on == SKIP
  @requested_by = requested_by unless requested_by == SKIP
  @requested_operation = requested_operation unless requested_operation == SKIP
  @request_reference = request_reference unless request_reference == SKIP
  @request_type = request_type unless request_type == SKIP
  @status = status unless status == SKIP
  @submitted_on =  unless  == SKIP
  @sub_request_reference = sub_request_reference unless sub_request_reference == SKIP
  @user_display_name = user_display_name unless user_display_name == SKIP
end

Instance Attribute Details

#account_idInteger

Account id of the customer. It will be the source account id in case of “Fund Transfer

Returns:

  • (Integer)


15
16
17
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 15

def 
  @account_id
end

#account_numberString

Account number of the customer. It will be the source account number in case of “Fund Transfer”

Returns:

  • (String)


20
21
22
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 20

def 
  @account_number
end

#additional_information1String

Additional information in the request.

Returns:

  • (String)


24
25
26
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 24

def additional_information1
  @additional_information1
end

#additional_information2String

Additional information in the request.

Returns:

  • (String)


28
29
30
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 28

def additional_information2
  @additional_information2
end

#additional_information3String

Additional information in the request.

Returns:

  • (String)


32
33
34
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 32

def additional_information3
  @additional_information3
end

#additional_information4String

Additional information in the request.

Returns:

  • (String)


36
37
38
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 36

def additional_information4
  @additional_information4
end

#additional_information5String

Additional information in the request.

Returns:

  • (String)


40
41
42
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 40

def additional_information5
  @additional_information5
end

#additional_information6String

Additional information in the request.

Returns:

  • (String)


44
45
46
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 44

def additional_information6
  @additional_information6
end

#additional_information7String

Additional information in the request.

Returns:

  • (String)


48
49
50
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 48

def additional_information7
  @additional_information7
end

#additional_information8String

Additional information in the request.

Returns:

  • (String)


52
53
54
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 52

def additional_information8
  @additional_information8
end

#additional_information9String

Additional information in the request.

Returns:

  • (String)


56
57
58
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 56

def additional_information9
  @additional_information9
end

#card_group_idInteger

Additional information in the request.

Returns:

  • (Integer)


60
61
62
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 60

def card_group_id
  @card_group_id
end

#card_group_nameString

Card group name in the request.

Returns:

  • (String)


64
65
66
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 64

def card_group_name
  @card_group_name
end

#card_idInteger

Card Id in the request

Returns:

  • (Integer)


68
69
70
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 68

def card_id
  @card_id
end

#col_co_codeInteger

Collecting company code of the customer

Returns:

  • (Integer)


72
73
74
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 72

def col_co_code
  @col_co_code
end

#col_co_idInteger

Collecting company id of the customer.

Returns:

  • (Integer)


76
77
78
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 76

def col_co_id
  @col_co_id
end

#error_codeString

Error code of the request

Returns:

  • (String)


80
81
82
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 80

def error_code
  @error_code
end

#error_stringString

Error description of the request

Returns:

  • (String)


84
85
86
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 84

def error_string
  @error_string
end

#global_request_idString

Global unique request reference provided by client application.

Returns:

  • (String)


88
89
90
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 88

def global_request_id
  @global_request_id
end

#panString

PAN in the request. If Mask PAN is enabled at Microservices configuration then all digits of the PAN, except the last 6 digits, will be masked.

Returns:

  • (String)


94
95
96
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 94

def pan
  @pan
end

#payer_idInteger

Payer id of the customer.

Returns:

  • (Integer)


98
99
100
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 98

def payer_id
  @payer_id
end

#payer_numberString

Payer number of the customer.

Returns:

  • (String)


102
103
104
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 102

def payer_number
  @payer_number
end

#processed_onString

Request processed date. Format: yyyyMMdd HH:mm: ss

Returns:

  • (String)


107
108
109
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 107

def processed_on
  @processed_on
end

#request_referenceInteger

Reference number for the requested operation.

Returns:

  • (Integer)


139
140
141
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 139

def request_reference
  @request_reference
end

#request_typeString

Request type initiated under the requested operation. Possible values: • OrderCard • CreateCardGroup • PINReminder • MoveCard • UpdateCardStatus • UpdateCardGroup • AutoRenew • BulkCardOrder • BulkCardBlock • BulkCardOrderMultiAccount • MobilePaymentRegistration • UpdateCompanyInfo • BCOSummary • BCOMultiAccountSummary • BCBSummary • FundTransfer • DeliveryAddressUpdate

Returns:

  • (String)


161
162
163
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 161

def request_type
  @request_type
end

#requested_byString

vUUID of the user who submitted this request. It will be the UUID of the Driver in the case of “MobilePaymentRegistration”

Returns:

  • (String)


113
114
115
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 113

def requested_by
  @requested_by
end

#requested_operationString

User requested operation. Possible values: • OrderCard • CreateCardGroup • PINReminder • MoveCard • UpdateCardStatus • UpdateCardGroup • AutoRenew • BulkCardOrder • BulkCardBlock • BulkCardOrderMultiAccount • MobilePaymentRegistration • UpdateCompanyInfo • BCOSummary • BCOMultiAccountSummary • BCBSummary • FundTransfer • DeliveryAddressUpdate

Returns:

  • (String)


135
136
137
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 135

def requested_operation
  @requested_operation
end

#statusString

Status of the request. Possible values: • Success • Failed • InProgress • Submitted • Rejected • PendingApproval • MailedToCSC

Returns:

  • (String)


173
174
175
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 173

def status
  @status
end

#sub_request_referenceInteger

Reference number for the individual request type.

Returns:

  • (Integer)


182
183
184
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 182

def sub_request_reference
  @sub_request_reference
end

#submitted_onString

Request submitted date. Format: yyyyMMdd HH:mm: ss

Returns:

  • (String)


178
179
180
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 178

def 
  @submitted_on
end

#user_display_nameString

Display name of the user who submitted this request. It will be the Display Name of the Driver in the case of “MobilePaymentRegistration” in the below format:

Returns:

  • (String)


188
189
190
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 188

def user_display_name
  @user_display_name
end

Class Method Details

.from_hash(hash) ⇒ Object

Creates an instance of the object from a hash.



352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 352

def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
   = hash.key?('AccountId') ? hash['AccountId'] : SKIP
   = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
  additional_information1 =
    hash.key?('AdditionalInformation1') ? hash['AdditionalInformation1'] : SKIP
  additional_information2 =
    hash.key?('AdditionalInformation2') ? hash['AdditionalInformation2'] : SKIP
  additional_information3 =
    hash.key?('AdditionalInformation3') ? hash['AdditionalInformation3'] : SKIP
  additional_information4 =
    hash.key?('AdditionalInformation4') ? hash['AdditionalInformation4'] : SKIP
  additional_information5 =
    hash.key?('AdditionalInformation5') ? hash['AdditionalInformation5'] : SKIP
  additional_information6 =
    hash.key?('AdditionalInformation6') ? hash['AdditionalInformation6'] : SKIP
  additional_information7 =
    hash.key?('AdditionalInformation7') ? hash['AdditionalInformation7'] : SKIP
  additional_information8 =
    hash.key?('AdditionalInformation8') ? hash['AdditionalInformation8'] : SKIP
  additional_information9 =
    hash.key?('AdditionalInformation9') ? hash['AdditionalInformation9'] : SKIP
  card_group_id = hash.key?('CardGroupId') ? hash['CardGroupId'] : SKIP
  card_group_name =
    hash.key?('CardGroupName') ? hash['CardGroupName'] : SKIP
  card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
  col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
  col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
  error_code = hash.key?('ErrorCode') ? hash['ErrorCode'] : SKIP
  error_string = hash.key?('ErrorString') ? hash['ErrorString'] : SKIP
  global_request_id =
    hash.key?('GlobalRequestID') ? hash['GlobalRequestID'] : SKIP
  pan = hash.key?('PAN') ? hash['PAN'] : SKIP
  payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
  payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
  processed_on = hash.key?('ProcessedOn') ? hash['ProcessedOn'] : SKIP
  requested_by = hash.key?('RequestedBy') ? hash['RequestedBy'] : SKIP
  requested_operation =
    hash.key?('RequestedOperation') ? hash['RequestedOperation'] : SKIP
  request_reference =
    hash.key?('RequestReference') ? hash['RequestReference'] : SKIP
  request_type = hash.key?('RequestType') ? hash['RequestType'] : SKIP
  status = hash.key?('Status') ? hash['Status'] : SKIP
   = hash.key?('SubmittedOn') ? hash['SubmittedOn'] : SKIP
  sub_request_reference =
    hash.key?('SubRequestReference') ? hash['SubRequestReference'] : SKIP
  user_display_name =
    hash.key?('UserDisplayName') ? hash['UserDisplayName'] : SKIP

  # Create object from extracted values.
  AuditResponseAuditsItems.new(,
                               ,
                               additional_information1,
                               additional_information2,
                               additional_information3,
                               additional_information4,
                               additional_information5,
                               additional_information6,
                               additional_information7,
                               additional_information8,
                               additional_information9,
                               card_group_id,
                               card_group_name,
                               card_id,
                               col_co_code,
                               col_co_id,
                               error_code,
                               error_string,
                               global_request_id,
                               pan,
                               payer_id,
                               payer_number,
                               processed_on,
                               requested_by,
                               requested_operation,
                               request_reference,
                               request_type,
                               status,
                               ,
                               sub_request_reference,
                               user_display_name)
end

.namesObject

A mapping from model property names to API property names.



191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 191

def self.names
  @_hash = {} if @_hash.nil?
  @_hash['account_id'] = 'AccountId'
  @_hash['account_number'] = 'AccountNumber'
  @_hash['additional_information1'] = 'AdditionalInformation1'
  @_hash['additional_information2'] = 'AdditionalInformation2'
  @_hash['additional_information3'] = 'AdditionalInformation3'
  @_hash['additional_information4'] = 'AdditionalInformation4'
  @_hash['additional_information5'] = 'AdditionalInformation5'
  @_hash['additional_information6'] = 'AdditionalInformation6'
  @_hash['additional_information7'] = 'AdditionalInformation7'
  @_hash['additional_information8'] = 'AdditionalInformation8'
  @_hash['additional_information9'] = 'AdditionalInformation9'
  @_hash['card_group_id'] = 'CardGroupId'
  @_hash['card_group_name'] = 'CardGroupName'
  @_hash['card_id'] = 'CardId'
  @_hash['col_co_code'] = 'ColCoCode'
  @_hash['col_co_id'] = 'ColCoId'
  @_hash['error_code'] = 'ErrorCode'
  @_hash['error_string'] = 'ErrorString'
  @_hash['global_request_id'] = 'GlobalRequestID'
  @_hash['pan'] = 'PAN'
  @_hash['payer_id'] = 'PayerId'
  @_hash['payer_number'] = 'PayerNumber'
  @_hash['processed_on'] = 'ProcessedOn'
  @_hash['requested_by'] = 'RequestedBy'
  @_hash['requested_operation'] = 'RequestedOperation'
  @_hash['request_reference'] = 'RequestReference'
  @_hash['request_type'] = 'RequestType'
  @_hash['status'] = 'Status'
  @_hash['submitted_on'] = 'SubmittedOn'
  @_hash['sub_request_reference'] = 'SubRequestReference'
  @_hash['user_display_name'] = 'UserDisplayName'
  @_hash
end

.nullablesObject

An array for nullable fields



265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 265

def self.nullables
  %w[
    account_id
    account_number
    additional_information1
    additional_information2
    additional_information3
    additional_information4
    additional_information5
    additional_information6
    additional_information7
    additional_information8
    additional_information9
    card_group_id
    card_group_name
    card_id
    col_co_code
    col_co_id
    error_string
    global_request_id
    pan
    payer_id
    payer_number
    processed_on
    requested_by
    requested_operation
    request_reference
    request_type
    status
    submitted_on
    sub_request_reference
    user_display_name
  ]
end

.optionalsObject

An array for optional fields



228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
# File 'lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb', line 228

def self.optionals
  %w[
    account_id
    account_number
    additional_information1
    additional_information2
    additional_information3
    additional_information4
    additional_information5
    additional_information6
    additional_information7
    additional_information8
    additional_information9
    card_group_id
    card_group_name
    card_id
    col_co_code
    col_co_id
    error_code
    error_string
    global_request_id
    pan
    payer_id
    payer_number
    processed_on
    requested_by
    requested_operation
    request_reference
    request_type
    status
    submitted_on
    sub_request_reference
    user_display_name
  ]
end