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.



7967
7968
7969
7970
7971
7972
# File 'lib/stripe/resources/invoice.rb', line 7967

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.



7956
7957
7958
# File 'lib/stripe/resources/invoice.rb', line 7956

def add
  @add
end

#removeObject

Keys to remove from schedule phase metadata.



7959
7960
7961
# File 'lib/stripe/resources/invoice.rb', line 7959

def remove
  @remove
end

#setObject

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



7962
7963
7964
# File 'lib/stripe/resources/invoice.rb', line 7962

def set
  @set
end

#typeObject

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



7965
7966
7967
# File 'lib/stripe/resources/invoice.rb', line 7965

def type
  @type
end