Class: CashPayment
Instance Attribute Summary collapse
Attributes inherited from Payment
#customer, #user_agreement
Instance Method Summary
collapse
Methods inherited from Payment
create, payment_method, #payment_phone_number, #purchase, #reduce_amount_by, #refund, #refundable?
Constructor Details
#initialize(params = {}) ⇒ CashPayment
Returns a new instance of CashPayment.
5
6
7
|
# File 'app/models/payments/cash_payment.rb', line 5
def initialize(params = {})
self.customer = params[:customer]
end
|
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
3
4
5
|
# File 'app/models/payments/cash_payment.rb', line 3
def amount
@amount
end
|
Instance Method Details
#per_item_processing_charge ⇒ Object
17
18
19
|
# File 'app/models/payments/cash_payment.rb', line 17
def per_item_processing_charge
lambda { |item| 0 }
end
|
#requires_authorization? ⇒ Boolean
9
10
11
|
# File 'app/models/payments/cash_payment.rb', line 9
def requires_authorization?
false
end
|
#requires_settlement? ⇒ Boolean
13
14
15
|
# File 'app/models/payments/cash_payment.rb', line 13
def requires_settlement?
false
end
|
#transaction_id ⇒ Object
21
22
23
|
# File 'app/models/payments/cash_payment.rb', line 21
def transaction_id
nil
end
|