Class: Stripe::SubscriptionSchedule::Phase::AddInvoiceItem
- Inherits:
-
Stripe::StripeObject
- Object
- Stripe::StripeObject
- Stripe::SubscriptionSchedule::Phase::AddInvoiceItem
- Defined in:
- lib/stripe/resources/subscription_schedule.rb
Defined Under Namespace
Constant Summary
Constants inherited from Stripe::StripeObject
Stripe::StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#discounts ⇒ Object
readonly
The stackable discounts that will be applied to the item.
-
#metadata ⇒ Object
readonly
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object.
-
#period ⇒ Object
readonly
Attribute for field period.
-
#price ⇒ Object
readonly
ID of the price used to generate the invoice item.
-
#quantity ⇒ Object
readonly
The quantity of the invoice item.
-
#tax_rates ⇒ Object
readonly
The tax rates which apply to the item.
Attributes inherited from Stripe::StripeObject
Class Method Summary collapse
Methods inherited from Stripe::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
#discounts ⇒ Object (readonly)
The stackable discounts that will be applied to the item.
252 253 254 |
# File 'lib/stripe/resources/subscription_schedule.rb', line 252 def discounts @discounts end |
#metadata ⇒ Object (readonly)
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
254 255 256 |
# File 'lib/stripe/resources/subscription_schedule.rb', line 254 def end |
#period ⇒ Object (readonly)
Attribute for field period
256 257 258 |
# File 'lib/stripe/resources/subscription_schedule.rb', line 256 def period @period end |
#price ⇒ Object (readonly)
ID of the price used to generate the invoice item.
258 259 260 |
# File 'lib/stripe/resources/subscription_schedule.rb', line 258 def price @price end |
#quantity ⇒ Object (readonly)
The quantity of the invoice item.
260 261 262 |
# File 'lib/stripe/resources/subscription_schedule.rb', line 260 def quantity @quantity end |
#tax_rates ⇒ Object (readonly)
The tax rates which apply to the item. When set, the ‘default_tax_rates` do not apply to this item.
262 263 264 |
# File 'lib/stripe/resources/subscription_schedule.rb', line 262 def tax_rates @tax_rates end |
Class Method Details
.field_remappings ⇒ Object
268 269 270 |
# File 'lib/stripe/resources/subscription_schedule.rb', line 268 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
264 265 266 |
# File 'lib/stripe/resources/subscription_schedule.rb', line 264 def self.inner_class_types @inner_class_types = { discounts: Discount, period: Period } end |