Class: Stripe::Billing::AlertCreateParams::CreditBalanceThreshold::Lte
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Billing::AlertCreateParams::CreditBalanceThreshold::Lte
- Defined in:
- lib/stripe/params/billing/alert_create_params.rb
Defined Under Namespace
Classes: CustomPricingUnit, Monetary
Instance Attribute Summary collapse
-
#balance_type ⇒ Object
Specify the type of this balance.
-
#custom_pricing_unit ⇒ Object
The custom pricing unit amount.
-
#monetary ⇒ Object
The monetary amount.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(balance_type: nil, custom_pricing_unit: nil, monetary: nil) ⇒ Lte
constructor
A new instance of Lte.
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_type ⇒ Object
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_unit ⇒ Object
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 |
#monetary ⇒ Object
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_encodings ⇒ Object
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 |