Class: Worldline::Connect::SDK::V1::Domain::PaymentReferences
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::PaymentReferences
- Defined in:
- lib/worldline/connect/sdk/v1/domain/payment_references.rb
Instance Attribute Summary collapse
-
#merchant_order_id ⇒ Integer
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_merchant_id ⇒ String
The current value of provider_merchant_id.
-
#provider_reference ⇒ String
The current value of provider_reference.
-
#reference_orig_payment ⇒ String
The current value of reference_orig_payment.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#merchant_order_id ⇒ Integer
Returns the current value of merchant_order_id.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_references.rb', line 19 def merchant_order_id @merchant_order_id end |
#merchant_reference ⇒ String
Returns the current value of merchant_reference.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_references.rb', line 19 def merchant_reference @merchant_reference end |
#payment_reference ⇒ String
Returns the current value of payment_reference.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_references.rb', line 19 def payment_reference @payment_reference end |
#provider_id ⇒ String
Returns the current value of provider_id.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_references.rb', line 19 def provider_id @provider_id end |
#provider_merchant_id ⇒ String
Returns the current value of provider_merchant_id.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_references.rb', line 19 def provider_merchant_id @provider_merchant_id end |
#provider_reference ⇒ String
Returns the current value of provider_reference.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_references.rb', line 19 def provider_reference @provider_reference end |
#reference_orig_payment ⇒ String
Returns the current value of reference_orig_payment.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_references.rb', line 19 def reference_orig_payment @reference_orig_payment end |
Instance Method Details
#from_hash(hash) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_references.rb', line 48 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? 'providerMerchantId' @provider_merchant_id = hash['providerMerchantId'] end if hash.has_key? 'providerReference' @provider_reference = hash['providerReference'] end if hash.has_key? 'referenceOrigPayment' @reference_orig_payment = hash['referenceOrigPayment'] end end |
#to_h ⇒ Hash
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_references.rb', line 36 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['providerMerchantId'] = @provider_merchant_id unless @provider_merchant_id.nil? hash['providerReference'] = @provider_reference unless @provider_reference.nil? hash['referenceOrigPayment'] = @reference_orig_payment unless @reference_orig_payment.nil? hash end |