Class: Stripe::Invoice::UpcomingParams::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.



2959
2960
2961
2962
2963
2964
# File 'lib/stripe/resources/invoice.rb', line 2959

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.



2948
2949
2950
# File 'lib/stripe/resources/invoice.rb', line 2948

def add
  @add
end

#removeObject

Keys to remove from schedule phase metadata.



2951
2952
2953
# File 'lib/stripe/resources/invoice.rb', line 2951

def remove
  @remove
end

#setObject

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



2954
2955
2956
# File 'lib/stripe/resources/invoice.rb', line 2954

def set
  @set
end

#typeObject

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



2957
2958
2959
# File 'lib/stripe/resources/invoice.rb', line 2957

def type
  @type
end