Class: Stripe::InvoiceUpdateLinesParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/invoice_update_lines_params.rb

Defined Under Namespace

Classes: Line

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, new, #to_h

Constructor Details

#initialize(expand: nil, invoice_metadata: nil, lines: nil) ⇒ InvoiceUpdateLinesParams

Returns a new instance of InvoiceUpdateLinesParams.



240
241
242
243
244
# File 'lib/stripe/params/invoice_update_lines_params.rb', line 240

def initialize(expand: nil, invoice_metadata: nil, lines: nil)
  @expand = expand
  @invoice_metadata = 
  @lines = lines
end

Instance Attribute Details

#expandObject

Specifies which fields in the response should be expanded.



234
235
236
# File 'lib/stripe/params/invoice_update_lines_params.rb', line 234

def expand
  @expand
end

#invoice_metadataObject

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata. For type=subscription line items, the incoming metadata specified on the request is directly used to set this value, in contrast to type=invoiceitem line items, where any existing metadata on the invoice line is merged with the incoming data.



236
237
238
# File 'lib/stripe/params/invoice_update_lines_params.rb', line 236

def 
  @invoice_metadata
end

#linesObject

The line items to update.



238
239
240
# File 'lib/stripe/params/invoice_update_lines_params.rb', line 238

def lines
  @lines
end

Class Method Details

.field_encodingsObject



246
247
248
249
250
251
252
253
254
255
256
257
258
259
# File 'lib/stripe/params/invoice_update_lines_params.rb', line 246

def self.field_encodings
  @field_encodings = {
    lines: {
      kind: :array,
      element: {
        kind: :object,
        fields: {
          price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
          quantity_decimal: :decimal_string,
        },
      },
    },
  }
end