Class: Stripe::SubscriptionSchedule::Phase::AddInvoiceItem

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

Defined Under Namespace

Classes: Discount, Period

Constant Summary

Constants inherited from Stripe::StripeObject

Stripe::StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from Stripe::StripeObject

#last_response

Class Method Summary collapse

Methods inherited from Stripe::StripeObject

#==, #[], #[]=, #_get_inner_class_type, #_get_union_variant_class, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, field_encodings, #hash, #initialize, inner_class_union_variant_types, #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

#discountable ⇒ Object (readonly)

Controls whether discounts apply to this invoice item. Defaults to true if no value is provided.



455
456
457
# File 'lib/stripe/resources/subscription_schedule.rb', line 455

def discountable
  @discountable
end

#discounts ⇒ Object (readonly)

The stackable discounts that will be applied to the item.



457
458
459
# File 'lib/stripe/resources/subscription_schedule.rb', line 457

def discounts
  @discounts
end

#metadata ⇒ Object (readonly)

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.



459
460
461
# File 'lib/stripe/resources/subscription_schedule.rb', line 459

def 
  @metadata
end

#period ⇒ Object (readonly)

Attribute for field period



461
462
463
# File 'lib/stripe/resources/subscription_schedule.rb', line 461

def period
  @period
end

#price ⇒ Object (readonly)

ID of the price used to generate the invoice item.



463
464
465
# File 'lib/stripe/resources/subscription_schedule.rb', line 463

def price
  @price
end

#quantity ⇒ Object (readonly)

The quantity of the invoice item.



465
466
467
# File 'lib/stripe/resources/subscription_schedule.rb', line 465

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.



467
468
469
# File 'lib/stripe/resources/subscription_schedule.rb', line 467

def tax_rates
  @tax_rates
end

Class Method Details

.field_remappings ⇒ Object



473
474
475
# File 'lib/stripe/resources/subscription_schedule.rb', line 473

def self.field_remappings
  @field_remappings = {}
end

.inner_class_types ⇒ Object



469
470
471
# File 'lib/stripe/resources/subscription_schedule.rb', line 469

def self.inner_class_types
  @inner_class_types = { discounts: Discount, period: Period }
end