Class: KillBillClient::Model::Payment
- Inherits:
-
PaymentAttributes
- Object
- Resource
- PaymentAttributes
- KillBillClient::Model::Payment
- Defined in:
- lib/killbill_client/models/payment.rb
Constant Summary collapse
- KILLBILL_API_PAYMENTS_PREFIX =
"#{KILLBILL_API_PREFIX}/payments"
Constants inherited from Resource
Resource::KILLBILL_API_PAGINATION_PREFIX, Resource::KILLBILL_API_PREFIX
Instance Attribute Summary
Attributes inherited from Resource
#clazz, #etag, #response, #session_id, #uri
Instance Method Summary collapse
Methods inherited from Resource
#==, #_to_hash, attribute, create_alias, delete, extract_session_id, from_json, from_response, get, has_many, has_one, #hash, head, instantiate_record_from_json, post, put, #refresh, #to_hash, #to_json
Instance Method Details
#create(external_payment = false, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/killbill_client/models/payment.rb', line 12 def create(external_payment = false, user = nil, reason = nil, comment = nil, = {}) # Nothing to return (nil) self.class.post "#{Account::KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/payments", to_json, { :externalPayment => external_payment }, { :user => user, :reason => reason, :comment => comment, }.merge() end |