Class: Worldline::Connect::SDK::V1::Domain::DisputeReference
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::DisputeReference
- Defined in:
- lib/worldline/connect/sdk/v1/domain/dispute_reference.rb
Instance Attribute Summary collapse
-
#merchant_order_id ⇒ String
The current value of merchant_order_id.
-
#merchant_reference ⇒ String
The current value of merchant_reference.
-
#payment_reference ⇒ String
The current value of payment_reference.
-
#provider_id ⇒ String
The current value of provider_id.
-
#provider_reference ⇒ String
The current value of provider_reference.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#merchant_order_id ⇒ String
Returns the current value of merchant_order_id.
17 18 19 |
# File 'lib/worldline/connect/sdk/v1/domain/dispute_reference.rb', line 17 def merchant_order_id @merchant_order_id end |
#merchant_reference ⇒ String
Returns the current value of merchant_reference.
17 18 19 |
# File 'lib/worldline/connect/sdk/v1/domain/dispute_reference.rb', line 17 def merchant_reference @merchant_reference end |
#payment_reference ⇒ String
Returns the current value of payment_reference.
17 18 19 |
# File 'lib/worldline/connect/sdk/v1/domain/dispute_reference.rb', line 17 def payment_reference @payment_reference end |
#provider_id ⇒ String
Returns the current value of provider_id.
17 18 19 |
# File 'lib/worldline/connect/sdk/v1/domain/dispute_reference.rb', line 17 def provider_id @provider_id end |
#provider_reference ⇒ String
Returns the current value of provider_reference.
17 18 19 |
# File 'lib/worldline/connect/sdk/v1/domain/dispute_reference.rb', line 17 def provider_reference @provider_reference end |
Instance Method Details
#from_hash(hash) ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/worldline/connect/sdk/v1/domain/dispute_reference.rb', line 40 def from_hash(hash) super if hash.has_key? 'merchantOrderId' @merchant_order_id = hash['merchantOrderId'] end if hash.has_key? 'merchantReference' @merchant_reference = hash['merchantReference'] end if hash.has_key? 'paymentReference' @payment_reference = hash['paymentReference'] end if hash.has_key? 'providerId' @provider_id = hash['providerId'] end if hash.has_key? 'providerReference' @provider_reference = hash['providerReference'] end end |
#to_h ⇒ Hash
30 31 32 33 34 35 36 37 38 |
# File 'lib/worldline/connect/sdk/v1/domain/dispute_reference.rb', line 30 def to_h hash = super hash['merchantOrderId'] = @merchant_order_id unless @merchant_order_id.nil? hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil? hash['paymentReference'] = @payment_reference unless @payment_reference.nil? hash['providerId'] = @provider_id unless @provider_id.nil? hash['providerReference'] = @provider_reference unless @provider_reference.nil? hash end |