Class: Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Amendment::MetadataAction
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Amendment::MetadataAction
- Defined in:
- lib/stripe/params/invoice_create_preview_params.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
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(add: nil, remove: nil, set: nil, type: nil) ⇒ MetadataAction
Returns a new instance of MetadataAction.
1023 1024 1025 1026 1027 1028 |
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1023 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.
1015 1016 1017 |
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1015 def add @add end |
#remove ⇒ Object
Keys to remove from schedule phase metadata.
1017 1018 1019 |
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1017 def remove @remove end |
#set ⇒ Object
Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
1019 1020 1021 |
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1019 def set @set end |
#type ⇒ Object
Select one of three ways to update phase-level ‘metadata` on subscription schedules.
1021 1022 1023 |
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 1021 def type @type end |