Class: Stripe::Billing::AlertCreateParams::CreditBalanceThreshold::Lte

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

Defined Under Namespace

Classes: CustomPricingUnit, Monetary

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, new, #to_h

Constructor Details

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

Returns a new instance of Lte.



105
106
107
108
109
# File 'lib/stripe/params/billing/alert_create_params.rb', line 105

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.



99
100
101
# File 'lib/stripe/params/billing/alert_create_params.rb', line 99

def balance_type
  @balance_type
end

#custom_pricing_unitObject

The custom pricing unit amount.



101
102
103
# File 'lib/stripe/params/billing/alert_create_params.rb', line 101

def custom_pricing_unit
  @custom_pricing_unit
end

#monetaryObject

The monetary amount.



103
104
105
# File 'lib/stripe/params/billing/alert_create_params.rb', line 103

def monetary
  @monetary
end

Class Method Details

.field_encodingsObject



111
112
113
114
115
# File 'lib/stripe/params/billing/alert_create_params.rb', line 111

def self.field_encodings
  @field_encodings = {
    custom_pricing_unit: { kind: :object, fields: { value: :decimal_string } },
  }
end