Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • OrderItemFactory

Index

Constructors

Properties

Accessors

  • get amount(): undefined | bigint
  • get class(): undefined | string
  • The classification of the order item. Can be used for assigning the order item to a specific product category, such as MobilePhone. Note that class cannot contain spaces and must follow the regex pattern [\w-]*. Swedbank Pay may use this field for statistics.

    Returns undefined | string

  • get displayQuantity(): string
  • get displayQuantityUnit(): undefined | string
  • get name(): undefined | string
  • get quantity(): number
  • get quantityUnit(): undefined | string
  • get reference(): undefined | string
  • get unitPrice(): undefined | bigint
  • The price per unit of order item (including VAT, if any) entered in the lowest monetary unit of the selected currency. E.g.: 10000 = 100.00 SEK, 5000 = 50.00 SEK

    Returns undefined | bigint

  • get vatAmount(): undefined | bigint
  • The payment’s VAT (Value Added Tax) amount, entered in the lowest monetary unit of the selected currency. E.g.: 10000 = 100.00 SEK, 5000 = 50.00 SEK. The vatAmount entered will not affect the amount shown on the payment page, which only shows the total amount. This field is used to specify how much of the total amount the VAT will be. Set to 0 (zero) if there is no VAT amount charged.

    Returns undefined | bigint

  • get vatPercent(): undefined | bigint

Methods

  • getErrors(): [key: string, msg: string][]
  • The classification of the order item. Can be used for assigning the order item to a specific product category, such as MobilePhone. Note that class cannot contain spaces and must follow the regex pattern [\w-]*. Swedbank Pay may use this field for statistics.

    Parameters

    • newClass: string

    Returns OrderItemFactory

  • setUnitPrice(newUnitPrice: number | bigint, vatPercent?: number | bigint): void
  • The price per unit of order item (including VAT, if any) entered in the lowest monetary unit of the selected currency. E.g.: 10000 = 100.00 SEK, 5000 = 50.00 SEK

    Parameters

    • newUnitPrice: number | bigint
    • Optional vatPercent: number | bigint

    Returns void

Generated using TypeDoc