Class: Stripe::V2::Billing::ServiceActionCreateParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/billing/service_action_create_params.rb

Defined Under Namespace

Classes: CreditGrant, CreditGrantPerTenant

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(lookup_key: nil, service_interval: nil, service_interval_count: nil, type: nil, credit_grant: nil, credit_grant_per_tenant: nil) ⇒ ServiceActionCreateParams

Returns a new instance of ServiceActionCreateParams.



260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 260

def initialize(
  lookup_key: nil,
  service_interval: nil,
  service_interval_count: nil,
  type: nil,
  credit_grant: nil,
  credit_grant_per_tenant: nil
)
  @lookup_key = lookup_key
  @service_interval = service_interval
  @service_interval_count = service_interval_count
  @type = type
  @credit_grant = credit_grant
  @credit_grant_per_tenant = credit_grant_per_tenant
end

Instance Attribute Details

#credit_grantObject

Details for the credit grant. Required if ‘type` is `credit_grant`.



256
257
258
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 256

def credit_grant
  @credit_grant
end

#credit_grant_per_tenantObject

Details for the credit grant per tenant. Required if ‘type` is `credit_grant_per_tenant`.



258
259
260
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 258

def credit_grant_per_tenant
  @credit_grant_per_tenant
end

#lookup_keyObject

An internal key you can use to search for this service action. Maximum length of 200 characters.



248
249
250
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 248

def lookup_key
  @lookup_key
end

#service_intervalObject

The interval for assessing service.



250
251
252
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 250

def service_interval
  @service_interval
end

#service_interval_countObject

The length of the interval for assessing service.



252
253
254
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 252

def service_interval_count
  @service_interval_count
end

#typeObject

The type of the service action.



254
255
256
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 254

def type
  @type
end