STPKlarnaLineItem
public class STPKlarnaLineItem : NSObject
An object representing a line item in a Klarna source.
-
The line item’s type. One of
sku
(for a product),tax
(for taxes), orshipping
(for shipping costs).Declaration
Swift
@objc public var itemType: STPKlarnaLineItemType
-
The human-readable description for the line item.
Declaration
Swift
@objc public var itemDescription: String
-
The quantity to display for this line item.
Declaration
Swift
@objc public var quantity: NSNumber
-
The total price of this line item. Note: This is the total price after multiplying by the quantity, not the price of an individual item. It is denominated in the currency of the STPSourceParams which contains it.
Declaration
Swift
@objc public var totalAmount: NSNumber
-
Initialize this
STPKlarnaLineItem
with a set of parameters.Declaration
Swift
@objc public init( itemType: STPKlarnaLineItemType, itemDescription: String, quantity: NSNumber, totalAmount: NSNumber )
Parameters
itemType
The line item’s type.
itemDescription
The human-readable description for the line item.
quantity
The quantity to display for this line item.
totalAmount
The total price of this line item.