Class: Stripe::Billing::Alert::CreateParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/resources/billing/alert.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) ⇒ CreateParams

Returns a new instance of CreateParams.



102
103
104
105
106
107
# File 'lib/stripe/resources/billing/alert.rb', line 102

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.



94
95
96
# File 'lib/stripe/resources/billing/alert.rb', line 94

def alert_type
  @alert_type
end

#expandObject

Specifies which fields in the response should be expanded.



96
97
98
# File 'lib/stripe/resources/billing/alert.rb', line 96

def expand
  @expand
end

#titleObject

The title of the alert.



98
99
100
# File 'lib/stripe/resources/billing/alert.rb', line 98

def title
  @title
end

#usage_thresholdObject

The configuration of the usage threshold.



100
101
102
# File 'lib/stripe/resources/billing/alert.rb', line 100

def usage_threshold
  @usage_threshold
end