Class: Stripe::Quote::SubscriptionData

Inherits:
StripeObject show all
Defined in:
lib/stripe/resources/quote.rb

Defined Under Namespace

Classes: BillingMode

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from StripeObject

#last_response

Class Method Summary collapse

Methods inherited from StripeObject

#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #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

Instance Attribute Details

#billing_modeObject (readonly)

The billing mode of the quote.



333
334
335
# File 'lib/stripe/resources/quote.rb', line 333

def billing_mode
  @billing_mode
end

#descriptionObject (readonly)

The subscription’s description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.



335
336
337
# File 'lib/stripe/resources/quote.rb', line 335

def description
  @description
end

#effective_dateObject (readonly)

When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. This date is ignored if it is in the past when the quote is accepted. Measured in seconds since the Unix epoch.



337
338
339
# File 'lib/stripe/resources/quote.rb', line 337

def effective_date
  @effective_date
end

#metadataObject (readonly)

Set of [key-value pairs](stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in ‘line_items`, this field will be passed to the resulting subscription’s ‘metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule’s ‘phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.



339
340
341
# File 'lib/stripe/resources/quote.rb', line 339

def 
  @metadata
end

#trial_period_daysObject (readonly)

Integer representing the number of trial period days before the customer is charged for the first time.



341
342
343
# File 'lib/stripe/resources/quote.rb', line 341

def trial_period_days
  @trial_period_days
end

Class Method Details

.field_remappingsObject



347
348
349
# File 'lib/stripe/resources/quote.rb', line 347

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



343
344
345
# File 'lib/stripe/resources/quote.rb', line 343

def self.inner_class_types
  @inner_class_types = { billing_mode: BillingMode }
end