Class: TreezorClient::CardDigitalizationDetailsFromGPS

Inherits:
Object
  • Object
show all
Defined in:
lib/treezor_client/models/card_digitalization_details_from_gps.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ CardDigitalizationDetailsFromGPS

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash


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
226
227
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
263
264
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
299
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
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 198

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}

  if attributes.has_key?(:'Creator')
    self.creator = attributes[:'Creator']
  end

  if attributes.has_key?(:'Creator_PAN_Ref')
    self.creator_pan_ref = attributes[:'Creator_PAN_Ref']
  end

  if attributes.has_key?(:'Creator_Token_Ref')
    self.creator_token_ref = attributes[:'Creator_Token_Ref']
  end

  if attributes.has_key?(:'PANT')
    self.pant = attributes[:'PANT']
  end

  if attributes.has_key?(:'Payment_Token')
    self.payment_token = attributes[:'Payment_Token']
  end

  if attributes.has_key?(:'Payment_Token_ExpDate')
    self.payment_token_exp_date = attributes[:'Payment_Token_ExpDate']
  end

  if attributes.has_key?(:'Payment_Token_ID')
    self.payment_token_id = attributes[:'Payment_Token_ID']
  end

  if attributes.has_key?(:'Payment_Token_Type')
    self.payment_token_type = attributes[:'Payment_Token_Type']
  end

  if attributes.has_key?(:'GPS_Status')
    self.gps_status = attributes[:'GPS_Status']
  end

  if attributes.has_key?(:'Tokenised_Datetime')
    self.tokenised_datetime = attributes[:'Tokenised_Datetime']
  end

  if attributes.has_key?(:'Tokenised_Status')
    self.tokenised_status = attributes[:'Tokenised_Status']
  end

  if attributes.has_key?(:'Txn_Status')
    self.txn_status = attributes[:'Txn_Status']
  end

  if attributes.has_key?(:'Txn_Status_Actor')
    self.txn_status_actor = attributes[:'Txn_Status_Actor']
  end

  if attributes.has_key?(:'Txn_Status_Change_Datetime')
    self.txn_status_change_datetime = attributes[:'Txn_Status_Change_Datetime']
  end

  if attributes.has_key?(:'Accepted_Terms_Version')
    self.accepted_terms_version = attributes[:'Accepted_Terms_Version']
  end

  if attributes.has_key?(:'Auth_Datetime')
    self.auth_datetime = attributes[:'Auth_Datetime']
  end

  if attributes.has_key?(:'Auth_Decision')
    self.auth_decision = attributes[:'Auth_Decision']
  end

  if attributes.has_key?(:'Auth_RSPSRC')
    self.auth_rspsrc = attributes[:'Auth_RSPSRC']
  end

  if attributes.has_key?(:'Auth_Status')
    self.auth_status = attributes[:'Auth_Status']
  end

  if attributes.has_key?(:'Digitisation_Ref')
    self.digitisation_ref = attributes[:'Digitisation_Ref']
  end

  if attributes.has_key?(:'Activation_Code')
    self.activation_code = attributes[:'Activation_Code']
  end

  if attributes.has_key?(:'Activation_Code_Expdate')
    self.activation_code_expdate = attributes[:'Activation_Code_Expdate']
  end

  if attributes.has_key?(:'Activation_Method')
    self.activation_method = attributes[:'Activation_Method']
  end

  if attributes.has_key?(:'Device_ID')
    self.device_id = attributes[:'Device_ID']
  end

  if attributes.has_key?(:'Device_IP')
    self.device_ip = attributes[:'Device_IP']
  end

  if attributes.has_key?(:'Device_Lang2')
    self.device_lang2 = attributes[:'Device_Lang2']
  end

  if attributes.has_key?(:'Device_Latitude')
    self.device_latitude = attributes[:'Device_Latitude']
  end

  if attributes.has_key?(:'Device_Longitude')
    self.device_longitude = attributes[:'Device_Longitude']
  end

  if attributes.has_key?(:'Device_Name')
    self.device_name = attributes[:'Device_Name']
  end

  if attributes.has_key?(:'Device_Tel_Num')
    self.device_tel_num = attributes[:'Device_Tel_Num']
  end

  if attributes.has_key?(:'Device_Type')
    self.device_type = attributes[:'Device_Type']
  end

  if attributes.has_key?(:'FirstName')
    self.first_name = attributes[:'FirstName']
  end

  if attributes.has_key?(:'LastName')
    self.last_name = attributes[:'LastName']
  end

