Class: KillBillClient::Model::SubscriptionNoEvents

Inherits:
SubscriptionAttributesNoEvents show all
Defined in:
lib/killbill_client/models/subscription_no_events.rb

Constant Summary collapse

KILLBILL_API_SUBSCRIPTIONS_PREFIX =
"#{KILLBILL_API_PREFIX}/subscriptions"
KILLBILL_API_BUNDLE_PREFIX =
"#{KILLBILL_API_PREFIX}/bundles"

Constants inherited from Resource

Resource::KILLBILL_API_PREFIX

Instance Attribute Summary

Attributes inherited from Resource

#etag, #response, #session_id, #uri

Class Method Summary collapse

Methods inherited from Resource

attribute, create_alias, delete, extract_session_id, from_json, from_response, get, has_many, has_one, head, instantiate_record_from_json, post, put, #refresh, #to_hash, #to_json

Class Method Details

.find_by_bundle_id(bundle_id, options = {}) ⇒ Object



17
18
19
20
21
# File 'lib/killbill_client/models/subscription_no_events.rb', line 17

def find_by_bundle_id(bundle_id, options = {})
  get "#{KILLBILL_API_BUNDLE_PREFIX}/#{bundle_id}/subscriptions",
      {},
      options
end

.find_by_id(subscription_id, options = {}) ⇒ Object



10
11
12
13
14
# File 'lib/killbill_client/models/subscription_no_events.rb', line 10

def find_by_id(subscription_id, options = {})
  get "#{KILLBILL_API_SUBSCRIPTIONS_PREFIX}/#{subscription_id}",
      {},
      options
end