Class: OnlinePayments::SDK::Domain::PayoutStatusOutput
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::PayoutStatusOutput
- Defined in:
- lib/onlinepayments/sdk/domain/payout_status_output.rb
Instance Attribute Summary collapse
-
#is_cancellable ⇒ true/false
The current value of is_cancellable.
-
#status_category ⇒ String
The current value of status_category.
-
#status_code ⇒ Integer
The current value of status_code.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#is_cancellable ⇒ true/false
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/payout_status_output.rb', line 12 def is_cancellable @is_cancellable end |
#status_category ⇒ String
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/payout_status_output.rb', line 12 def status_category @status_category end |
#status_code ⇒ Integer
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
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/onlinepayments/sdk/domain/payout_status_output.rb', line 29 def from_hash(hash) super if hash.has_key? 'isCancellable' @is_cancellable = hash['isCancellable'] end if hash.has_key? 'statusCategory' @status_category = hash['statusCategory'] end if hash.has_key? 'statusCode' @status_code = hash['statusCode'] end end |
#to_h ⇒ Hash
21 22 23 24 25 26 27 |
# File 'lib/onlinepayments/sdk/domain/payout_status_output.rb', line 21 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 |