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, 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.



129
130
131
132
133
134
135
136
137
138
139
# File 'lib/stripe/params/billing/alert_create_params.rb', line 129

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.



121
122
123
# File 'lib/stripe/params/billing/alert_create_params.rb', line 121

def billable_items
  @billable_items
end

#billing_cadenceObject

Filter by billing cadence ID.



123
124
125
# File 'lib/stripe/params/billing/alert_create_params.rb', line 123

def billing_cadence
  @billing_cadence
end

#pricing_planObject

Filter by pricing plan ID.



125
126
127
# File 'lib/stripe/params/billing/alert_create_params.rb', line 125

def pricing_plan
  @pricing_plan
end

#pricing_plan_subscriptionObject

Filter by pricing plan subscription ID.



127
128
129
# File 'lib/stripe/params/billing/alert_create_params.rb', line 127

def pricing_plan_subscription
  @pricing_plan_subscription
end