Current section
Files
Jump to
Current section
Files
lib/docusign/model/referral_information.ex
# NOTE: This file is auto generated by OpenAPI Generator
# https://openapi-generator.tech
# Do not edit this file manually.
defmodule DocuSign.Model.ReferralInformation do
@moduledoc """
A complex type that contains the following information for entering referral and discount information. The following items are included in the referral information (all string content): enableSupport, includedSeats, saleDiscountPercent, saleDiscountAmount, saleDiscountFixedAmount, saleDiscountPeriods, saleDiscountSeatPriceOverride, planStartMonth, referralCode, referrerName, advertisementId, publisherId, shopperId, promoCode, groupMemberId, idType, and industry **Note:** saleDiscountPercent, saleDiscountAmount, saleDiscountFixedAmount, saleDiscountPeriods, and saleDiscountSeatPriceOverride are reserved for Docusign use only.
"""
defstruct [
:advertisementId,
:enableSupport,
:externalOrgId,
:groupMemberId,
:idType,
:includedSeats,
:industry,
:planStartMonth,
:promoCode,
:publisherId,
:referralCode,
:referrerName,
:saleDiscountAmount,
:saleDiscountFixedAmount,
:saleDiscountPercent,
:saleDiscountPeriods,
:saleDiscountSeatPriceOverride,
:shopperId
]
@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__{
:advertisementId => String.t() | nil,
:enableSupport => String.t() | nil,
:externalOrgId => String.t() | nil,
:groupMemberId => String.t() | nil,
:idType => String.t() | nil,
:includedSeats => String.t() | nil,
:industry => String.t() | nil,
:planStartMonth => String.t() | nil,
:promoCode => String.t() | nil,
:publisherId => String.t() | nil,
:referralCode => String.t() | nil,
:referrerName => String.t() | nil,
:saleDiscountAmount => String.t() | nil,
:saleDiscountFixedAmount => String.t() | nil,
:saleDiscountPercent => String.t() | nil,
:saleDiscountPeriods => String.t() | nil,
:saleDiscountSeatPriceOverride => String.t() | nil,
:shopperId => String.t() | nil
}
def decode(value) do
struct(__MODULE__, value)
end
end