Class: Stripe::Billing::AlertService::CreateParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/billing/alert_service.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.



88
89
90
91
92
93
# File 'lib/stripe/services/billing/alert_service.rb', line 88

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.



77
78
79
# File 'lib/stripe/services/billing/alert_service.rb', line 77

def alert_type
  @alert_type
end

#expandObject

Specifies which fields in the response should be expanded.



80
81
82
# File 'lib/stripe/services/billing/alert_service.rb', line 80

def expand
  @expand
end

#titleObject

The title of the alert.



83
84
85
# File 'lib/stripe/services/billing/alert_service.rb', line 83

def title
  @title
end

#usage_thresholdObject

The configuration of the usage threshold.



86
87
88
# File 'lib/stripe/services/billing/alert_service.rb', line 86

def usage_threshold
  @usage_threshold
end