Class: Mollie::Payment::Capture
- Defined in:
- lib/mollie/payment/capture.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#_links ⇒ Object
(also: #links)
Returns the value of attribute _links.
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#payment_id ⇒ Object
Returns the value of attribute payment_id.
-
#settlement_amount ⇒ Object
Returns the value of attribute settlement_amount.
-
#settlement_id ⇒ Object
Returns the value of attribute settlement_id.
-
#shipment_id ⇒ Object
Returns the value of attribute shipment_id.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
all, #assign_attributes, cancel, create, #delete, delete, get, id_param, #initialize, parent_id, request, resource_name, update, #update
Constructor Details
This class inherits a constructor from Mollie::Base
Instance Attribute Details
#_links ⇒ Object Also known as: links
Returns the value of attribute _links.
4 5 6 |
# File 'lib/mollie/payment/capture.rb', line 4 def _links @_links end |
#amount ⇒ Object
Returns the value of attribute amount.
4 5 6 |
# File 'lib/mollie/payment/capture.rb', line 4 def amount @amount end |
#created_at ⇒ Object
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/mollie/payment/capture.rb', line 4 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/mollie/payment/capture.rb', line 4 def id @id end |
#mode ⇒ Object
Returns the value of attribute mode.
4 5 6 |
# File 'lib/mollie/payment/capture.rb', line 4 def mode @mode end |
#payment_id ⇒ Object
Returns the value of attribute payment_id.
4 5 6 |
# File 'lib/mollie/payment/capture.rb', line 4 def payment_id @payment_id end |
#settlement_amount ⇒ Object
Returns the value of attribute settlement_amount.
4 5 6 |
# File 'lib/mollie/payment/capture.rb', line 4 def settlement_amount @settlement_amount end |
#settlement_id ⇒ Object
Returns the value of attribute settlement_id.
4 5 6 |
# File 'lib/mollie/payment/capture.rb', line 4 def settlement_id @settlement_id end |
#shipment_id ⇒ Object
Returns the value of attribute shipment_id.
4 5 6 |
# File 'lib/mollie/payment/capture.rb', line 4 def shipment_id @shipment_id end |
Instance Method Details
#payment(options = {}) ⇒ Object
28 29 30 |
# File 'lib/mollie/payment/capture.rb', line 28 def payment( = {}) Payment.get(payment_id, ) end |
#settlement(options = {}) ⇒ Object
38 39 40 41 |
# File 'lib/mollie/payment/capture.rb', line 38 def settlement( = {}) return if settlement_id.nil? Settlement.get(settlement_id, ) end |
#shipment(options = {}) ⇒ Object
32 33 34 35 36 |
# File 'lib/mollie/payment/capture.rb', line 32 def shipment( = {}) resource_url = Util.extract_url(links, 'shipment') response = Client.instance.perform_http_call('GET', resource_url, nil, {}, ) Order::Shipment.new(response) end |