Class: KillBillClient::Model::Payment
- Inherits:
-
PaymentAttributes
- Object
- Resource
- PaymentAttributes
- KillBillClient::Model::Payment
- Includes:
- CustomFieldHelper
- Defined in:
- lib/killbill_client/models/payment.rb
Constant Summary collapse
- KILLBILL_API_PAYMENTS_PREFIX =
"#{KILLBILL_API_PREFIX}/payments"
Class Method Summary collapse
- .find_by_external_key(external_key, with_plugin_info = false, with_attempts = false, options = {}) ⇒ Object
- .find_by_id(payment_id, with_plugin_info = false, with_attempts = false, options = {}) ⇒ Object
- .find_by_transaction_id(transaction_id, with_plugin_info = false, with_attempts = false, options = {}) ⇒ Object
- .find_in_batches(offset = 0, limit = 100, options = {}) ⇒ Object
- .find_in_batches_by_search_key(search_key, offset = 0, limit = 100, options = {}) ⇒ Object
Methods included from CustomFieldHelper
Class Method Details
.find_by_external_key(external_key, with_plugin_info = false, with_attempts = false, options = {}) ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/killbill_client/models/payment.rb', line 25 def find_by_external_key(external_key, with_plugin_info = false, with_attempts = false, = {}) get "#{KILLBILL_API_PAYMENTS_PREFIX}", { :externalKey => external_key, :withAttempts => with_attempts, :withPluginInfo => with_plugin_info }, end |
.find_by_id(payment_id, with_plugin_info = false, with_attempts = false, options = {}) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/killbill_client/models/payment.rb', line 16 def find_by_id(payment_id, with_plugin_info = false, with_attempts = false, = {}) get "#{KILLBILL_API_PAYMENTS_PREFIX}/#{payment_id}", { :withAttempts => with_attempts, :withPluginInfo => with_plugin_info }, end |
.find_by_transaction_id(transaction_id, with_plugin_info = false, with_attempts = false, options = {}) ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/killbill_client/models/payment.rb', line 35 def find_by_transaction_id(transaction_id, with_plugin_info = false, with_attempts = false, = {}) get "#{Transaction::KILLBILL_API_TRANSACTIONS_PREFIX}/#{transaction_id}", { :withAttempts => with_attempts, :withPluginInfo => with_plugin_info }, end |
.find_in_batches(offset = 0, limit = 100, options = {}) ⇒ Object
44 45 46 47 48 49 50 51 |
# File 'lib/killbill_client/models/payment.rb', line 44 def find_in_batches(offset = 0, limit = 100, = {}) get "#{KILLBILL_API_PAYMENTS_PREFIX}/#{Resource::KILLBILL_API_PAGINATION_PREFIX}", { :offset => offset, :limit => limit }, end |
.find_in_batches_by_search_key(search_key, offset = 0, limit = 100, options = {}) ⇒ Object
53 54 55 56 57 58 59 60 |
# File 'lib/killbill_client/models/payment.rb', line 53 def find_in_batches_by_search_key(search_key, offset = 0, limit = 100, = {}) get "#{KILLBILL_API_PAYMENTS_PREFIX}/search/#{search_key}", { :offset => offset, :limit => limit }, end |