PolarExpress.Schemas.RefundCreate (polar_express v0.2.2)

Copy Markdown View Source

RefundCreate

Summary

Types

t()

@type t() :: %PolarExpress.Schemas.RefundCreate{
  amount: term(),
  comment: term(),
  metadata: term(),
  order_id: term(),
  reason: term(),
  revoke_benefits: term()
}
  • amount - Amount to refund in cents. Minimum is 1.
  • comment - An internal comment about the refund. Nullable.
  • metadata - Key-value object allowing you to store additional information.

The key must be a string with a maximum length of 40 characters. The value must be either:

  • A string with a maximum length of 500 characters
  • An integer
  • A floating-point number
  • A boolean

You can store up to 50 key-value pairs.

  • order_id - Format: uuid4.
  • reason
  • revoke_benefits - Should this refund trigger the associated customer benefits to be revoked?

Note: Only allowed in case the order is a one-time purchase. Subscriptions automatically revoke customer benefits once the subscription itself is revoked, i.e fully canceled.

Functions

schema_name()