Class: Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Amendment::MetadataAction

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



1007
1008
1009
1010
1011
1012
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1007

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.



999
1000
1001
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 999

def add
  @add
end

#removeObject

Keys to remove from schedule phase metadata.



1001
1002
1003
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1001

def remove
  @remove
end

#setObject

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



1003
1004
1005
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1003

def set
  @set
end

#typeObject

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



1005
1006
1007
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1005

def type
  @type
end