Class: Stripe::Billing::AlertCreateParams

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

Defined Under Namespace

Classes: UsageThreshold

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of AlertCreateParams.



44
45
46
47
48
49
# File 'lib/stripe/params/billing/alert_create_params.rb', line 44

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

Instance Attribute Details

#alert_typeObject

The type of alert to create.



36
37
38
# File 'lib/stripe/params/billing/alert_create_params.rb', line 36

def alert_type
  @alert_type
end

#expandObject

Specifies which fields in the response should be expanded.



38
39
40
# File 'lib/stripe/params/billing/alert_create_params.rb', line 38

def expand
  @expand
end

#titleObject

The title of the alert.



40
41
42
# File 'lib/stripe/params/billing/alert_create_params.rb', line 40

def title
  @title
end

#usage_thresholdObject

The configuration of the usage threshold.



42
43
44
# File 'lib/stripe/params/billing/alert_create_params.rb', line 42

def usage_threshold
  @usage_threshold
end