Class: PushPay::AnticipatedPayment
- Defined in:
- lib/pushpay/anticipated_payment.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#create(params, merchant_key: nil) ⇒ Object
Create a new anticipated payment.
-
#list(merchant_key: nil, **params) ⇒ Object
List anticipated payments for a merchant.
Methods inherited from Base
Constructor Details
This class inherits a constructor from PushPay::Base
Instance Method Details
#create(params, merchant_key: nil) ⇒ Object
Create a new anticipated payment
6 7 8 |
# File 'lib/pushpay/anticipated_payment.rb', line 6 def create(params, merchant_key: nil) client.post("#{merchant_path(merchant_key)}/anticipatedpayments", params) end |
#list(merchant_key: nil, **params) ⇒ Object
List anticipated payments for a merchant
11 12 13 |
# File 'lib/pushpay/anticipated_payment.rb', line 11 def list(merchant_key: nil, **params) client.get("#{merchant_path(merchant_key)}/anticipatedpayments", params) end |