Class: OnlinePayments::SDK::Domain::PayoutStatusOutput

Inherits:
OnlinePayments::SDK::DataObject show all
Defined in:
lib/onlinepayments/sdk/domain/payout_status_output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from OnlinePayments::SDK::DataObject

new_from_hash

Instance Attribute Details

#is_cancellabletrue/false

Returns the current value of is_cancellable.

Returns:

  • (true/false)

    the current value of is_cancellable



12
13
14
# File 'lib/onlinepayments/sdk/domain/payout_status_output.rb', line 12

def is_cancellable
  @is_cancellable
end

#status_categoryString

Returns the current value of status_category.

Returns:

  • (String)

    the current value of status_category



12
13
14
# File 'lib/onlinepayments/sdk/domain/payout_status_output.rb', line 12

def status_category
  @status_category
end

#status_codeInteger

Returns the current value of status_code.

Returns:

  • (Integer)

    the current value of status_code



12
13
14
# File 'lib/onlinepayments/sdk/domain/payout_status_output.rb', line 12

def status_code
  @status_code
end

Instance Method Details

#from_hash(hash) ⇒ Object



26
27
28
29
30
31
# File 'lib/onlinepayments/sdk/domain/payout_status_output.rb', line 26

def from_hash(hash)
  super
  @is_cancellable = hash['isCancellable'] if hash.key? 'isCancellable'
  @status_category = hash['statusCategory'] if hash.key? 'statusCategory'
  @status_code = hash['statusCode'] if hash.key? 'statusCode'
end

#to_hHash

Returns:

  • (Hash)


18
19
20
21
22
23
24
# File 'lib/onlinepayments/sdk/domain/payout_status_output.rb', line 18

def to_h
  hash = super
  hash['isCancellable'] = @is_cancellable unless @is_cancellable.nil?
  hash['statusCategory'] = @status_category unless @status_category.nil?
  hash['statusCode'] = @status_code unless @status_code.nil?
  hash
end