View Source Craftgate.Response.MemberResponse (Craftgate v1.0.42)

Elixir equivalent of the Java data class io.craftgate.response.MemberResponse

Link to this section Summary

Functions

Callback implementation for Construct.cast/2.

Callback implementation for Construct.make/2.

Attempts to parse the input as an instance of this struct

Bangified version of parse/1

Returns the names of the fields that are serializable/deserializable

Attempts to serialize this struct as a JSON string

Link to this section Types

@type t() :: %Craftgate.Response.MemberResponse{
  address: String.t() | nil,
  contact_name: String.t() | nil,
  contact_surname: String.t() | nil,
  created_date: NaiveDateTime.t() | nil,
  email: String.t() | nil,
  iban: String.t() | nil,
  id: integer() | nil,
  identity_number: String.t() | nil,
  is_buyer: boolean() | nil,
  is_sub_merchant: boolean() | nil,
  legal_company_title: String.t() | nil,
  member_external_id: String.t() | nil,
  member_type: Craftgate.Model.MemberType.t() | nil,
  name: String.t() | nil,
  negative_wallet_amount_limit: Decimal.t() | nil,
  phone_number: String.t() | nil,
  settlement_earnings_destination:
    Craftgate.Model.SettlementEarningsDestination.t() | nil,
  status: Craftgate.Model.Status.t() | nil,
  tax_number: String.t() | nil,
  tax_office: String.t() | nil,
  updated_date: NaiveDateTime.t() | nil
}

Link to this section Functions

Link to this function

cast(params, opts \\ [])

View Source

Callback implementation for Construct.cast/2.

Link to this function

make(params \\ %{}, opts \\ [])

View Source

Callback implementation for Construct.make/2.

Link to this function

make!(params \\ %{}, opts \\ [])

View Source

Callback implementation for Construct.make!/2.

@spec parse(any()) :: {:ok, t()} | {:error, any()}

Attempts to parse the input as an instance of this struct

See also: Craftgate.Serializable.parse/2

@spec parse!(any()) :: t() | no_return()

Bangified version of parse/1

@spec serializable_fields() :: [atom()]

Returns the names of the fields that are serializable/deserializable

Link to this function

serialize(self, opts \\ [])

View Source
@spec serialize(
  t(),
  keyword()
) :: {:ok, binary()} | {:error, any()}

Attempts to serialize this struct as a JSON string

Link to this function

serialize!(self, opts \\ [])

View Source

Bangified version of serialize/2