Class: Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Amendment::MetadataAction
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Amendment::MetadataAction
- Defined in:
- lib/stripe/resources/invoice.rb
Instance Attribute Summary collapse
-
#add ⇒ Object
Key-value pairs to add to schedule phase metadata.
-
#remove ⇒ Object
Keys to remove from schedule phase metadata.
-
#set ⇒ Object
Key-value pairs to set as schedule phase metadata.
-
#type ⇒ Object
Select one of three ways to update phase-level ‘metadata` on subscription schedules.
Instance Method Summary collapse
-
#initialize(add: nil, remove: nil, set: nil, type: nil) ⇒ MetadataAction
constructor
A new instance of MetadataAction.
Methods inherited from RequestParams
Constructor Details
#initialize(add: nil, remove: nil, set: nil, type: nil) ⇒ MetadataAction
Returns a new instance of MetadataAction.
3260 3261 3262 3263 3264 3265 |
# File 'lib/stripe/resources/invoice.rb', line 3260 def initialize(add: nil, remove: nil, set: nil, type: nil) @add = add @remove = remove @set = set @type = type end |
Instance Attribute Details
#add ⇒ Object
Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
3252 3253 3254 |
# File 'lib/stripe/resources/invoice.rb', line 3252 def add @add end |
#remove ⇒ Object
Keys to remove from schedule phase metadata.
3254 3255 3256 |
# File 'lib/stripe/resources/invoice.rb', line 3254 def remove @remove end |
#set ⇒ Object
Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
3256 3257 3258 |
# File 'lib/stripe/resources/invoice.rb', line 3256 def set @set end |
#type ⇒ Object
Select one of three ways to update phase-level ‘metadata` on subscription schedules.
3258 3259 3260 |
# File 'lib/stripe/resources/invoice.rb', line 3258 def type @type end |