SwedbankpayCheckout.Client.Psp.PaymentOrders.Common.OrderItem (swedbankpay_checkout v0.2.1) View Source

Link to this section Summary

Types

.payment_order.order_item.type

t()

.payment_order.order_item

Link to this section Types

Specs

order_item_type() ::
  :PRODUCT
  | :SERVICE
  | :SHIPPING_FEE
  | :PAYMENT_FEE
  | :DISCOUNT
  | :VALUE_CODE
  | :OTHER

.payment_order.order_item.type

Specs

t() :: %SwedbankpayCheckout.Client.Psp.PaymentOrders.Common.OrderItem{
  amount: integer(),
  class: String.t(),
  description: String.t() | nil,
  discount_description: String.t() | nil,
  discount_price: integer() | nil,
  image_url: String.t() | nil,
  item_url: String.t() | nil,
  name: String.t(),
  quantity: integer(),
  quantity_unit: String.t(),
  reference: String.t(),
  type: order_item_type(),
  unit_price: integer(),
  vat_amount: integer(),
  vat_percent: integer()
}

.payment_order.order_item

This is shared between several modules. The array of items being purchased with the order. Used to print on invoices if the payer chooses to pay with invoice, among other things. orderItems is required in all requests. In capture requests it should only contain the items to be captured from the order.