Commit 9ebe1115 by lee

u

parent e5deeca9
...@@ -282,7 +282,7 @@ ...@@ -282,7 +282,7 @@
2AF52A831A700B0A0087DB2C /* BUYShop.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = BUYShop.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; 2AF52A831A700B0A0087DB2C /* BUYShop.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = BUYShop.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
2AF52A841A700B0A0087DB2C /* BUYShop.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = BUYShop.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; }; 2AF52A841A700B0A0087DB2C /* BUYShop.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = BUYShop.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
2AF52A931A7010B20087DB2C /* BUYObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = BUYObject.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; 2AF52A931A7010B20087DB2C /* BUYObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = BUYObject.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
2AF52A941A7010B20087DB2C /* BUYObject.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = BUYObject.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; 2AF52A941A7010B20087DB2C /* BUYObject.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = BUYObject.m; sourceTree = "<group>"; };
42488B321AB8761A005F21A9 /* BUYGiftCard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BUYGiftCard.h; sourceTree = "<group>"; }; 42488B321AB8761A005F21A9 /* BUYGiftCard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BUYGiftCard.h; sourceTree = "<group>"; };
42488B331AB8761A005F21A9 /* BUYGiftCard.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BUYGiftCard.m; sourceTree = "<group>"; }; 42488B331AB8761A005F21A9 /* BUYGiftCard.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BUYGiftCard.m; sourceTree = "<group>"; };
841ADDEB1CB6C942000004B0 /* NSArray+BUYAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSArray+BUYAdditions.h"; sourceTree = "<group>"; }; 841ADDEB1CB6C942000004B0 /* NSArray+BUYAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSArray+BUYAdditions.h"; sourceTree = "<group>"; };
......
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="10174" systemVersion="15F34" minimumToolsVersion="Xcode 7.0"> <model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="12141" systemVersion="16E195" minimumToolsVersion="Xcode 7.0" sourceLanguage="Objective-C" userDefinedModelVersionIdentifier="">
<entity name="Address" representedClassName="BUYAddress" syncable="YES"> <entity name="Address" representedClassName="BUYAddress" syncable="YES">
<attribute name="address1" optional="YES" attributeType="String" syncable="YES"> <attribute name="address1" optional="YES" attributeType="String" syncable="YES">
<userInfo> <userInfo>
...@@ -36,12 +36,12 @@ ...@@ -36,12 +36,12 @@
<entry key="documentation" value="The first name of the person associated with the payment method."/> <entry key="documentation" value="The first name of the person associated with the payment method."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="identifier" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"> <attribute name="identifier" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="Unique identifier for the address"/> <entry key="documentation" value="Unique identifier for the address"/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="isDefault" optional="YES" attributeType="Boolean" syncable="YES"> <attribute name="isDefault" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="discussion" value="Maps to &quot;default&quot; key in JSON."/> <entry key="discussion" value="Maps to &quot;default&quot; key in JSON."/>
<entry key="documentation" value="Whether the address is the owning customer's default address."/> <entry key="documentation" value="Whether the address is the owning customer's default address."/>
...@@ -123,13 +123,13 @@ ...@@ -123,13 +123,13 @@
<entry key="documentation" value="Channel ID where the checkout was created."/> <entry key="documentation" value="Channel ID where the checkout was created."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="createdAt" optional="YES" attributeType="Date" syncable="YES"/> <attribute name="createdAt" optional="YES" attributeType="Date" usesScalarValueType="NO" syncable="YES"/>
<attribute name="currency" optional="YES" attributeType="String" syncable="YES"> <attribute name="currency" optional="YES" attributeType="String" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="The three letter code (ISO 4217) for the currency used for the payment."/> <entry key="documentation" value="The three letter code (ISO 4217) for the currency used for the payment."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="customerId" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"> <attribute name="customerId" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="Customer ID associated with the checkout."/> <entry key="documentation" value="Customer ID associated with the checkout."/>
</userInfo> </userInfo>
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
<entry key="documentation" value="The customer's email address."/> <entry key="documentation" value="The customer's email address."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="includesTaxes" optional="YES" attributeType="Boolean" syncable="YES"> <attribute name="includesTaxes" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="discussion" value="Maps to &quot;taxes_included&quot; in JSON."/> <entry key="discussion" value="Maps to &quot;taxes_included&quot; in JSON."/>
<entry key="documentation" value="States whether or not the taxes are included in the price."/> <entry key="documentation" value="States whether or not the taxes are included in the price."/>
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
<entry key="documentation" value="An optional note attached to the order."/> <entry key="documentation" value="An optional note attached to the order."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="partialAddresses" optional="YES" attributeType="Boolean" syncable="YES"> <attribute name="partialAddresses" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="discussion" value="Suitable to retrieve shipping rates."/> <entry key="discussion" value="Suitable to retrieve shipping rates."/>
<entry key="documentation" value="Informs server that the shipping address is partially filled with address info provided by PKPaymentAuthorizationViewController. Should only ever be YES. Setting to NO will throw an exception."/> <entry key="documentation" value="Informs server that the shipping address is partially filled with address info provided by PKPaymentAuthorizationViewController. Should only ever be YES. Setting to NO will throw an exception."/>
...@@ -188,18 +188,18 @@ ...@@ -188,18 +188,18 @@
<entry key="documentation" value="The website URL for the refund policy for the checkout."/> <entry key="documentation" value="The website URL for the refund policy for the checkout."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="requiresShipping" optional="YES" attributeType="Boolean" defaultValueString="NO" syncable="YES"> <attribute name="requiresShipping" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="States whether or not the fulfillment requires shipping"/> <entry key="documentation" value="States whether or not the fulfillment requires shipping"/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="reservationTime" optional="YES" attributeType="Integer 32" defaultValueString="0.0" syncable="YES"> <attribute name="reservationTime" optional="YES" attributeType="Integer 32" defaultValueString="0.0" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="discussion" value="Setting to zero and updating the checkout will release inventory reserved by the checkout (when product inventory is not infinite). 300 seconds is default and maximum. `reservationTime` is reset to @300 on every `updateCheckout:completion:` call. This can also be done with `removeProductReservationsFromCheckout:completion` found in the BUYClient."/> <entry key="discussion" value="Setting to zero and updating the checkout will release inventory reserved by the checkout (when product inventory is not infinite). 300 seconds is default and maximum. `reservationTime` is reset to @300 on every `updateCheckout:completion:` call. This can also be done with `removeProductReservationsFromCheckout:completion` found in the BUYClient."/>
<entry key="documentation" value="Reservation time on the checkout in seconds."/> <entry key="documentation" value="Reservation time on the checkout in seconds."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="reservationTimeLeft" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"> <attribute name="reservationTimeLeft" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="Reservation time remaining on the checkout in seconds."/> <entry key="documentation" value="Reservation time remaining on the checkout in seconds."/>
</userInfo> </userInfo>
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
<entry key="documentation" value="The sum of all the taxes applied to the line items in the order."/> <entry key="documentation" value="The sum of all the taxes applied to the line items in the order."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="updatedAt" optional="YES" attributeType="Date" syncable="YES"/> <attribute name="updatedAt" optional="YES" attributeType="Date" usesScalarValueType="NO" syncable="YES"/>
<attribute name="webCheckoutURL" optional="YES" attributeType="Transformable" syncable="YES"> <attribute name="webCheckoutURL" optional="YES" attributeType="Transformable" syncable="YES">
<userInfo> <userInfo>
<entry key="attributeValueClassName" value="NSURL"/> <entry key="attributeValueClassName" value="NSURL"/>
...@@ -321,7 +321,7 @@ ...@@ -321,7 +321,7 @@
</userInfo> </userInfo>
</entity> </entity>
<entity name="Collection" representedClassName="BUYCollection" syncable="YES"> <entity name="Collection" representedClassName="BUYCollection" syncable="YES">
<attribute name="createdAt" optional="YES" attributeType="Date" syncable="YES"/> <attribute name="createdAt" optional="YES" attributeType="Date" usesScalarValueType="NO" syncable="YES"/>
<attribute name="handle" optional="YES" attributeType="String" syncable="YES"> <attribute name="handle" optional="YES" attributeType="String" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="The handle of the collection."/> <entry key="documentation" value="The handle of the collection."/>
...@@ -334,18 +334,18 @@ ...@@ -334,18 +334,18 @@
<entry key="JSONPropertyKey" value="body_html"/> <entry key="JSONPropertyKey" value="body_html"/>
</userInfo> </userInfo>
</attribute> </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" usesScalarValueType="NO" indexed="YES" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="Maps to collection_id in the JSON"/> <entry key="documentation" value="Maps to collection_id in the JSON"/>
<entry key="JSONPropertyKey" value="collection_id"/> <entry key="JSONPropertyKey" value="collection_id"/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="published" optional="YES" attributeType="Boolean" syncable="YES"> <attribute name="published" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="The state of whether the collection is currently published or not."/> <entry key="documentation" value="The state of whether the collection is currently published or not."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="publishedAt" optional="YES" attributeType="Date" syncable="YES"> <attribute name="publishedAt" optional="YES" attributeType="Date" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="The publish date for the collection."/> <entry key="documentation" value="The publish date for the collection."/>
</userInfo> </userInfo>
...@@ -355,7 +355,7 @@ ...@@ -355,7 +355,7 @@
<entry key="documentation" value="The title of the collection."/> <entry key="documentation" value="The title of the collection."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="updatedAt" optional="YES" attributeType="Date" syncable="YES"/> <attribute name="updatedAt" optional="YES" attributeType="Date" usesScalarValueType="NO" syncable="YES"/>
<relationship name="image" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="ImageLink" inverseName="collection" inverseEntity="ImageLink" syncable="YES"/> <relationship name="image" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="ImageLink" inverseName="collection" inverseEntity="ImageLink" syncable="YES"/>
<relationship name="products" optional="YES" toMany="YES" deletionRule="Nullify" ordered="YES" destinationEntity="Product" inverseName="collections" inverseEntity="Product" syncable="YES"> <relationship name="products" optional="YES" toMany="YES" deletionRule="Nullify" ordered="YES" destinationEntity="Product" inverseName="collections" inverseEntity="Product" syncable="YES">
<userInfo> <userInfo>
...@@ -367,23 +367,23 @@ ...@@ -367,23 +367,23 @@
</userInfo> </userInfo>
</entity> </entity>
<entity name="Customer" representedClassName="BUYCustomer" syncable="YES"> <entity name="Customer" representedClassName="BUYCustomer" syncable="YES">
<attribute name="acceptsMarketing" optional="YES" attributeType="Boolean" syncable="YES"/> <attribute name="acceptsMarketing" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES"/>
<attribute name="createdAt" optional="YES" attributeType="Date" syncable="YES"/> <attribute name="createdAt" optional="YES" attributeType="Date" usesScalarValueType="NO" syncable="YES"/>
<attribute name="customerState" optional="YES" attributeType="Boolean" syncable="YES"/> <attribute name="customerState" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES"/>
<attribute name="email" optional="YES" attributeType="String" syncable="YES"/> <attribute name="email" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="firstName" optional="YES" attributeType="String" syncable="YES"/> <attribute name="firstName" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="identifier" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/> <attribute name="identifier" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="NO" syncable="YES"/>
<attribute name="lastName" optional="YES" attributeType="String" syncable="YES"/> <attribute name="lastName" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="lastOrderID" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/> <attribute name="lastOrderID" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="NO" syncable="YES"/>
<attribute name="lastOrderName" optional="YES" attributeType="String" syncable="YES"/> <attribute name="lastOrderName" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="multipassIdentifier" optional="YES" attributeType="String" syncable="YES"/> <attribute name="multipassIdentifier" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="note" optional="YES" attributeType="String" syncable="YES"/> <attribute name="note" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="ordersCount" optional="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"/> <attribute name="ordersCount" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="NO" syncable="YES"/>
<attribute name="tags" optional="YES" attributeType="String" syncable="YES"/> <attribute name="tags" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="taxExempt" optional="YES" attributeType="Boolean" syncable="YES"/> <attribute name="taxExempt" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES"/>
<attribute name="totalSpent" optional="YES" attributeType="Decimal" defaultValueString="0.0" syncable="YES"/> <attribute name="totalSpent" optional="YES" attributeType="Decimal" defaultValueString="0.0" syncable="YES"/>
<attribute name="updatedAt" optional="YES" attributeType="Date" syncable="YES"/> <attribute name="updatedAt" optional="YES" attributeType="Date" usesScalarValueType="NO" syncable="YES"/>
<attribute name="verifiedEmail" optional="YES" attributeType="Boolean" syncable="YES"/> <attribute name="verifiedEmail" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES"/>
<relationship name="addresses" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="Address" inverseName="customer" inverseEntity="Address" syncable="YES"/> <relationship name="addresses" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="Address" inverseName="customer" inverseEntity="Address" syncable="YES"/>
<relationship name="defaultAddress" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Address" syncable="YES"/> <relationship name="defaultAddress" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Address" syncable="YES"/>
</entity> </entity>
...@@ -393,7 +393,7 @@ ...@@ -393,7 +393,7 @@
<entry key="documentation" value="The amount that is deducted from `paymentDue` on BUYCheckout."/> <entry key="documentation" value="The amount that is deducted from `paymentDue` on BUYCheckout."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="applicable" optional="YES" attributeType="Boolean" syncable="YES"> <attribute name="applicable" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="Whether this discount code can be applied to the checkout."/> <entry key="documentation" value="Whether this discount code can be applied to the checkout."/>
</userInfo> </userInfo>
...@@ -429,7 +429,7 @@ ...@@ -429,7 +429,7 @@
<entry key="documentation" value="The gift card code."/> <entry key="documentation" value="The gift card code."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="identifier" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/> <attribute name="identifier" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="NO" syncable="YES"/>
<attribute name="lastCharacters" optional="YES" attributeType="String" syncable="YES"> <attribute name="lastCharacters" optional="YES" attributeType="String" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="The last characters of the applied gift card code."/> <entry key="documentation" value="The last characters of the applied gift card code."/>
...@@ -445,9 +445,9 @@ ...@@ -445,9 +445,9 @@
</userInfo> </userInfo>
</entity> </entity>
<entity name="ImageLink" representedClassName="BUYImageLink" syncable="YES"> <entity name="ImageLink" representedClassName="BUYImageLink" syncable="YES">
<attribute name="createdAt" optional="YES" attributeType="Date" syncable="YES"/> <attribute name="createdAt" optional="YES" attributeType="Date" usesScalarValueType="NO" syncable="YES"/>
<attribute name="identifier" optional="YES" attributeType="Integer 64" defaultValueString="0" indexed="YES" syncable="YES"/> <attribute name="identifier" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="NO" indexed="YES" syncable="YES"/>
<attribute name="position" optional="YES" attributeType="Integer 32" defaultValueString="0" syncable="YES"> <attribute name="position" optional="YES" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="The position of the image for the product."/> <entry key="documentation" value="The position of the image for the product."/>
</userInfo> </userInfo>
...@@ -460,7 +460,7 @@ ...@@ -460,7 +460,7 @@
<entry key="JSONPropertyKey" value="src"/> <entry key="JSONPropertyKey" value="src"/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="updatedAt" optional="YES" attributeType="Date" syncable="YES"/> <attribute name="updatedAt" optional="YES" attributeType="Date" usesScalarValueType="NO" syncable="YES"/>
<attribute name="variantIds" optional="YES" attributeType="Transformable" syncable="YES"> <attribute name="variantIds" optional="YES" attributeType="Transformable" syncable="YES">
<userInfo> <userInfo>
<entry key="attributeValueClassName" value="NSArray"/> <entry key="attributeValueClassName" value="NSArray"/>
...@@ -484,7 +484,7 @@ ...@@ -484,7 +484,7 @@
<entry key="documentation" value="The competitor's prices for the same item."/> <entry key="documentation" value="The competitor's prices for the same item."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="fulfilled" optional="YES" attributeType="Boolean" syncable="YES"/> <attribute name="fulfilled" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES"/>
<attribute name="fulfillmentService" optional="YES" attributeType="String" syncable="YES"> <attribute name="fulfillmentService" optional="YES" attributeType="String" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="Service provider who is doing the fulfillment."/> <entry key="documentation" value="Service provider who is doing the fulfillment."/>
...@@ -507,7 +507,7 @@ ...@@ -507,7 +507,7 @@
<entry key="documentation" value="The price of the BUYLineItem."/> <entry key="documentation" value="The price of the BUYLineItem."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="productId" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/> <attribute name="productId" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="NO" syncable="YES"/>
<attribute name="properties" optional="YES" attributeType="Transformable" syncable="YES"> <attribute name="properties" optional="YES" attributeType="Transformable" syncable="YES">
<userInfo> <userInfo>
<entry key="attributeValueClassName" value="NSDictionary"/> <entry key="attributeValueClassName" value="NSDictionary"/>
...@@ -519,7 +519,7 @@ ...@@ -519,7 +519,7 @@
<entry key="documentation" value="The quantity of the BUYLineItem."/> <entry key="documentation" value="The quantity of the BUYLineItem."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="requiresShipping" optional="YES" attributeType="Boolean" syncable="YES"> <attribute name="requiresShipping" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="discussion" value="This needs to match the product variant."/> <entry key="discussion" value="This needs to match the product variant."/>
<entry key="documentation" value="Whether this BUYLineItem requires shipping."/> <entry key="documentation" value="Whether this BUYLineItem requires shipping."/>
...@@ -530,7 +530,7 @@ ...@@ -530,7 +530,7 @@
<entry key="documentation" value="The unique SKU for the line item."/> <entry key="documentation" value="The unique SKU for the line item."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="taxable" optional="YES" attributeType="Boolean" syncable="YES"> <attribute name="taxable" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="Whether the line item is taxable."/> <entry key="documentation" value="Whether the line item is taxable."/>
</userInfo> </userInfo>
...@@ -541,7 +541,7 @@ ...@@ -541,7 +541,7 @@
<entry key="documentation" value="The title of the BUYLineItem."/> <entry key="documentation" value="The title of the BUYLineItem."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="variantId" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"> <attribute name="variantId" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="discussion" value="Keep a reference to a cart or products if you wish to display information for product variants in a BUYCheckout."/> <entry key="discussion" value="Keep a reference to a cart or products if you wish to display information for product variants in a BUYCheckout."/>
<entry key="documentation" value="BUYProductVariant identifer."/> <entry key="documentation" value="BUYProductVariant identifer."/>
...@@ -563,12 +563,12 @@ ...@@ -563,12 +563,12 @@
</userInfo> </userInfo>
</entity> </entity>
<entity name="MaskedCreditCard" representedClassName="BUYMaskedCreditCard" syncable="YES"> <entity name="MaskedCreditCard" representedClassName="BUYMaskedCreditCard" syncable="YES">
<attribute name="expiryMonth" optional="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"> <attribute name="expiryMonth" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="The two digits representing the month the card expires."/> <entry key="documentation" value="The two digits representing the month the card expires."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="expiryYear" optional="YES" attributeType="Integer 32" defaultValueString="0" syncable="YES"> <attribute name="expiryYear" optional="YES" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="The year the card expires."/> <entry key="documentation" value="The year the card expires."/>
</userInfo> </userInfo>
...@@ -604,14 +604,14 @@ ...@@ -604,14 +604,14 @@
</userInfo> </userInfo>
</entity> </entity>
<entity name="Option" representedClassName="BUYOption" syncable="YES"> <entity name="Option" representedClassName="BUYOption" syncable="YES">
<attribute name="identifier" optional="YES" attributeType="Integer 64" defaultValueString="0" indexed="YES" syncable="YES"/> <attribute name="identifier" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="NO" indexed="YES" syncable="YES"/>
<attribute name="name" optional="YES" attributeType="String" maxValueString="255" syncable="YES"> <attribute name="name" optional="YES" attributeType="String" maxValueString="255" syncable="YES">
<userInfo> <userInfo>
<entry key="discussion" value="255 characters limit each."/> <entry key="discussion" value="255 characters limit each."/>
<entry key="documentation" value="Custom product property names like &quot;Size&quot;, &quot;Color&quot;, and &quot;Material&quot;."/> <entry key="documentation" value="Custom product property names like &quot;Size&quot;, &quot;Color&quot;, and &quot;Material&quot;."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="position" optional="YES" attributeType="Integer 32" defaultValueString="0" syncable="YES"> <attribute name="position" optional="YES" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="The order in which the option should optionally appear."/> <entry key="documentation" value="The order in which the option should optionally appear."/>
</userInfo> </userInfo>
...@@ -633,7 +633,7 @@ ...@@ -633,7 +633,7 @@
<entry key="documentation" value="Custom product property names like &quot;Size&quot;, &quot;Color&quot;, and &quot;Material&quot;."/> <entry key="documentation" value="Custom product property names like &quot;Size&quot;, &quot;Color&quot;, and &quot;Material&quot;."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="optionId" optional="YES" attributeType="Integer 64" defaultValueString="0" indexed="YES" syncable="YES"/> <attribute name="optionId" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="NO" indexed="YES" syncable="YES"/>
<attribute name="value" optional="YES" attributeType="String" indexed="YES" syncable="YES"> <attribute name="value" optional="YES" attributeType="String" indexed="YES" syncable="YES">
<userInfo> <userInfo>
<entry key="discussion" value="For example, &quot;Small&quot;, &quot;Medium&quot; or &quot;Large&quot;."/> <entry key="discussion" value="For example, &quot;Small&quot;, &quot;Medium&quot; or &quot;Large&quot;."/>
...@@ -647,7 +647,8 @@ ...@@ -647,7 +647,8 @@
</relationship> </relationship>
</entity> </entity>
<entity name="Order" representedClassName="BUYOrder" syncable="YES"> <entity name="Order" representedClassName="BUYOrder" syncable="YES">
<attribute name="identifier" optional="YES" attributeType="Integer 64" defaultValueString="0" indexed="YES" syncable="YES"/> <attribute name="cancelled" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES"/>
<attribute name="identifier" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="NO" indexed="YES" syncable="YES"/>
<attribute name="name" optional="YES" attributeType="String" syncable="YES"> <attribute name="name" optional="YES" attributeType="String" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="The customer's order name as represented by a number."/> <entry key="documentation" value="The customer's order name as represented by a number."/>
...@@ -659,7 +660,7 @@ ...@@ -659,7 +660,7 @@
<entry key="documentation" value="URL for the website showing the order status."/> <entry key="documentation" value="URL for the website showing the order status."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="processedAt" optional="YES" attributeType="Date" syncable="YES"/> <attribute name="processedAt" optional="YES" attributeType="Date" usesScalarValueType="NO" syncable="YES"/>
<attribute name="statusURL" optional="YES" attributeType="Transformable" syncable="YES"> <attribute name="statusURL" optional="YES" attributeType="Transformable" syncable="YES">
<userInfo> <userInfo>
<entry key="attributeValueClassName" value="NSURL"/> <entry key="attributeValueClassName" value="NSURL"/>
...@@ -679,12 +680,12 @@ ...@@ -679,12 +680,12 @@
</userInfo> </userInfo>
</entity> </entity>
<entity name="Product" representedClassName="BUYProduct" syncable="YES"> <entity name="Product" representedClassName="BUYProduct" syncable="YES">
<attribute name="available" optional="YES" attributeType="Boolean" syncable="YES"> <attribute name="available" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="If the product is in stock. See each variant for their specific availability."/> <entry key="documentation" value="If the product is in stock. See each variant for their specific availability."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="createdAt" optional="YES" attributeType="Date" syncable="YES"> <attribute name="createdAt" optional="YES" attributeType="Date" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="The creation date for a product."/> <entry key="documentation" value="The creation date for a product."/>
</userInfo> </userInfo>
...@@ -701,7 +702,7 @@ ...@@ -701,7 +702,7 @@
<entry key="JSONPropertyKey" value="body_html"/> <entry key="JSONPropertyKey" value="body_html"/>
</userInfo> </userInfo>
</attribute> </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" usesScalarValueType="NO" indexed="YES" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="Maps to product_id in the JSON"/> <entry key="documentation" value="Maps to product_id in the JSON"/>
<entry key="JSONPropertyKey" value="product_id"/> <entry key="JSONPropertyKey" value="product_id"/>
...@@ -712,12 +713,12 @@ ...@@ -712,12 +713,12 @@
<entry key="documentation" value="A categorization that a product can be tagged with, commonly used for filtering and searching."/> <entry key="documentation" value="A categorization that a product can be tagged with, commonly used for filtering and searching."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="published" optional="YES" attributeType="Boolean" syncable="YES"> <attribute name="published" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="The product is published on the current sales channel."/> <entry key="documentation" value="The product is published on the current sales channel."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="publishedAt" optional="YES" attributeType="Date" syncable="YES"> <attribute name="publishedAt" optional="YES" attributeType="Date" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="The publish date for a product."/> <entry key="documentation" value="The publish date for a product."/>
</userInfo> </userInfo>
...@@ -736,7 +737,7 @@ ...@@ -736,7 +737,7 @@
<entry key="documentation" value="The name of the product."/> <entry key="documentation" value="The name of the product."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="updatedAt" optional="YES" attributeType="Date" syncable="YES"> <attribute name="updatedAt" optional="YES" attributeType="Date" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="The updated date for a product."/> <entry key="documentation" value="The updated date for a product."/>
</userInfo> </userInfo>
...@@ -774,7 +775,7 @@ ...@@ -774,7 +775,7 @@
</userInfo> </userInfo>
</entity> </entity>
<entity name="ProductVariant" representedClassName="BUYProductVariant" syncable="YES"> <entity name="ProductVariant" representedClassName="BUYProductVariant" syncable="YES">
<attribute name="available" optional="YES" attributeType="Boolean" syncable="YES"> <attribute name="available" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="If the variant is in stock."/> <entry key="documentation" value="If the variant is in stock."/>
</userInfo> </userInfo>
...@@ -789,8 +790,8 @@ ...@@ -789,8 +790,8 @@
<entry key="documentation" value="The weight of the BUYProductVariant in grams."/> <entry key="documentation" value="The weight of the BUYProductVariant in grams."/>
</userInfo> </userInfo>
</attribute> </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" usesScalarValueType="NO" indexed="YES" syncable="YES"/>
<attribute name="position" optional="YES" attributeType="Integer 32" defaultValueString="0" syncable="YES"> <attribute name="position" optional="YES" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="The order of the BUYProductVariant in the list of product variants. 1 is the first position."/> <entry key="documentation" value="The order of the BUYProductVariant in the list of product variants. 1 is the first position."/>
</userInfo> </userInfo>
...@@ -800,7 +801,7 @@ ...@@ -800,7 +801,7 @@
<entry key="documentation" value="The price of the BUYProductVariant."/> <entry key="documentation" value="The price of the BUYProductVariant."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="requiresShipping" optional="YES" attributeType="Boolean" syncable="YES"> <attribute name="requiresShipping" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="Whether or not a customer needs to provide a shipping address when placing an order for this BUYProductVariant."/> <entry key="documentation" value="Whether or not a customer needs to provide a shipping address when placing an order for this BUYProductVariant."/>
</userInfo> </userInfo>
...@@ -810,7 +811,7 @@ ...@@ -810,7 +811,7 @@
<entry key="documentation" value="A unique identifier for the product in the shop."/> <entry key="documentation" value="A unique identifier for the product in the shop."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="taxable" optional="YES" attributeType="Boolean" syncable="YES"> <attribute name="taxable" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="Specifies whether or not a tax is charged when the BUYProductVariant is sold."/> <entry key="documentation" value="Specifies whether or not a tax is charged when the BUYProductVariant is sold."/>
</userInfo> </userInfo>
...@@ -844,7 +845,7 @@ ...@@ -844,7 +845,7 @@
<entry key="JSONValueTransformer" value="BUYDeliveryRange"/> <entry key="JSONValueTransformer" value="BUYDeliveryRange"/>
</userInfo> </userInfo>
</attribute> </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" usesScalarValueType="NO" indexed="YES" syncable="YES"/>
<attribute name="price" optional="YES" attributeType="Decimal" defaultValueString="0.0" syncable="YES"> <attribute name="price" optional="YES" attributeType="Decimal" defaultValueString="0.0" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="The price of this shipping method."/> <entry key="documentation" value="The price of this shipping method."/>
...@@ -888,7 +889,7 @@ ...@@ -888,7 +889,7 @@
<entry key="documentation" value="The shop's domain."/> <entry key="documentation" value="The shop's domain."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="identifier" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/> <attribute name="identifier" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="NO" syncable="YES"/>
<attribute name="moneyFormat" optional="YES" attributeType="String" syncable="YES"> <attribute name="moneyFormat" optional="YES" attributeType="String" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="A string representing the way currency is formatted when the currency isn't specified."/> <entry key="documentation" value="A string representing the way currency is formatted when the currency isn't specified."/>
...@@ -912,8 +913,8 @@ ...@@ -912,8 +913,8 @@
<entry key="documentation" value="The shop's normalized province or state name."/> <entry key="documentation" value="The shop's normalized province or state name."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="publishedCollectionsCount" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/> <attribute name="publishedCollectionsCount" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="NO" syncable="YES"/>
<attribute name="publishedProductsCount" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/> <attribute name="publishedProductsCount" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="NO" syncable="YES"/>
<attribute name="shipsToCountries" optional="YES" attributeType="Transformable" syncable="YES"> <attribute name="shipsToCountries" optional="YES" attributeType="Transformable" syncable="YES">
<userInfo> <userInfo>
<entry key="attributeValueClassName" value="NSArray"/> <entry key="attributeValueClassName" value="NSArray"/>
...@@ -938,7 +939,7 @@ ...@@ -938,7 +939,7 @@
</userInfo> </userInfo>
</entity> </entity>
<entity name="TaxLine" representedClassName="BUYTaxLine" syncable="YES"> <entity name="TaxLine" representedClassName="BUYTaxLine" syncable="YES">
<attribute name="createdAt" optional="YES" attributeType="Date" syncable="YES"/> <attribute name="createdAt" optional="YES" attributeType="Date" usesScalarValueType="NO" syncable="YES"/>
<attribute name="price" optional="YES" attributeType="Decimal" defaultValueString="0.0" syncable="YES"> <attribute name="price" optional="YES" attributeType="Decimal" defaultValueString="0.0" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="The amount of tax to be charged."/> <entry key="documentation" value="The amount of tax to be charged."/>
...@@ -954,7 +955,7 @@ ...@@ -954,7 +955,7 @@
<entry key="documentation" value="The name of the tax."/> <entry key="documentation" value="The name of the tax."/>
</userInfo> </userInfo>
</attribute> </attribute>
<attribute name="updatedAt" optional="YES" attributeType="Date" syncable="YES"/> <attribute name="updatedAt" optional="YES" attributeType="Date" usesScalarValueType="NO" syncable="YES"/>
<relationship name="checkout" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Checkout" inverseName="taxLines" inverseEntity="Checkout" syncable="YES"> <relationship name="checkout" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Checkout" inverseName="taxLines" inverseEntity="Checkout" syncable="YES">
<userInfo> <userInfo>
<entry key="documentation" value="Inverse of Checkout.taxLines."/> <entry key="documentation" value="Inverse of Checkout.taxLines."/>
...@@ -1004,7 +1005,7 @@ ...@@ -1004,7 +1005,7 @@
<element name="MaskedCreditCard" positionX="-567" positionY="1218" width="128" height="150"/> <element name="MaskedCreditCard" positionX="-567" positionY="1218" width="128" height="150"/>
<element name="Option" positionX="-1588" positionY="1287" width="128" height="105"/> <element name="Option" positionX="-1588" positionY="1287" width="128" height="105"/>
<element name="OptionValue" positionX="-1390" positionY="894" width="128" height="105"/> <element name="OptionValue" positionX="-1390" positionY="894" width="128" height="105"/>
<element name="Order" positionX="-549" positionY="1647" width="128" height="180"/> <element name="Order" positionX="-549" positionY="1647" width="128" height="195"/>
<element name="Product" positionX="-1390" positionY="1018" width="128" height="300"/> <element name="Product" positionX="-1390" positionY="1018" width="128" height="300"/>
<element name="ProductVariant" positionX="-1192" positionY="1063" width="128" height="240"/> <element name="ProductVariant" positionX="-1192" positionY="1063" width="128" height="240"/>
<element name="ShippingRate" positionX="-569" positionY="1836" width="128" height="135"/> <element name="ShippingRate" positionX="-569" positionY="1836" width="128" height="135"/>
......
...@@ -38,6 +38,7 @@ extern const struct BUYOrderAttributes { ...@@ -38,6 +38,7 @@ extern const struct BUYOrderAttributes {
__unsafe_unretained NSString *statusURL; __unsafe_unretained NSString *statusURL;
__unsafe_unretained NSString *subtotalPrice; __unsafe_unretained NSString *subtotalPrice;
__unsafe_unretained NSString *totalPrice; __unsafe_unretained NSString *totalPrice;
__unsafe_unretained NSString *cancelled;
} BUYOrderAttributes; } BUYOrderAttributes;
extern const struct BUYOrderRelationships { extern const struct BUYOrderRelationships {
...@@ -87,6 +88,8 @@ extern const struct BUYOrderUserInfo { ...@@ -87,6 +88,8 @@ extern const struct BUYOrderUserInfo {
*/ */
@property (nonatomic, strong) NSURL* orderStatusURL; @property (nonatomic, strong) NSURL* orderStatusURL;
@property (nonatomic, assign) BOOL cancelled;
@property (nonatomic, strong) NSDate* processedAt; @property (nonatomic, strong) NSDate* processedAt;
@property (nonatomic, strong) NSURL* statusURL; @property (nonatomic, strong) NSURL* statusURL;
......
...@@ -36,6 +36,7 @@ const struct BUYOrderAttributes BUYOrderAttributes = { ...@@ -36,6 +36,7 @@ const struct BUYOrderAttributes BUYOrderAttributes = {
.statusURL = @"statusURL", .statusURL = @"statusURL",
.subtotalPrice = @"subtotalPrice", .subtotalPrice = @"subtotalPrice",
.totalPrice = @"totalPrice", .totalPrice = @"totalPrice",
.cancelled = @"cancelled",
}; };
const struct BUYOrderRelationships BUYOrderRelationships = { const struct BUYOrderRelationships BUYOrderRelationships = {
......
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