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

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

Defined Under Namespace

Classes: CustomPricingUnit, Monetary

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(balance_type: nil, custom_pricing_unit: nil, monetary: nil) ⇒ Lte

Returns a new instance of Lte.



164
165
166
167
168
# File 'lib/stripe/resources/billing/alert.rb', line 164

def initialize(balance_type: nil, custom_pricing_unit: nil, monetary: nil)
  @balance_type = balance_type
  @custom_pricing_unit = custom_pricing_unit
  @monetary = monetary
end

Instance Attribute Details

#balance_typeObject

Specify the type of this balance. We currently only support ‘monetary` billing credits.



158
159
160
# File 'lib/stripe/resources/billing/alert.rb', line 158

def balance_type
  @balance_type
end

#custom_pricing_unitObject

The custom pricing unit amount.



160
161
162
# File 'lib/stripe/resources/billing/alert.rb', line 160

def custom_pricing_unit
  @custom_pricing_unit
end

#monetaryObject

The monetary amount.



162
163
164
# File 'lib/stripe/resources/billing/alert.rb', line 162

def monetary
  @monetary
end