end

Instance Attribute Details

#accepted_terms_versionObject

Version of the terms and conditions which were accepted by the cardholder.(As received from network)


61
62
63
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 61

def accepted_terms_version
  @accepted_terms_version
end

#activation_codeObject

Activation code to be sent directly to cardholder to activate this Payment Token


79
80
81
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 79

def activation_code
  @activation_code
end

#activation_code_expdateObject

Date/time yyyy-mm-dd hh:mm:ss when activation code expires, in GMT (UTC)


82
83
84
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 82

def activation_code_expdate
  @activation_code_expdate
end

#activation_methodObject

Which Activation Method wa used 0 - None 1 - SMS to mobile phone 2 - Email 3 - Cardholder to call automated call centre 4 - Cardholder to call human call centre 5 - Website 6 - Mobile application 7 - Voice phone call


85
86
87
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 85

def activation_method
  @activation_method
end

#auth_datetimeObject

date/time yyyy-mm-dd hh:mm:ss when token authorisation (to digitise/personalise) request last responded to


64
65
66
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 64

def auth_datetime
  @auth_datetime
end

#auth_decisionObject

Final tokenisation decision - Values U=unknown (not tested) 0=Approve digitisation request A=Approve digitisation request (with additional authentication)


67
68
69
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 67

def auth_decision
  @auth_decision
end

#auth_rspsrcObject

who approved tokenisation


70
71
72
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 70

def auth_rspsrc
  @auth_rspsrc
end

#auth_statusObject

Status of the authorisation given to Digitise/personalise this Payment Token note not related to transaction authorisation Values U=unknown (not tested) 0=Approve digitisation request A=Approve digitisation request (with additional authentication) 1=decline digitisation request


73
74
75
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 73

def auth_status
  @auth_status
end

#creatorObject

Creator Name


19
20
21
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 19

def creator
  @creator
end

#creator_pan_refObject

Digitiser's (i.e. who created this payment_token) unique ref to the linkedcard


22
23
24
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 22

def creator_pan_ref
  @creator_pan_ref
end

#creator_token_refObject

See internal documentation


25
26
27
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 25

def creator_token_ref
  @creator_token_ref
end

#device_idObject

unique ID of the secure element in the device


88
89
90
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 88

def device_id
  @device_id
end

#device_ipObject

IP address (full or last part only) of the device at digitisation time


91
92
93
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 91

def device_ip
  @device_ip
end

#device_lang2Object

Device language code as ISO 639-1 (2 letter lowercase) code


94
95
96
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 94

def device_lang2
  @device_lang2
end

#device_latitudeObject

Device Latitude in degrees at time of digitisation request -180 to 180 ve=East, -ve=West (of Greenwich) eg 176.2 => East 176.2 degrees,- 98.5 => West 98.5 degrees


97
98
99
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 97

def device_latitude
  @device_latitude
end

#device_longitudeObject

Longitude as above


100
101
102
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 100

def device_longitude
  @device_longitude
end

#device_nameObject

name cardholder assigned to device in Wallet


103
104
105
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 103

def device_name
  @device_name
end

#device_tel_numObject

Device telephone number (full or last part only)


106
107
108
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 106

def device_tel_num
  @device_tel_num
end

#device_typeObject

Not described


109
110
111
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 109

def device_type
  @device_type
end

#digitisation_refObject

Unique (per payment_token_issuer_id) reference which all digitisation messageswill use, to link them together


76
77
78
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 76

def digitisation_ref
  @digitisation_ref
