Class: Stripe::V2::Billing::IntentCreateParams::Action::Apply::SpendModifierRule::MaxBillingPeriodSpend

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

Defined Under Namespace

Classes: Amount, CustomPricingUnitOverageRate

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(amount: nil, custom_pricing_unit_overage_rate: nil) ⇒ MaxBillingPeriodSpend

Returns a new instance of MaxBillingPeriodSpend.



116
117
118
119
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 116

def initialize(amount: nil, custom_pricing_unit_overage_rate: nil)
  @amount = amount
  @custom_pricing_unit_overage_rate = custom_pricing_unit_overage_rate
end

Instance Attribute Details

#amountObject

The maximum amount allowed for the billing period.



112
113
114
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 112

def amount
  @amount
end

#custom_pricing_unit_overage_rateObject

The configuration for the overage rate for the custom pricing unit.



114
115
116
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 114

def custom_pricing_unit_overage_rate
  @custom_pricing_unit_overage_rate
end