Class: Worldline::Connect::SDK::V1::Domain::DisputeStatusOutput
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::DisputeStatusOutput
- Defined in:
- lib/worldline/connect/sdk/v1/domain/dispute_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.
-
#status_code_change_date_time ⇒ String
The current value of status_code_change_date_time.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#is_cancellable ⇒ true/false
Returns the current value of is_cancellable.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/dispute_status_output.rb', line 16 def is_cancellable @is_cancellable end |
#status_category ⇒ String
Returns the current value of status_category.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/dispute_status_output.rb', line 16 def status_category @status_category end |
#status_code ⇒ Integer
Returns the current value of status_code.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/dispute_status_output.rb', line 16 def status_code @status_code end |
#status_code_change_date_time ⇒ String
Returns the current value of status_code_change_date_time.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/dispute_status_output.rb', line 16 def status_code_change_date_time @status_code_change_date_time end |
Instance Method Details
#from_hash(hash) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/worldline/connect/sdk/v1/domain/dispute_status_output.rb', line 36 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 if hash.has_key? 'statusCodeChangeDateTime' @status_code_change_date_time = hash['statusCodeChangeDateTime'] end end |
#to_h ⇒ Hash
27 28 29 30 31 32 33 34 |
# File 'lib/worldline/connect/sdk/v1/domain/dispute_status_output.rb', line 27 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['statusCodeChangeDateTime'] = @status_code_change_date_time unless @status_code_change_date_time.nil? hash end |