BTVenmoLineItem
@objcMembers
public class BTVenmoLineItem : NSObject
A Venmo line item to be displayed in the Venmo Paysheet.
-
Number of units of the item purchased. This value must be a whole number and can’t be negative or zero.
Declaration
Swift
public var quantity: Int
-
Per-unit price of the item. Can include up to 2 decimal places. This value can’t be negative or zero.
Declaration
Swift
public var unitAmount: String
-
Item name. Maximum 127 characters.
Declaration
Swift
public var name: String
-
Indicates whether the line item is a debit (sale) or credit (refund) to the customer.
Declaration
Swift
public var kind: BTVenmoLineItemKind
-
Optional: Per-unit tax price of the item. Can include up to 2 decimal places. This value can’t be negative or zero.
Declaration
Swift
public var unitTaxAmount: String?
-
Optional: Item description. Maximum 127 characters.
Declaration
Swift
public var itemDescription: String?
-
Optional: Product or UPC code for the item. Maximum 127 characters.
Declaration
Swift
public var productCode: String?
-
Optional: The URL to product information.
Declaration
Swift
public var url: URL?
-
Initialize a BTVenmoLineItem
Declaration
Swift
@objc(initWithQuantity:unitAmount:name:kind:) public init(quantity: Int, unitAmount: String, name: String, kind: BTVenmoLineItemKind)
Parameters
quantity
Number of units of the item purchased. Can include up to 4 decimal places. This value can’t be negative or zero.
unitAmount
Per-unit price of the item. Can include up to 4 decimal places. This value can’t be negative or zero.
name
Item name. Maximum 127 characters.
kind
Indicates whether the line item is a debit (sale) or credit (refund) to the customer.