BUYLineItem Class Reference
| Inherits from | BUYObject : NSObject |
|---|---|
| Conforms to | BUYSerializable |
| Declared in | BUYLineItem.h |
lineItemIdentifier
The unique line item identifier
@property (nonatomic, strong, readonly) NSString *lineItemIdentifierDeclared In
BUYLineItem.h
variantId
BUYProductVariant identifer. Keep a reference to a cart or products if you wish to display information for product variants in a BUYCheckout
@property (nonatomic, strong, readonly) NSNumber *variantIdDeclared In
BUYLineItem.h
productId
The BUYProduct product ID for the product in the line item
@property (nonatomic, strong, readonly) NSNumber *productIdDeclared In
BUYLineItem.h
quantity
The quantity of the BUYLineItem.
@property (nonatomic, strong) NSDecimalNumber *quantityDeclared In
BUYLineItem.h
grams
The weight of the BUYProductVariant in grams.
@property (nonatomic, readonly, strong) NSDecimalNumber *gramsDeclared In
BUYLineItem.h
price
The price of the BUYLineItem. Note: This price does not need to match the product variant.
@property (nonatomic, strong) NSDecimalNumber *priceDeclared In
BUYLineItem.h
compareAtPrice
The competitor’s prices for the same item.
@property (nonatomic, readonly, strong) NSDecimalNumber *compareAtPriceDeclared In
BUYLineItem.h
title
The title of the BUYLineItem. Note: The title does not need to match the product variant.
@property (nonatomic, copy) NSString *titleDeclared In
BUYLineItem.h
variantTitle
The title for the variant in the line item
@property (nonatomic, copy) NSString *variantTitleDeclared In
BUYLineItem.h
requiresShipping
YES if this BUYLineItem requires shipping. Note: This needs to match the product variant.
@property (nonatomic, strong) NSNumber *requiresShippingDeclared In
BUYLineItem.h
sku
The unique SKU for the line item
@property (nonatomic, readonly, copy) NSString *skuDeclared In
BUYLineItem.h
taxable
If the line item is taxable
@property (nonatomic, readonly, assign) BOOL taxableDeclared In
BUYLineItem.h
properties
Custom properties set on the line item
@property (nonatomic, copy) NSDictionary *propertiesDeclared In
BUYLineItem.h
fulfillmentService
Service provider who is doing the fulfillment
@property (nonatomic, readonly, copy) NSString *fulfillmentServiceDeclared In
BUYLineItem.h
– initWithVariant:
Initialize a BUYLineItem with an optional variant.
Note: We recommend setting up a BUYCart and using addVariant:, which handles incrementing
existing variants for line items in a cart
- (instancetype)initWithVariant:(BUYProductVariant *)variantParameters
variant |
A BUYProductVariant to initialize the BUYLineItem with |
|---|
Return Value
Returns an instance of BUYLineItem
Declared In
BUYLineItem.h