Class: Stripe::V2::Billing::IntentService::CreateParams::Action

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

Defined Under Namespace

Classes: Apply, Deactivate, Modify, Remove, Subscribe

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(type: nil, apply: nil, deactivate: nil, modify: nil, remove: nil, subscribe: nil) ⇒ Action

Returns a new instance of Action.



341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 341

def initialize(
  type: nil,
  apply: nil,
  deactivate: nil,
  modify: nil,
  remove: nil,
  subscribe: nil
)
  @type = type
  @apply = apply
  @deactivate = deactivate
  @modify = modify
  @remove = remove
  @subscribe = subscribe
end

Instance Attribute Details

#applyObject

Details for an apply action.



331
332
333
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 331

def apply
  @apply
end

#deactivateObject

Details for a deactivate action.



333
334
335
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 333

def deactivate
  @deactivate
end

#modifyObject

Details for a modify action.



335
336
337
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 335

def modify
  @modify
end

#removeObject

Details for a remove action.



337
338
339
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 337

def remove
  @remove
end

#subscribeObject

Details for a subscribe action.



339
340
341
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 339

def subscribe
  @subscribe
end

#typeObject

Type of the Billing Intent action.



329
330
331
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 329

def type
  @type
end