View Source Stripe.Terminal.Configuration (stripity_stripe v3.2.0)

A Configurations object represents how features should be configured for terminal readers.

Summary

Types

Tipping configuration for AUD

An object containing device type specific settings for BBPOS WisePOS E readers

Tipping configuration for CAD

Tipping configuration for CHF

Tipping configuration for CZK

Tipping configuration for DKK

Tipping configuration for EUR

Tipping configuration for GBP

Tipping configuration for HKD

Tipping configuration for MYR

Tipping configuration for NOK

Tipping configuration for NZD

Tipping configuration for SEK

Tipping configuration for SGD

t()

The terminal.configuration type.

Tipping configuration for USD

An object containing device type specific settings for Verifone P400 readers

Functions

Creates a new Configuration object.

Deletes a Configuration object.

Returns a list of Configuration objects.

Retrieves a Configuration object.

Updates a new Configuration object.

Types

@type aud() :: %{
  optional(:fixed_amounts) => [integer()],
  optional(:percentages) => [integer()],
  optional(:smart_tip_threshold) => integer()
}

Tipping configuration for AUD

@type bbpos_wisepos_e() :: %{optional(:splashscreen) => binary() | binary()}

An object containing device type specific settings for BBPOS WisePOS E readers

@type cad() :: %{
  optional(:fixed_amounts) => [integer()],
  optional(:percentages) => [integer()],
  optional(:smart_tip_threshold) => integer()
}

Tipping configuration for CAD

@type chf() :: %{
  optional(:fixed_amounts) => [integer()],
  optional(:percentages) => [integer()],
  optional(:smart_tip_threshold) => integer()
}

Tipping configuration for CHF

@type czk() :: %{
  optional(:fixed_amounts) => [integer()],
  optional(:percentages) => [integer()],
  optional(:smart_tip_threshold) => integer()
}

Tipping configuration for CZK

@type dkk() :: %{
  optional(:fixed_amounts) => [integer()],
  optional(:percentages) => [integer()],
  optional(:smart_tip_threshold) => integer()
}

Tipping configuration for DKK

@type eur() :: %{
  optional(:fixed_amounts) => [integer()],
  optional(:percentages) => [integer()],
  optional(:smart_tip_threshold) => integer()
}

Tipping configuration for EUR

@type gbp() :: %{
  optional(:fixed_amounts) => [integer()],
  optional(:percentages) => [integer()],
  optional(:smart_tip_threshold) => integer()
}

Tipping configuration for GBP

@type hkd() :: %{
  optional(:fixed_amounts) => [integer()],
  optional(:percentages) => [integer()],
  optional(:smart_tip_threshold) => integer()
}

Tipping configuration for HKD

@type myr() :: %{
  optional(:fixed_amounts) => [integer()],
  optional(:percentages) => [integer()],
  optional(:smart_tip_threshold) => integer()
}

Tipping configuration for MYR

@type nok() :: %{
  optional(:fixed_amounts) => [integer()],
  optional(:percentages) => [integer()],
  optional(:smart_tip_threshold) => integer()
}

Tipping configuration for NOK

@type nzd() :: %{
  optional(:fixed_amounts) => [integer()],
  optional(:percentages) => [integer()],
  optional(:smart_tip_threshold) => integer()
}

Tipping configuration for NZD

@type offline() :: %{optional(:enabled) => boolean()}
@type sek() :: %{
  optional(:fixed_amounts) => [integer()],
  optional(:percentages) => [integer()],
  optional(:smart_tip_threshold) => integer()
}

Tipping configuration for SEK

@type sgd() :: %{
  optional(:fixed_amounts) => [integer()],
  optional(:percentages) => [integer()],
  optional(:smart_tip_threshold) => integer()
}

Tipping configuration for SGD

@type t() :: %Stripe.Terminal.Configuration{
  bbpos_wisepos_e: term(),
  id: binary(),
  is_account_default: boolean() | nil,
  livemode: boolean(),
  object: binary(),
  offline: term(),
  tipping: term(),
  verifone_p400: term()
}

The terminal.configuration type.

  • bbpos_wisepos_e
  • id Unique identifier for the object.
  • is_account_default Whether this Configuration is the default for your account
  • livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
  • object String representing the object's type. Objects of the same type share the same value.
  • offline
  • tipping
  • verifone_p400
@type tipping() :: %{
  optional(:aud) => aud(),
  optional(:cad) => cad(),
  optional(:chf) => chf(),
  optional(:czk) => czk(),
  optional(:dkk) => dkk(),
  optional(:eur) => eur(),
  optional(:gbp) => gbp(),
  optional(:hkd) => hkd(),
  optional(:myr) => myr(),
  optional(:nok) => nok(),
  optional(:nzd) => nzd(),
  optional(:sek) => sek(),
  optional(:sgd) => sgd(),
  optional(:usd) => usd()
}
@type usd() :: %{
  optional(:fixed_amounts) => [integer()],
  optional(:percentages) => [integer()],
  optional(:smart_tip_threshold) => integer()
}

Tipping configuration for USD

@type verifone_p400() :: %{optional(:splashscreen) => binary() | binary()}

An object containing device type specific settings for Verifone P400 readers

Functions

Link to this function

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

View Source
@spec create(
  params :: %{
    optional(:bbpos_wisepos_e) => bbpos_wisepos_e(),
    optional(:expand) => [binary()],
    optional(:offline) => offline() | binary(),
    optional(:tipping) => tipping() | binary(),
    optional(:verifone_p400) => verifone_p400()
  },
  opts :: Keyword.t()
) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}

Creates a new Configuration object.

Details

  • Method: post
  • Path: /v1/terminal/configurations
Link to this function

delete(configuration, opts \\ [])

View Source
@spec delete(configuration :: binary(), opts :: Keyword.t()) ::
  {:ok, Stripe.DeletedTerminal.Configuration.t()}
  | {:error, Stripe.ApiErrors.t()}
  | {:error, term()}

Deletes a Configuration object.

Details

  • Method: delete
  • Path: /v1/terminal/configurations/{configuration}
Link to this function

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

View Source
@spec list(
  params :: %{
    optional(:ending_before) => binary(),
    optional(:expand) => [binary()],
    optional(:is_account_default) => boolean(),
    optional(:limit) => integer(),
    optional(:starting_after) => binary()
  },
  opts :: Keyword.t()
) ::
  {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}

Returns a list of Configuration objects.

Details

  • Method: get
  • Path: /v1/terminal/configurations
Link to this function

retrieve(configuration, params \\ %{}, opts \\ [])

View Source
@spec retrieve(
  configuration :: binary(),
  params :: %{optional(:expand) => [binary()]},
  opts :: Keyword.t()
) ::
  {:ok, t() | Stripe.DeletedTerminal.Configuration.t()}
  | {:error, Stripe.ApiErrors.t()}
  | {:error, term()}

Retrieves a Configuration object.

Details

  • Method: get
  • Path: /v1/terminal/configurations/{configuration}
Link to this function

update(configuration, params \\ %{}, opts \\ [])

View Source
@spec update(
  configuration :: binary(),
  params :: %{
    optional(:bbpos_wisepos_e) => bbpos_wisepos_e() | binary(),
    optional(:expand) => [binary()],
    optional(:offline) => offline() | binary(),
    optional(:tipping) => tipping() | binary(),
    optional(:verifone_p400) => verifone_p400() | binary()
  },
  opts :: Keyword.t()
) ::
  {:ok, t() | Stripe.DeletedTerminal.Configuration.t()}
  | {:error, Stripe.ApiErrors.t()}
  | {:error, term()}

Updates a new Configuration object.

Details

  • Method: post
  • Path: /v1/terminal/configurations/{configuration}