Class: Stripe::Billing::AlertCreateParams::SpendThreshold::Filters

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

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(billable_items: nil, billing_cadence: nil, pricing_plan: nil, pricing_plan_subscription: nil) ⇒ Filters

Returns a new instance of Filters.



148
149
150
151
152
153
154
155
156
157
158
# File 'lib/stripe/params/billing/alert_create_params.rb', line 148

def initialize(
  billable_items: nil,
  billing_cadence: nil,
  pricing_plan: nil,
  pricing_plan_subscription: nil
)
  @billable_items = billable_items
  @billing_cadence = billing_cadence
  @pricing_plan = pricing_plan
  @pricing_plan_subscription = pricing_plan_subscription
end

Instance Attribute Details

#billable_itemsObject

Filter by billable item IDs. Maximum of 20 billable items.



140
141
142
# File 'lib/stripe/params/billing/alert_create_params.rb', line 140

def billable_items
  @billable_items
end

#billing_cadenceObject

Filter by billing cadence ID.



142
143
144
# File 'lib/stripe/params/billing/alert_create_params.rb', line 142

def billing_cadence
  @billing_cadence
end

#pricing_planObject

Filter by pricing plan ID.



144
145
146
# File 'lib/stripe/params/billing/alert_create_params.rb', line 144

def pricing_plan
  @pricing_plan
end

#pricing_plan_subscriptionObject

Filter by pricing plan subscription ID.



146
147
148
# File 'lib/stripe/params/billing/alert_create_params.rb', line 146

def pricing_plan_subscription
  @pricing_plan_subscription
end