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

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

Defined Under Namespace

Classes: CustomPricingUnit

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(type: nil, custom_pricing_unit: nil) ⇒ Amount

Returns a new instance of Amount.



100
101
102
103
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 100

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

Instance Attribute Details

#custom_pricing_unitObject

The custom pricing unit amount.



98
99
100
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 98

def custom_pricing_unit
  @custom_pricing_unit
end

#typeObject

The type of the amount.



96
97
98
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 96

def type
  @type
end