Current section

Files

Jump to
docusign lib docusign model payment_line_item.ex
Raw

lib/docusign/model/payment_line_item.ex

# NOTE: This file is auto generated by OpenAPI Generator
# https://openapi-generator.tech
# Do not edit this file manually.
defmodule DocuSign.Model.PaymentLineItem do
@moduledoc """
A line item describes details about an individual line item in a payment request.
"""
defstruct [
:amountReference,
:description,
:itemCode,
:name
]
@doc false
defimpl Jason.Encoder, for: __MODULE__ do
def encode(struct, opts) do
struct
|> Map.from_struct()
|> Enum.reject(fn {_k, v} -> is_nil(v) end)
|> Map.new()
|> Jason.Encode.map(opts)
end
end
@type t :: %__MODULE__{
:amountReference => String.t() | nil,
:description => String.t() | nil,
:itemCode => String.t() | nil,
:name => String.t() | nil
}
def decode(value) do
struct(__MODULE__, value)
end
end