Class: Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Amendment::MetadataAction

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/invoice.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of MetadataAction.



3249
3250
3251
3252
3253
3254
# File 'lib/stripe/resources/invoice.rb', line 3249

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.



3241
3242
3243
# File 'lib/stripe/resources/invoice.rb', line 3241

def add
  @add
end

#removeObject

Keys to remove from schedule phase metadata.



3243
3244
3245
# File 'lib/stripe/resources/invoice.rb', line 3243

def remove
  @remove
end

#setObject

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



3245
3246
3247
# File 'lib/stripe/resources/invoice.rb', line 3245

def set
  @set
end

#typeObject

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



3247
3248
3249
# File 'lib/stripe/resources/invoice.rb', line 3247

def type
  @type
end