end

#first_nameObject

Cardholder firstname as provided by Wallet Provider during digitisation. May not be provided, or just initial.


112
113
114
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 112

def first_name
  @first_name
end

#gps_statusObject

This is the GPS set status of the token for transacting


43
44
45
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 43

def gps_status
  @gps_status
end

#last_nameObject

Cardholder last name as provided by Wallet Provider during digitisation. May not be provided, or just initial.


115
116
117
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 115

def last_name
  @last_name
end

#pantObject

PAN for the Card linked to the MDES card


28
29
30
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 28

def pant
  @pant
end

#payment_tokenObject

PaymentToken DPAN for MDES Card


31
32
33
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 31

def payment_token
  @payment_token
end

#payment_token_exp_dateObject

Expiry date of payment token


34
35
36
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 34

def payment_token_exp_date
  @payment_token_exp_date
end

#payment_token_idObject

PaymentToken Id for MDES card


37
38
39
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 37

def payment_token_id
  @payment_token_id
end

#payment_token_typeObject

See Appendix LL


40
41
42
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 40

def payment_token_type
  @payment_token_type
end

#tokenised_datetimeObject

date/time yyyy-mm-dd hh:mm:ss when tokenise


46
47
48
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 46

def tokenised_datetime
  @tokenised_datetime
end

#tokenised_statusObject

Has this Payment Token been digitised/personalised ? U=unknown 0=not-tokenised 1=tokenised


49
50
51
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 49

def tokenised_status
  @tokenised_status
end

#txn_statusObject

Status of token for transacting. After tokenisation, this is not changed by GPS, but is received from token creator who maintains this.


52
53
54
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 52

def txn_status
  @txn_status
end

#txn_status_actorObject

This says who/which-system was the last to change txn_status


55
56
57
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 55

def txn_status_actor
  @txn_status_actor
end

#txn_status_change_datetimeObject

Date/time that txn_status was last changed


58
59
60
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 58

def txn_status_change_datetime
  @txn_status_change_datetime
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.


119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 119

def self.attribute_map
  {
    :'creator' => :'Creator',
    :'creator_pan_ref' => :'Creator_PAN_Ref',
    :'creator_token_ref' => :'Creator_Token_Ref',
    :'pant' => :'PANT',
    :'payment_token' => :'Payment_Token',
    :'payment_token_exp_date' => :'Payment_Token_ExpDate',
    :'payment_token_id' => :'Payment_Token_ID',
    :'payment_token_type' => :'Payment_Token_Type',
    :'gps_status' => :'GPS_Status',
    :'tokenised_datetime' => :'Tokenised_Datetime',
    :'tokenised_status' => :'Tokenised_Status',
    :'txn_status' => :'Txn_Status',
    :'txn_status_actor' => :'Txn_Status_Actor',
    :'txn_status_change_datetime' => :'Txn_Status_Change_Datetime',
    :'accepted_terms_version' => :'Accepted_Terms_Version',
    :'auth_datetime' => :'Auth_Datetime',
    :'auth_decision' => :'Auth_Decision',
    :'auth_rspsrc' => :'Auth_RSPSRC',
    :'auth_status' => :'Auth_Status',
    :'digitisation_ref' => :'Digitisation_Ref',
    :'activation_code' => :'Activation_Code',
    :'activation_code_expdate' => :'Activation_Code_Expdate',
    :'activation_method' => :'Activation_Method',
    :'device_id' => :'Device_ID',
    :'device_ip' => :'Device_IP',
    :'device_lang2' => :'Device_Lang2',
    :'device_latitude' => :'Device_Latitude',
    :'device_longitude' => :'Device_Longitude',
    :'device_name' => :'Device_Name',
    :'device_tel_num' => :'Device_Tel_Num',
    :'device_type' => :'Device_Type',
    :'first_name' => :'FirstName',
    :'last_name' => :'LastName'
  }
end

.swagger_typesObject

Attribute type mapping.


158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 158

