Class: Stripe::Billing::AlertCreateParams

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

Defined Under Namespace

Classes: CreditBalanceThreshold, SpendThreshold, UsageThreshold

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(alert_type: nil, credit_balance_threshold: nil, expand: nil, title: nil, usage_threshold: nil, spend_threshold: nil) ⇒ AlertCreateParams

Returns a new instance of AlertCreateParams.



237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
# File 'lib/stripe/params/billing/alert_create_params.rb', line 237

def initialize(
  alert_type: nil,
  credit_balance_threshold: nil,
  expand: nil,
  title: nil,
  usage_threshold: nil,
  spend_threshold: nil
)
  @alert_type = alert_type
  @credit_balance_threshold = credit_balance_threshold
  @expand = expand
  @title = title
  @usage_threshold = usage_threshold
  @spend_threshold = spend_threshold
end

Instance Attribute Details

#alert_typeObject

The type of alert to create.



225
226
227
# File 'lib/stripe/params/billing/alert_create_params.rb', line 225

def alert_type
  @alert_type
end

#credit_balance_thresholdObject

The configuration of the credit balance threshold.



227
228
229
# File 'lib/stripe/params/billing/alert_create_params.rb', line 227

def credit_balance_threshold
  @credit_balance_threshold
end

#expandObject

Specifies which fields in the response should be expanded.



229
230
231
# File 'lib/stripe/params/billing/alert_create_params.rb', line 229

def expand
  @expand
end

#spend_thresholdObject

The configuration of the spend threshold.



235
236
237
# File 'lib/stripe/params/billing/alert_create_params.rb', line 235

def spend_threshold
  @spend_threshold
end

#titleObject

The title of the alert.



231
232
233
# File 'lib/stripe/params/billing/alert_create_params.rb', line 231

def title
  @title
end

#usage_thresholdObject

The configuration of the usage threshold.



233
234
235
# File 'lib/stripe/params/billing/alert_create_params.rb', line 233

def usage_threshold
  @usage_threshold
end