Class: Stripe::Billing::AlertCreateParams::SpendThreshold::Gte

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/billing/alert_create_params.rb

Defined Under Namespace

Classes: Amount, CustomPricingUnit

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, new, #to_h

Constructor Details

#initialize(amount: nil, custom_pricing_unit: nil, type: nil) ⇒ Gte

Returns a new instance of Gte.



173
174
175
176
177
# File 'lib/stripe/params/billing/alert_create_params.rb', line 173

def initialize(amount: nil, custom_pricing_unit: nil, type: nil)
  @amount = amount
  @custom_pricing_unit = custom_pricing_unit
  @type = type
end

Instance Attribute Details

#amountObject

The monetary amount. Required when type is ‘amount`. The threshold is the total_before_tax, the amount consumed after all credits and discounts are applied, but before tax is applied.



167
168
169
# File 'lib/stripe/params/billing/alert_create_params.rb', line 167

def amount
  @amount
end

#custom_pricing_unitObject

The custom pricing unit amount. Required when type is ‘custom_pricing_unit`.



169
170
171
# File 'lib/stripe/params/billing/alert_create_params.rb', line 169

def custom_pricing_unit
  @custom_pricing_unit
end

#typeObject

The type of the threshold amount.



171
172
173
# File 'lib/stripe/params/billing/alert_create_params.rb', line 171

def type
  @type
end