Class: Stripe::V2::Billing::Cadence::InvoiceDiscountRule::PercentOff

Inherits:
StripeObject
  • Object
show all
Defined in:
lib/stripe/resources/v2/billing/cadence.rb

Defined Under Namespace

Classes: MaximumApplications

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from StripeObject

#last_response

Method Summary

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, #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

#maximum_applicationsObject (readonly)

The maximum applications configuration for this discount.



115
116
117
# File 'lib/stripe/resources/v2/billing/cadence.rb', line 115

def maximum_applications
  @maximum_applications
end

#percent_offObject (readonly)

Percent that will be taken off of the amount. For example, percent_off of 50.0 will make $100 amount $50 instead.



117
118
119
# File 'lib/stripe/resources/v2/billing/cadence.rb', line 117

def percent_off
  @percent_off
end