Class: Stripe::V2::Billing::IntentCreateParams::Action

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



324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 324

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.



314
315
316
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 314

def apply
  @apply
end

#deactivateObject

Details for a deactivate action.



316
317
318
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 316

def deactivate
  @deactivate
end

#modifyObject

Details for a modify action.



318
319
320
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 318

def modify
  @modify
end

#removeObject

Details for a remove action.



320
321
322
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 320

def remove
  @remove
end

#subscribeObject

Details for a subscribe action.



322
323
324
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 322

def subscribe
  @subscribe
end

#typeObject

Type of the Billing Intent action.



312
313
314
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 312

def type
  @type
end