def self.swagger_types
  {
    :'creator' => :'String',
    :'creator_pan_ref' => :'String',
    :'creator_token_ref' => :'String',
    :'pant' => :'String',
    :'payment_token' => :'String',
    :'payment_token_exp_date' => :'String',
    :'payment_token_id' => :'String',
    :'payment_token_type' => :'String',
    :'gps_status' => :'String',
    :'tokenised_datetime' => :'String',
    :'tokenised_status' => :'String',
    :'txn_status' => :'String',
    :'txn_status_actor' => :'String',
    :'txn_status_change_datetime' => :'String',
    :'accepted_terms_version' => :'String',
    :'auth_datetime' => :'String',
    :'auth_decision' => :'String',
    :'auth_rspsrc' => :'String',
    :'auth_status' => :'String',
    :'digitisation_ref' => :'String',
    :'activation_code' => :'String',
    :'activation_code_expdate' => :'String',
    :'activation_method' => :'String',
    :'device_id' => :'String',
    :'device_ip' => :'String',
    :'device_lang2' => :'String',
    :'device_latitude' => :'String',
    :'device_longitude' => :'String',
    :'device_name' => :'String',
    :'device_tel_num' => :'String',
    :'device_type' => :'String',
    :'first_name' => :'String',
    :'last_name' => :'String'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared


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
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 353

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      creator == o.creator &&
      creator_pan_ref == o.creator_pan_ref &&
      creator_token_ref == o.creator_token_ref &&
      pant == o.pant &&
      payment_token == o.payment_token &&
      payment_token_exp_date == o.payment_token_exp_date &&
      payment_token_id == o.payment_token_id &&
      payment_token_type == o.payment_token_type &&
      gps_status == o.gps_status &&
      tokenised_datetime == o.tokenised_datetime &&
      tokenised_status == o.tokenised_status &&
      txn_status == o.txn_status &&
      txn_status_actor == o.txn_status_actor &&
      txn_status_change_datetime == o.txn_status_change_datetime &&
      accepted_terms_version == o.accepted_terms_version &&
      auth_datetime == o.auth_datetime &&
      auth_decision == o.auth_decision &&
      auth_rspsrc == o.auth_rspsrc &&
      auth_status == o.auth_status &&
      digitisation_ref == o.digitisation_ref &&
      activation_code == o.activation_code &&
      activation_code_expdate == o.activation_code_expdate &&
      activation_method == o.activation_method &&
      device_id == o.device_id &&
      device_ip == o.device_ip &&
      device_lang2 == o.device_lang2 &&
      device_latitude == o.device_latitude &&
      device_longitude == o.device_longitude &&
      device_name == o.device_name &&
      device_tel_num == o.device_tel_num &&
      device_type == o.device_type &&
      first_name == o.first_name &&
      last_name == o.last_name
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data


427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 427

def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    temp_model = TreezorClient.const_get(type).new
    temp_model.build_from_hash(value)
  end
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash


493
494
495
496
497
498
499
500
501
502
503
504
505
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 493

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map{ |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself


406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 406

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method

393
394
395
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 393

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code


399
400
401
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 399

def hash
  [creator, creator_pan_ref, creator_token_ref, pant, payment_token, payment_token_exp_date, payment_token_id, payment_token_type, gps_status, tokenised_datetime, tokenised_status, txn_status, txn_status_actor, txn_status_change_datetime, accepted_terms_version, auth_datetime, auth_decision, auth_rspsrc, auth_status, digitisation_ref, activation_code, activation_code_expdate, activation_method, device_id, device_ip, device_lang2, device_latitude, device_longitude, device_name, device_tel_num, device_type, first_name, last_name].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons


340
341
342
343
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 340

def list_invalid_properties
  invalid_properties = Array.new
  return invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash


473
474
475
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 473

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash


479
480
481
482
483
484
485
486
487
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 479

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object


467
468
469
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 467

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid


347
348
349
# File 'lib/treezor_client/models/card_digitalization_details_from_gps.rb', line 347

def valid?
  return true
end