Class: EwayRapid::CapturePaymentRequest
- Inherits:
-
Object
- Object
- EwayRapid::CapturePaymentRequest
- Defined in:
- lib/eway_rapid/entities/capture_payment_request.rb
Instance Attribute Summary collapse
-
#payment ⇒ Object
Returns the value of attribute payment.
-
#transaction_id ⇒ Object
Returns the value of attribute transaction_id.
Instance Method Summary collapse
Instance Attribute Details
#payment ⇒ Object
Returns the value of attribute payment.
4 5 6 |
# File 'lib/eway_rapid/entities/capture_payment_request.rb', line 4 def payment @payment end |
#transaction_id ⇒ Object
Returns the value of attribute transaction_id.
3 4 5 |
# File 'lib/eway_rapid/entities/capture_payment_request.rb', line 3 def transaction_id @transaction_id end |
Instance Method Details
#to_json(options = {}) ⇒ Object
6 7 8 9 |
# File 'lib/eway_rapid/entities/capture_payment_request.rb', line 6 def to_json(={}) {Constants::REQUEST_TRANSACTION_ID => transaction_id, Constants::PAYMENT => InternalModels::Payment.to_hash(payment)}.to_json end |