View Source ExChargebee.PromotionalCredit (ex_chargebee v0.4.5)

An interface for Interacting with promotional_credits

For More information see Chargebee promotional_credit Documentation

Summary

Functions

Perform a promotional_credit add.

Perform a promotional_credit deduct.

Returns a list of promotional_credits. Pagination is handled automatically unless the opt paginate is set to false.

Perform a promotional_credit set.

Returns a stream of promotional_credits. Pagination is handled automatically as the stream is consumed.

Functions

@spec add(
  map(),
  keyword()
) :: map() | nil

Perform a promotional_credit add.

Find more information in the Chargebee Documentation

Link to this function

deduct(params, opts \\ [])

View Source
@spec deduct(
  map(),
  keyword()
) :: map() | nil

Perform a promotional_credit deduct.

Find more information in the Chargebee Documentation

Link to this function

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

View Source
@spec list(
  map(),
  keyword()
) :: [map()] | nil

Returns a list of promotional_credits. Pagination is handled automatically unless the opt paginate is set to false.

opts:

  • site: the site to use for the request. Defaults to the default site.
  • paginate: whether to paginate the results. Defaults to false. If false, all results will be returned.
@spec operations() :: Keyword.t()
Link to this function

retrieve(resource_id, opts \\ [])

View Source
@spec retrieve(
  String.t(),
  keyword()
) :: map() | nil
@spec set(
  map(),
  keyword()
) :: map() | nil

Perform a promotional_credit set.

Find more information in the Chargebee Documentation

Link to this function

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

View Source
@spec stream_list(
  map(),
  keyword()
) :: Enumerable.t()

Returns a stream of promotional_credits. Pagination is handled automatically as the stream is consumed.