Class: MonoMerchant::Invoice::Cancel
- Inherits:
-
ApiRequest
- Object
- ApiRequest
- MonoMerchant::Invoice::Cancel
- Defined in:
- lib/mono-merchant/invoice/cancel.rb
Overview
Cancel successful payment
Constant Summary
Constants inherited from ApiRequest
ApiRequest::API_URL, ApiRequest::DEFAULT_CURRENCY
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#ext_ref ⇒ Object
readonly
Returns the value of attribute ext_ref.
-
#invoice_id ⇒ Object
readonly
Returns the value of attribute invoice_id.
-
#items ⇒ Object
readonly
Returns the value of attribute items.
Attributes inherited from ApiRequest
Instance Method Summary collapse
-
#initialize(invoice_id, amount, ext_ref: nil, items: []) ⇒ Cancel
constructor
A new instance of Cancel.
Methods inherited from ApiRequest
Constructor Details
#initialize(invoice_id, amount, ext_ref: nil, items: []) ⇒ Cancel
Returns a new instance of Cancel.
9 10 11 12 |
# File 'lib/mono-merchant/invoice/cancel.rb', line 9 def initialize(invoice_id, amount, ext_ref: nil, items: []) @invoice_id, @amount, @items, @ext_ref = invoice_id, amount, items, ext_ref super() end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class MonoMerchant::ApiRequest
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
7 8 9 |
# File 'lib/mono-merchant/invoice/cancel.rb', line 7 def amount @amount end |
#ext_ref ⇒ Object (readonly)
Returns the value of attribute ext_ref.
7 8 9 |
# File 'lib/mono-merchant/invoice/cancel.rb', line 7 def ext_ref @ext_ref end |
#invoice_id ⇒ Object (readonly)
Returns the value of attribute invoice_id.
7 8 9 |
# File 'lib/mono-merchant/invoice/cancel.rb', line 7 def invoice_id @invoice_id end |
#items ⇒ Object (readonly)
Returns the value of attribute items.
7 8 9 |
# File 'lib/mono-merchant/invoice/cancel.rb', line 7 def items @items end |