Class: Stripe::Billing::Alert::CreateParams::CreditBalanceThreshold::Lte::CustomPricingUnit

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/billing/alert.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(id: nil, value: nil) ⇒ CustomPricingUnit

Returns a new instance of CustomPricingUnit.



140
141
142
143
# File 'lib/stripe/resources/billing/alert.rb', line 140

def initialize(id: nil, value: nil)
  @id = id
  @value = value
end

Instance Attribute Details

#idObject

The ID of the custom pricing unit.



136
137
138
# File 'lib/stripe/resources/billing/alert.rb', line 136

def id
  @id
end

#valueObject

A positive decimal string representing the amount of the custom pricing unit threshold.



138
139
140
# File 'lib/stripe/resources/billing/alert.rb', line 138

def value
  @value
end