Class: KillBillClient::Model::SubscriptionNoEvents
- Inherits:
-
SubscriptionAttributesNoEvents
- Object
- Resource
- SubscriptionAttributesNoEvents
- KillBillClient::Model::SubscriptionNoEvents
- 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
Instance Attribute Summary
Attributes inherited from Resource
#etag, #response, #session_id, #uri
Class Method Summary collapse
- .find_by_bundle_id(bundle_id, options = {}) ⇒ Object
- .find_by_id(subscription_id, options = {}) ⇒ Object
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, = {}) get "#{KILLBILL_API_BUNDLE_PREFIX}/#{bundle_id}/subscriptions", {}, 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, = {}) get "#{KILLBILL_API_SUBSCRIPTIONS_PREFIX}/#{subscription_id}", {}, end |