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
04e3630c
Commit
04e3630c
authored
May 26, 2016
by
Gabriel O'Flaherty-Chan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
map identifiers for consistency
parent
30aec93d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
94 deletions
+18
-94
contents
... Buy SDK.xcdatamodeld/Mobile Buy SDK.xcdatamodel/contents
+12
-12
_BUYCollection.h
...Buy SDK/Mobile Buy SDK/Models/Persistent/_BUYCollection.h
+3
-13
_BUYCollection.m
...Buy SDK/Mobile Buy SDK/Models/Persistent/_BUYCollection.m
+0
-28
_BUYProduct.h
...le Buy SDK/Mobile Buy SDK/Models/Persistent/_BUYProduct.h
+3
-13
_BUYProduct.m
...le Buy SDK/Mobile Buy SDK/Models/Persistent/_BUYProduct.m
+0
-28
No files found.
Mobile Buy SDK/Mobile Buy SDK/Models/Mobile Buy SDK.xcdatamodeld/Mobile Buy SDK.xcdatamodel/contents
View file @
04e3630c
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model
userDefinedModelVersionIdentifier=
""
type=
"com.apple.IDECoreDataModeler.DataModel"
documentVersion=
"1.0"
lastSavedToolsVersion=
"1017
1"
systemVersion=
"15E65
"
minimumToolsVersion=
"Xcode 7.0"
>
<model
userDefinedModelVersionIdentifier=
""
type=
"com.apple.IDECoreDataModeler.DataModel"
documentVersion=
"1.0"
lastSavedToolsVersion=
"1017
4"
systemVersion=
"15F34
"
minimumToolsVersion=
"Xcode 7.0"
>
<entity
name=
"Address"
representedClassName=
"BUYAddress"
syncable=
"YES"
>
<attribute
name=
"address1"
optional=
"YES"
attributeType=
"String"
syncable=
"YES"
>
<userInfo>
...
...
@@ -314,11 +314,6 @@
</userInfo>
</entity>
<entity
name=
"Collection"
representedClassName=
"BUYCollection"
syncable=
"YES"
>
<attribute
name=
"collectionId"
optional=
"YES"
attributeType=
"Integer 64"
defaultValueString=
"0"
syncable=
"YES"
>
<userInfo>
<entry
key=
"documentation"
value=
"The unique collection ID in the channel."
/>
</userInfo>
</attribute>
<attribute
name=
"createdAt"
optional=
"YES"
attributeType=
"Date"
syncable=
"YES"
/>
<attribute
name=
"handle"
optional=
"YES"
attributeType=
"String"
syncable=
"YES"
>
<userInfo>
...
...
@@ -332,7 +327,12 @@
<entry
key=
"JSONPropertyKey"
value=
"body_html"
/>
</userInfo>
</attribute>
<attribute
name=
"identifier"
optional=
"YES"
attributeType=
"Integer 64"
defaultValueString=
"0"
indexed=
"YES"
syncable=
"YES"
/>
<attribute
name=
"identifier"
optional=
"YES"
attributeType=
"Integer 64"
defaultValueString=
"0"
indexed=
"YES"
syncable=
"YES"
>
<userInfo>
<entry
key=
"documentation"
value=
"Maps to collection_id in the JSON"
/>
<entry
key=
"JSONPropertyKey"
value=
"collection_id"
/>
</userInfo>
</attribute>
<attribute
name=
"published"
optional=
"YES"
attributeType=
"Boolean"
syncable=
"YES"
>
<userInfo>
<entry
key=
"documentation"
value=
"The state of whether the collection is currently published or not."
/>
...
...
@@ -694,10 +694,10 @@
<entry
key=
"JSONPropertyKey"
value=
"body_html"
/>
</userInfo>
</attribute>
<attribute
name=
"identifier"
optional=
"YES"
attributeType=
"Integer 64"
defaultValueString=
"0"
indexed=
"YES"
syncable=
"YES"
/>
<attribute
name=
"productId"
optional=
"YES"
attributeType=
"Integer 64"
defaultValueString=
"0"
indexed=
"YES"
syncable=
"YES"
>
<attribute
name=
"identifier"
optional=
"YES"
attributeType=
"Integer 64"
defaultValueString=
"0"
indexed=
"YES"
syncable=
"YES"
>
<userInfo>
<entry
key=
"documentation"
value=
"The channel product ID."
/>
<entry
key=
"documentation"
value=
"Maps to product_id in the JSON"
/>
<entry
key=
"JSONPropertyKey"
value=
"product_id"
/>
</userInfo>
</attribute>
<attribute
name=
"productType"
optional=
"YES"
attributeType=
"String"
syncable=
"YES"
>
...
...
@@ -994,7 +994,7 @@
<element
name=
"CartLineItem"
positionX=
"-380"
positionY=
"558"
width=
"128"
height=
"90"
/>
<element
name=
"Checkout"
positionX=
"333"
positionY=
"442"
width=
"128"
height=
"630"
/>
<element
name=
"CheckoutAttribute"
positionX=
"-954"
positionY=
"594"
width=
"128"
height=
"90"
/>
<element
name=
"Collection"
positionX=
"-963"
positionY=
"772"
width=
"128"
height=
"
210
"
/>
<element
name=
"Collection"
positionX=
"-963"
positionY=
"772"
width=
"128"
height=
"
195
"
/>
<element
name=
"Customer"
positionX=
"106"
positionY=
"1263"
width=
"128"
height=
"330"
/>
<element
name=
"Discount"
positionX=
"126"
positionY=
"877"
width=
"128"
height=
"105"
/>
<element
name=
"GiftCard"
positionX=
"531"
positionY=
"862"
width=
"128"
height=
"135"
/>
...
...
@@ -1004,7 +1004,7 @@
<element
name=
"Option"
positionX=
"-576"
positionY=
"907"
width=
"128"
height=
"105"
/>
<element
name=
"OptionValue"
positionX=
"-387"
positionY=
"907"
width=
"128"
height=
"105"
/>
<element
name=
"Order"
positionX=
"682"
positionY=
"922"
width=
"128"
height=
"180"
/>
<element
name=
"Product"
positionX=
"-765"
positionY=
"712"
width=
"128"
height=
"3
15
"
/>
<element
name=
"Product"
positionX=
"-765"
positionY=
"712"
width=
"128"
height=
"3
00
"
/>
<element
name=
"ProductVariant"
positionX=
"-182"
positionY=
"787"
width=
"128"
height=
"240"
/>
<element
name=
"ShippingRate"
positionX=
"531"
positionY=
"1035"
width=
"128"
height=
"135"
/>
<element
name=
"Shop"
positionX=
"-279"
positionY=
"450"
width=
"128"
height=
"255"
/>
...
...
Mobile Buy SDK/Mobile Buy SDK/Models/Persistent/_BUYCollection.h
View file @
04e3630c
...
...
@@ -31,7 +31,6 @@
#import "BUYModelManager.h"
extern
const
struct
BUYCollectionAttributes
{
__unsafe_unretained
NSString
*
collectionId
;
__unsafe_unretained
NSString
*
createdAt
;
__unsafe_unretained
NSString
*
handle
;
__unsafe_unretained
NSString
*
htmlDescription
;
...
...
@@ -68,15 +67,6 @@ extern const struct BUYCollectionUserInfo {
@interface
_BUYCollection
:
BUYCachedObject
+
(
NSString
*
)
entityName
;
/**
* The unique collection ID in the channel.
*/
@property
(
nonatomic
,
strong
)
NSNumber
*
collectionId
;
@property
(
atomic
)
int64_t
collectionIdValue
;
-
(
int64_t
)
collectionIdValue
;
-
(
void
)
setCollectionIdValue
:(
int64_t
)
value_
;
@property
(
nonatomic
,
strong
)
NSDate
*
createdAt
;
/**
...
...
@@ -91,6 +81,9 @@ extern const struct BUYCollectionUserInfo {
*/
@property
(
nonatomic
,
strong
)
NSString
*
htmlDescription
;
/**
* Maps to collection_id in the JSON
*/
@property
(
nonatomic
,
strong
)
NSNumber
*
identifier
;
@property
(
atomic
)
int64_t
identifierValue
;
...
...
@@ -141,9 +134,6 @@ extern const struct BUYCollectionUserInfo {
@interface
_BUYCollection
(
CoreDataGeneratedPrimitiveAccessors
)
-
(
NSNumber
*
)
primitiveCollectionId
;
-
(
void
)
setPrimitiveCollectionId
:(
NSNumber
*
)
value
;
-
(
NSDate
*
)
primitiveCreatedAt
;
-
(
void
)
setPrimitiveCreatedAt
:(
NSDate
*
)
value
;
...
...
Mobile Buy SDK/Mobile Buy SDK/Models/Persistent/_BUYCollection.m
View file @
04e3630c
...
...
@@ -29,7 +29,6 @@
#import "_BUYCollection.h"
const
struct
BUYCollectionAttributes
BUYCollectionAttributes
=
{
.
collectionId
=
@"collectionId"
,
.
createdAt
=
@"createdAt"
,
.
handle
=
@"handle"
,
.
htmlDescription
=
@"htmlDescription"
,
...
...
@@ -58,11 +57,6 @@ const struct BUYCollectionUserInfo BUYCollectionUserInfo = {
+
(
NSSet
*
)
keyPathsForValuesAffectingValueForKey
:
(
NSString
*
)
key
{
NSSet
*
keyPaths
=
[
super
keyPathsForValuesAffectingValueForKey
:
key
];
if
([
key
isEqualToString
:
@"collectionIdValue"
])
{
NSSet
*
affectingKey
=
[
NSSet
setWithObject
:
@"collectionId"
];
keyPaths
=
[
keyPaths
setByAddingObjectsFromSet
:
affectingKey
];
return
keyPaths
;
}
if
([
key
isEqualToString
:
@"identifierValue"
])
{
NSSet
*
affectingKey
=
[
NSSet
setWithObject
:
@"identifier"
];
keyPaths
=
[
keyPaths
setByAddingObjectsFromSet
:
affectingKey
];
...
...
@@ -78,19 +72,6 @@ const struct BUYCollectionUserInfo BUYCollectionUserInfo = {
}
#if defined CORE_DATA_PERSISTENCE
-
(
NSNumber
*
)
collectionId
{
[
self
willAccessValueForKey
:
@"collectionId"
];
id
value
=
[
self
primitiveValueForKey
:
@"collectionId"
];
[
self
didAccessValueForKey
:
@"collectionId"
];
return
value
;
}
-
(
void
)
setCollectionId
:
(
NSNumber
*
)
value_
{
[
self
willChangeValueForKey
:
@"collectionId"
];
[
self
setPrimitiveValue
:
value_
forKey
:
@"collectionId"
];
[
self
didChangeValueForKey
:
@"collectionId"
];
}
-
(
NSDate
*
)
createdAt
{
[
self
willAccessValueForKey
:
@"createdAt"
];
id
value
=
[
self
primitiveValueForKey
:
@"createdAt"
];
...
...
@@ -197,15 +178,6 @@ const struct BUYCollectionUserInfo BUYCollectionUserInfo = {
#endif
-
(
int64_t
)
collectionIdValue
{
NSNumber
*
result
=
[
self
collectionId
];
return
[
result
longLongValue
];
}
-
(
void
)
setCollectionIdValue
:
(
int64_t
)
value_
{
[
self
setCollectionId
:
@
(
value_
)];
}
-
(
int64_t
)
identifierValue
{
NSNumber
*
result
=
[
self
identifier
];
return
[
result
longLongValue
];
...
...
Mobile Buy SDK/Mobile Buy SDK/Models/Persistent/_BUYProduct.h
View file @
04e3630c
...
...
@@ -36,7 +36,6 @@ extern const struct BUYProductAttributes {
__unsafe_unretained
NSString
*
handle
;
__unsafe_unretained
NSString
*
htmlDescription
;
__unsafe_unretained
NSString
*
identifier
;
__unsafe_unretained
NSString
*
productId
;
__unsafe_unretained
NSString
*
productType
;
__unsafe_unretained
NSString
*
publicURL
;
__unsafe_unretained
NSString
*
published
;
...
...
@@ -107,6 +106,9 @@ extern const struct BUYProductUserInfo {
*/
@property
(
nonatomic
,
strong
)
NSString
*
htmlDescription
;
/**
* Maps to product_id in the JSON
*/
@property
(
nonatomic
,
strong
)
NSNumber
*
identifier
;
@property
(
atomic
)
int64_t
identifierValue
;
...
...
@@ -114,15 +116,6 @@ extern const struct BUYProductUserInfo {
-
(
void
)
setIdentifierValue
:(
int64_t
)
value_
;
/**
* The channel product ID.
*/
@property
(
nonatomic
,
strong
)
NSNumber
*
productId
;
@property
(
atomic
)
int64_t
productIdValue
;
-
(
int64_t
)
productIdValue
;
-
(
void
)
setProductIdValue
:(
int64_t
)
value_
;
/**
* A categorization that a product can be tagged with, commonly used for filtering and searching.
*/
@property
(
nonatomic
,
strong
)
NSString
*
productType
;
...
...
@@ -254,9 +247,6 @@ extern const struct BUYProductUserInfo {
-
(
NSNumber
*
)
primitiveIdentifier
;
-
(
void
)
setPrimitiveIdentifier
:(
NSNumber
*
)
value
;
-
(
NSNumber
*
)
primitiveProductId
;
-
(
void
)
setPrimitiveProductId
:(
NSNumber
*
)
value
;
-
(
NSString
*
)
primitiveProductType
;
-
(
void
)
setPrimitiveProductType
:(
NSString
*
)
value
;
...
...
Mobile Buy SDK/Mobile Buy SDK/Models/Persistent/_BUYProduct.m
View file @
04e3630c
...
...
@@ -34,7 +34,6 @@ const struct BUYProductAttributes BUYProductAttributes = {
.
handle
=
@"handle"
,
.
htmlDescription
=
@"htmlDescription"
,
.
identifier
=
@"identifier"
,
.
productId
=
@"productId"
,
.
productType
=
@"productType"
,
.
publicURL
=
@"publicURL"
,
.
published
=
@"published"
,
...
...
@@ -75,11 +74,6 @@ const struct BUYProductUserInfo BUYProductUserInfo = {
keyPaths
=
[
keyPaths
setByAddingObjectsFromSet
:
affectingKey
];
return
keyPaths
;
}
if
([
key
isEqualToString
:
@"productIdValue"
])
{
NSSet
*
affectingKey
=
[
NSSet
setWithObject
:
@"productId"
];
keyPaths
=
[
keyPaths
setByAddingObjectsFromSet
:
affectingKey
];
return
keyPaths
;
}
if
([
key
isEqualToString
:
@"publishedValue"
])
{
NSSet
*
affectingKey
=
[
NSSet
setWithObject
:
@"published"
];
keyPaths
=
[
keyPaths
setByAddingObjectsFromSet
:
affectingKey
];
...
...
@@ -155,19 +149,6 @@ const struct BUYProductUserInfo BUYProductUserInfo = {
[
self
didChangeValueForKey
:
@"identifier"
];
}
-
(
NSNumber
*
)
productId
{
[
self
willAccessValueForKey
:
@"productId"
];
id
value
=
[
self
primitiveValueForKey
:
@"productId"
];
[
self
didAccessValueForKey
:
@"productId"
];
return
value
;
}
-
(
void
)
setProductId
:
(
NSNumber
*
)
value_
{
[
self
willChangeValueForKey
:
@"productId"
];
[
self
setPrimitiveValue
:
value_
forKey
:
@"productId"
];
[
self
didChangeValueForKey
:
@"productId"
];
}
-
(
NSString
*
)
productType
{
[
self
willAccessValueForKey
:
@"productType"
];
id
value
=
[
self
primitiveValueForKey
:
@"productType"
];
...
...
@@ -292,15 +273,6 @@ const struct BUYProductUserInfo BUYProductUserInfo = {
[
self
setIdentifier
:
@
(
value_
)];
}
-
(
int64_t
)
productIdValue
{
NSNumber
*
result
=
[
self
productId
];
return
[
result
longLongValue
];
}
-
(
void
)
setProductIdValue
:
(
int64_t
)
value_
{
[
self
setProductId
:
@
(
value_
)];
}
-
(
BOOL
)
publishedValue
{
NSNumber
*
result
=
[
self
published
];
return
[
result
boolValue
];
...
...
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