Class: Ingenico::Connect::SDK::Domain::Payment::PaymentStatusOutput

Inherits:
Definitions::OrderStatusOutput show all
Defined in:
lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb

Instance Attribute Summary collapse

Attributes inherited from Definitions::OrderStatusOutput

#errors, #is_cancellable, #status_category, #status_code, #status_code_change_date_time

Instance Method Summary collapse

Methods inherited from Ingenico::Connect::SDK::DataObject

new_from_hash

Instance Attribute Details

#is_authorizedtrue/false

Returns the current value of is_authorized.

Returns:

  • (true/false)

    the current value of is_authorized



14
15
16
# File 'lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb', line 14

def is_authorized
  @is_authorized
end

#is_refundabletrue/false

Returns the current value of is_refundable.

Returns:

  • (true/false)

    the current value of is_refundable



14
15
16
# File 'lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb', line 14

def is_refundable
  @is_refundable
end

#three_d_secure_statusString

Returns the current value of three_d_secure_status.

Returns:

  • (String)

    the current value of three_d_secure_status



14
15
16
# File 'lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb', line 14

def three_d_secure_status
  @three_d_secure_status
end

Instance Method Details

#from_hash(hash) ⇒ Object



31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb', line 31

def from_hash(hash)
  super
  if hash.has_key? 'isAuthorized'
    @is_authorized = hash['isAuthorized']
  end
  if hash.has_key? 'isRefundable'
    @is_refundable = hash['isRefundable']
  end
  if hash.has_key? 'threeDSecureStatus'
    @three_d_secure_status = hash['threeDSecureStatus']
  end
end

#to_hHash

Returns:

  • (Hash)


23
24
25
26
27
28
29
# File 'lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb', line 23

def to_h
  hash = super
  hash['isAuthorized'] = @is_authorized unless @is_authorized.nil?
  hash['isRefundable'] = @is_refundable unless @is_refundable.nil?
  hash['threeDSecureStatus'] = @three_d_secure_status unless @three_d_secure_status.nil?
  hash
end