Class: Stripe::SubscriptionScheduleRevision
- Inherits:
-
APIResource
- Object
- StripeObject
- APIResource
- Stripe::SubscriptionScheduleRevision
- Extended by:
- APIOperations::List
- Defined in:
- lib/stripe/resources/subscription_schedule_revision.rb
Constant Summary collapse
- OBJECT_NAME =
"subscription_schedule_revision".freeze
Instance Attribute Summary
Attributes inherited from APIResource
Class Method Summary collapse
Instance Method Summary collapse
Methods included from APIOperations::List
Methods inherited from APIResource
class_name, custom_method, #refresh, resource_url, save_nested_resource
Methods included from APIOperations::Request
Methods inherited from StripeObject
#==, #[], #[]=, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #refresh_from, serialize_params, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values
Constructor Details
This class inherits a constructor from Stripe::StripeObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject
Class Method Details
.list(_id, _opts = {}) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/stripe/resources/subscription_schedule_revision.rb', line 27 def self.list(_id, _opts = {}) raise NotImplementedError, "Subscription schedule revisions cannot be listed without a " \ "subscription schedule ID. List subscribtion schedule revisions " \ "using `SubscriptionSchedule.list_revisions('schedule_id')`" end |
.retrieve(_id, _opts = {}) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/stripe/resources/subscription_schedule_revision.rb', line 19 def self.retrieve(_id, _opts = {}) raise NotImplementedError, "Subscription schedule revisions cannot be retrieved without a " \ "subscription schedule ID. Retrieve a subscribtion schedule " \ "revision using `SubscriptionSchedule.retrieve_revision(" \ "'schedule_id', 'revision_id')`" end |
Instance Method Details
#resource_url ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/stripe/resources/subscription_schedule_revision.rb', line 9 def resource_url if !respond_to?(:schedule) || schedule.nil? raise NotImplementedError, "Subscription schedule revisions cannot be accessed without a " \ "subscription schedule ID." end "#{SubscriptionSchedule.resource_url}/#{CGI.escape(schedule)}" \ "/revisions/#{CGI.escape(id)}" end |