ECPayInvoice.InvoiceNotification (ecpay_invoice v0.0.1-alpha7)

Link to this section Summary

Link to this section Types

Link to this type

event_type()

Specs

event_type() :: :issued | :voided | :won | :allowance | :allowance_voided
Link to this type

notification_recipient()

Specs

notification_recipient() :: :customer | :merchant | :all

Specs

t() :: %ECPayInvoice.InvoiceNotification{
  email: String.t() | nil,
  event_type: event_type(),
  invoice_no: String.t() | nil,
  notification_recipient: notification_recipient(),
  phone: String.t() | nil
}

Link to this section Functions

Callback implementation for ECPayInvoice.Request.endpoint/0.

Link to this function

new(attrs \\ %{})

Link to this function

new_from_invoice_response(map)

Link to this function

to_api_payload(notification, profile \\ :staging)

Callback implementation for ECPayInvoice.Request.to_api_payload/2.