Class: Worldline::Acquiring::SDK::V1::Domain::ApiPaymentErrorResponse
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Acquiring::SDK::V1::Domain::ApiPaymentErrorResponse
- Defined in:
- lib/worldline/acquiring/sdk/v1/domain/api_payment_error_response.rb
Instance Attribute Summary collapse
-
#detail ⇒ String
The current value of detail.
-
#instance ⇒ String
The current value of instance.
-
#request_id ⇒ String
The current value of request_id.
-
#status ⇒ Integer
The current value of status.
-
#title ⇒ String
The current value of title.
-
#type ⇒ String
The current value of type.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#detail ⇒ String
Returns the current value of detail.
17 18 19 |
# File 'lib/worldline/acquiring/sdk/v1/domain/api_payment_error_response.rb', line 17 def detail @detail end |
#instance ⇒ String
Returns the current value of instance.
17 18 19 |
# File 'lib/worldline/acquiring/sdk/v1/domain/api_payment_error_response.rb', line 17 def instance @instance end |
#request_id ⇒ String
Returns the current value of request_id.
17 18 19 |
# File 'lib/worldline/acquiring/sdk/v1/domain/api_payment_error_response.rb', line 17 def request_id @request_id end |
#status ⇒ Integer
Returns the current value of status.
17 18 19 |
# File 'lib/worldline/acquiring/sdk/v1/domain/api_payment_error_response.rb', line 17 def status @status end |
#title ⇒ String
Returns the current value of title.
17 18 19 |
# File 'lib/worldline/acquiring/sdk/v1/domain/api_payment_error_response.rb', line 17 def title @title end |
#type ⇒ String
Returns the current value of type.
17 18 19 |
# File 'lib/worldline/acquiring/sdk/v1/domain/api_payment_error_response.rb', line 17 def type @type end |
Instance Method Details
#from_hash(hash) ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/worldline/acquiring/sdk/v1/domain/api_payment_error_response.rb', line 43 def from_hash(hash) super if hash.has_key? 'detail' @detail = hash['detail'] end if hash.has_key? 'instance' @instance = hash['instance'] end if hash.has_key? 'requestId' @request_id = hash['requestId'] end if hash.has_key? 'status' @status = hash['status'] end if hash.has_key? 'title' @title = hash['title'] end if hash.has_key? 'type' @type = hash['type'] end end |
#to_h ⇒ Hash
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/worldline/acquiring/sdk/v1/domain/api_payment_error_response.rb', line 32 def to_h hash = super hash['detail'] = @detail unless @detail.nil? hash['instance'] = @instance unless @instance.nil? hash['requestId'] = @request_id unless @request_id.nil? hash['status'] = @status unless @status.nil? hash['title'] = @title unless @title.nil? hash['type'] = @type unless @type.nil? hash end |