Class: Stripe::SubscriptionScheduleAmendParams::Amendment::MetadataAction

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/subscription_schedule_amend_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(add: nil, remove: nil, set: nil, type: nil) ⇒ MetadataAction

Returns a new instance of MetadataAction.



376
377
378
379
380
381
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 376

def initialize(add: nil, remove: nil, set: nil, type: nil)
  @add = add
  @remove = remove
  @set = set
  @type = type
end

Instance Attribute Details

#addObject

Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.



368
369
370
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 368

def add
  @add
end

#removeObject

Keys to remove from schedule phase metadata.



370
371
372
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 370

def remove
  @remove
end

#setObject

Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.



372
373
374
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 372

def set
  @set
end

#typeObject

Select one of three ways to update phase-level ‘metadata` on subscription schedules.



374
375
376
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 374

def type
  @type
end