Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shopify_iossdk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
shopify_iossdk
Commits
4196047f
Commit
4196047f
authored
Jun 06, 2016
by
Dima Bart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add typed collection to BUYCart.
parent
64d25a93
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
+14
-1
BUYCart.h
Mobile Buy SDK/Mobile Buy SDK/Models/Persistent/BUYCart.h
+8
-0
BUYCart.m
Mobile Buy SDK/Mobile Buy SDK/Models/Persistent/BUYCart.m
+6
-1
No files found.
Mobile Buy SDK/Mobile Buy SDK/Models/Persistent/BUYCart.h
View file @
4196047f
...
@@ -27,10 +27,18 @@
...
@@ -27,10 +27,18 @@
#import "_BUYCart.h"
#import "_BUYCart.h"
@class
BUYProductVariant
;
@class
BUYProductVariant
;
@class
BUYLineItem
;
@interface
BUYCart
:
_BUYCart
{}
@interface
BUYCart
:
_BUYCart
{}
/**
/**
* Array of BUYCartLineItem objects in the cart
*
* These are different from BUYLineItem objects. The line item objects do include the BUYProductVariant.
*/
-
(
nonnull
NSArray
<
BUYCartLineItem
*>
*
)
lineItemsArray
;
/**
* Returns true if the cart is acceptable to send to Shopify.
* Returns true if the cart is acceptable to send to Shopify.
*/
*/
-
(
BOOL
)
isValid
;
-
(
BOOL
)
isValid
;
...
...
Mobile Buy SDK/Mobile Buy SDK/Models/Persistent/BUYCart.m
View file @
4196047f
...
@@ -40,8 +40,13 @@
...
@@ -40,8 +40,13 @@
}
}
return
self
;
return
self
;
}
}
#endif
#endif
-
(
nonnull
NSArray
<
BUYCartLineItem
*>
*
)
lineItemsArray
{
return
self
.
lineItems
.
array
;
}
-
(
BOOL
)
isValid
-
(
BOOL
)
isValid
{
{
return
[
self
.
lineItems
count
]
>
0
;
return
[
self
.
lineItems
count
]
>
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment