PaperTiger.Resources.PromotionCode (PaperTiger v1.1.1)

Copy Markdown View Source

Handles Promotion Code resource endpoints.

Summary

Functions

Creates a Promotion Code.

Lists Promotion Codes.

Retrieves a Promotion Code.

Updates a Promotion Code.

Functions

create(conn)

@spec create(Plug.Conn.t()) :: Plug.Conn.t()

Creates a Promotion Code.

list(conn)

@spec list(Plug.Conn.t()) :: Plug.Conn.t()

Lists Promotion Codes.

retrieve(conn, id)

@spec retrieve(Plug.Conn.t(), String.t()) :: Plug.Conn.t()

Retrieves a Promotion Code.

update(conn, id)

@spec update(Plug.Conn.t(), String.t()) :: Plug.Conn.t()

Updates a Promotion Code.