Class: Worldline::Connect::SDK::V1::Domain::CreateDisputeRequest
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::CreateDisputeRequest
- Defined in:
- lib/worldline/connect/sdk/v1/domain/create_dispute_request.rb
Instance Attribute Summary collapse
-
#amount_of_money ⇒ Worldline::Connect::SDK::V1::Domain::AmountOfMoney
The current value of amount_of_money.
-
#contact_person ⇒ String
The current value of contact_person.
-
#email_address ⇒ String
The current value of email_address.
-
#reply_to ⇒ String
The current value of reply_to.
-
#request_message ⇒ String
The current value of request_message.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#amount_of_money ⇒ Worldline::Connect::SDK::V1::Domain::AmountOfMoney
Returns the current value of amount_of_money.
18 19 20 |
# File 'lib/worldline/connect/sdk/v1/domain/create_dispute_request.rb', line 18 def amount_of_money @amount_of_money end |
#contact_person ⇒ String
Returns the current value of contact_person.
18 19 20 |
# File 'lib/worldline/connect/sdk/v1/domain/create_dispute_request.rb', line 18 def contact_person @contact_person end |
#email_address ⇒ String
Returns the current value of email_address.
18 19 20 |
# File 'lib/worldline/connect/sdk/v1/domain/create_dispute_request.rb', line 18 def email_address @email_address end |
#reply_to ⇒ String
Returns the current value of reply_to.
18 19 20 |
# File 'lib/worldline/connect/sdk/v1/domain/create_dispute_request.rb', line 18 def reply_to @reply_to end |
#request_message ⇒ String
Returns the current value of request_message.
18 19 20 |
# File 'lib/worldline/connect/sdk/v1/domain/create_dispute_request.rb', line 18 def @request_message end |
Instance Method Details
#from_hash(hash) ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/worldline/connect/sdk/v1/domain/create_dispute_request.rb', line 41 def from_hash(hash) super if hash.has_key? 'amountOfMoney' raise TypeError, "value '%s' is not a Hash" % [hash['amountOfMoney']] unless hash['amountOfMoney'].is_a? Hash @amount_of_money = Worldline::Connect::SDK::V1::Domain::AmountOfMoney.new_from_hash(hash['amountOfMoney']) end if hash.has_key? 'contactPerson' @contact_person = hash['contactPerson'] end if hash.has_key? 'emailAddress' @email_address = hash['emailAddress'] end if hash.has_key? 'replyTo' @reply_to = hash['replyTo'] end if hash.has_key? 'requestMessage' @request_message = hash['requestMessage'] end end |
#to_h ⇒ Hash
31 32 33 34 35 36 37 38 39 |
# File 'lib/worldline/connect/sdk/v1/domain/create_dispute_request.rb', line 31 def to_h hash = super hash['amountOfMoney'] = @amount_of_money.to_h unless @amount_of_money.nil? hash['contactPerson'] = @contact_person unless @contact_person.nil? hash['emailAddress'] = @email_address unless @email_address.nil? hash['replyTo'] = @reply_to unless @reply_to.nil? hash['requestMessage'] = @request_message unless @request_message.nil? hash end |