View Source StarkInfra.IssuingTransaction (starkinfra v0.0.1)

# IssuingTransaction struct

Link to this section Summary

Functions

The IssuingTransaction structs created in your Workspace to represent each balance shift.

Same as get(), but it will unwrap the error tuple and raise in case of errors.

Receive a single IssuingTransaction struct previously created in the Stark Infra API by its id

Same as page(), but it will unwrap the error tuple and raise in case of errors.

Receive a list of IssuingTransaction structs previously created in the Stark Infra API and the cursor to the next page.

Same as query(), but it will unwrap the error tuple and raise in case of errors.

Receive a stream of IssuingTransaction structs previously created in the Stark Infra API

Link to this section Types

@type t() :: %StarkInfra.IssuingTransaction{
  amount: term(),
  balance: term(),
  created: term(),
  description: term(),
  id: term(),
  source: term(),
  tags: term()
}

Link to this section Functions

Link to this function

%StarkInfra.IssuingTransaction{}

View Source (struct)

The IssuingTransaction structs created in your Workspace to represent each balance shift.

attributes-return-only

Attributes (return-only):

- `:id` [string]: unique id returned when IssuingTransaction is created. ex: "5656565656565656"
- `:amount` [integer]: IssuingTransaction value in cents. ex: 1234 (= R$ 12.34)
- `:balance` [integer]: balance amount of the Workspace at the instant of the Transaction in cents. ex: 200 (= R$ 2.00)
- `:description` [string]: IssuingTransaction description. ex: "Buying food"
- `:source` [string]: source of the transaction. ex: "issuing-purchase/5656565656565656"
- `:tags` [string]: list of strings inherited from the source resource. ex: ["tony", "stark"]
- `:created` [DateTime]: creation datetime for the IssuingTransaction. ex: ~U[2020-03-10 10:30:0:0]

Same as get(), but it will unwrap the error tuple and raise in case of errors.

Receive a single IssuingTransaction struct previously created in the Stark Infra API by its id

options

Options:

- `:id` [string]: struct unique id. ex: "5656565656565656"

options-1

Options:

- `:user` [Organization/Project, default nil]: Organization or Project struct returned from StarkInfra.project(). Only necessary if default project or organization has not been set in configs.

return

Return:

- IssuingTransaction struct with updated attributes
@spec page!(
  tags: [binary()] | nil,
  external_ids: [binary()] | nil,
  after: Date.t() | binary() | nil,
  before: Date.t() | binary() | nil,
  status: binary() | nil,
  ids: [binary()] | nil,
  limit: integer() | nil,
  cursor: binary() | nil,
  user: StarkInfra.User.Organization.t() | StarkInfra.User.Project.t() | nil
) :: any()

Same as page(), but it will unwrap the error tuple and raise in case of errors.

@spec page(
  tags: [binary()] | nil,
  external_ids: [binary()] | nil,
  after: Date.t() | binary() | nil,
  before: Date.t() | binary() | nil,
  status: binary() | nil,
  ids: [binary()] | nil,
  limit: integer() | nil,
  cursor: binary() | nil,
  user: StarkInfra.User.Organization.t() | StarkInfra.User.Project.t() | nil
) :: {:ok, {binary(), [t()]}} | {:error, [StarkInfra.Error.t()]}

Receive a list of IssuingTransaction structs previously created in the Stark Infra API and the cursor to the next page.

options

Options:

- `:tags` [list of strings, default nil]: tags to filter retrieved structs. ex: ["tony", "stark"]
- `:external_ids` [list of strings, default []]: external IDs. ex: ["5656565656565656", "4545454545454545"]
- `:after` [Date or string, default nil]: date filter for structs created only after specified date. ex: ~D[2020-03-25]
- `:before` [Date or string, default nil]: date filter for structs created only before specified date. ex: ~D[2020-03-25]
- `:status` [string, default nil]: filter for status of retrieved structs. ex: "approved", "canceled", "denied", "confirmed" or "voided"
- `:ids` [list of strings, default [], default nil]: purchase IDs
- `:limit` [integer, default 100]: maximum number of structs to be retrieved. Unlimited if nil. ex: 35
- `:cursor` [string, default nil]: cursor returned on the previous page function call
- `:user` [Organization/Project, default nil]: Organization or Project struct returned from StarkInfra.project(). Only necessary if default project or organization has not been set in configs.

return

Return:

- list of IssuingTransaction structs with updated attributes
- cursor to retrieve the next page of IssuingPurchase structs
@spec query!(
  tags: [binary()] | nil,
  external_ids: [binary()] | nil,
  after: Date.t() | binary() | nil,
  before: Date.t() | binary() | nil,
  status: binary() | nil,
  ids: [binary()] | nil,
  limit: integer() | nil,
  user: StarkInfra.User.Organization.t() | StarkInfra.User.Project.t() | nil
) :: any()

Same as query(), but it will unwrap the error tuple and raise in case of errors.

@spec query(
  tags: [binary()] | nil,
  external_ids: [binary()] | nil,
  after: Date.t() | binary() | nil,
  before: Date.t() | binary() | nil,
  status: binary() | nil,
  ids: [binary()] | nil,
  limit: integer() | nil,
  user: StarkInfra.User.Organization.t() | StarkInfra.User.Project.t() | nil
) :: {:ok, {binary(), [t()]}} | {:error, [StarkInfra.Error.t()]}

Receive a stream of IssuingTransaction structs previously created in the Stark Infra API

options

Options:

- `:tags` [list of strings, default nil]: tags to filter retrieved structs. ex: ["tony", "stark"]
- `:external_ids` [list of strings, default []]: external IDs. ex: ["5656565656565656", "4545454545454545"]
- `:after` [Date or string, default nil]: date filter for structs created only after specified date. ex: ~D[2020-03-25]
- `:before` [Date or string, default nil]: date filter for structs created only before specified date. ex: ~D[2020-03-25]
- `:status` [string, default nil]: filter for status of retrieved structs. ex: "approved", "canceled", "denied", "confirmed" or "voided"
- `:ids` [list of strings, default [], default nil]: purchase IDs
- `:limit` [integer, default 100]: maximum number of structs to be retrieved. Unlimited if nil. ex: 35
- `:user` [Organization/Project, default nil]: Organization or Project struct returned from StarkInfra.project(). Only necessary if default project or organization has not been set in configs.

return

Return:

- stream of IssuingTransaction structs with updated attributes