Class: OnlinePayments::SDK::Domain::SubmitBatchResponse
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::SubmitBatchResponse
- Defined in:
- lib/onlinepayments/sdk/domain/submit_batch_response.rb
Instance Attribute Summary collapse
-
#merchant_batch_reference ⇒ String
The current value of merchant_batch_reference.
-
#total_count ⇒ Integer
The current value of total_count.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#merchant_batch_reference ⇒ String
Returns the current value of merchant_batch_reference.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/submit_batch_response.rb', line 11 def merchant_batch_reference @merchant_batch_reference end |
#total_count ⇒ Integer
Returns the current value of total_count.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/submit_batch_response.rb', line 11 def total_count @total_count end |
Instance Method Details
#from_hash(hash) ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/onlinepayments/sdk/domain/submit_batch_response.rb', line 25 def from_hash(hash) super if hash.has_key? 'merchantBatchReference' @merchant_batch_reference = hash['merchantBatchReference'] end if hash.has_key? 'totalCount' @total_count = hash['totalCount'] end end |
#to_h ⇒ Hash
18 19 20 21 22 23 |
# File 'lib/onlinepayments/sdk/domain/submit_batch_response.rb', line 18 def to_h hash = super hash['merchantBatchReference'] = @merchant_batch_reference unless @merchant_batch_reference.nil? hash['totalCount'] = @total_count unless @total_count.nil? hash end |