Commit d4d2ed9a by Jonathan Baker

Add generics to BUYCheckout.

parent ee766b7f
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
@class BUYOrder; @class BUYOrder;
@class BUYShippingRate; @class BUYShippingRate;
@class BUYTaxLine; @class BUYTaxLine;
@class BUYLineItem;
@class BUYGiftCard;
/** /**
* The checkout object. This is the main object that you will interact with when creating orders on Shopify. * The checkout object. This is the main object that you will interact with when creating orders on Shopify.
...@@ -125,13 +127,12 @@ ...@@ -125,13 +127,12 @@
* Note: These are different from BUYCartLineItems in that the line item * Note: These are different from BUYCartLineItems in that the line item
* objects do not include the BUYProductVariant * objects do not include the BUYProductVariant
*/ */
@property (nonatomic, readonly, copy) NSArray *lineItems; @property (nonatomic, readonly, copy) NSArray<__kindof BUYLineItem *> *lineItems;
/** /**
* Array of tax line objects on the checkout * Array of tax line objects on the checkout
*/ */
@property (nonatomic, readonly, copy) NSArray *taxLines; @property (nonatomic, readonly, copy) NSArray<BUYTaxLine *> *taxLines;
/** /**
* The mailing address associated with the payment method * The mailing address associated with the payment method
*/ */
...@@ -162,7 +163,7 @@ ...@@ -162,7 +163,7 @@
/** /**
* An array of BUYGiftCard objects applied to the checkout * An array of BUYGiftCard objects applied to the checkout
*/ */
@property (nonatomic, strong, readonly) NSArray *giftCards; @property (nonatomic, strong, readonly) NSArray<BUYGiftCard *> *giftCards;
/** /**
* Channel ID where the checkout was created * Channel ID where the checkout was created
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment