Commit 40eed563 by lee

order add currency_rate

parent b1043050
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="12141" systemVersion="16F73" minimumToolsVersion="Xcode 7.0" sourceLanguage="Objective-C" userDefinedModelVersionIdentifier=""> <model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="13772" systemVersion="17D102" 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>
...@@ -649,6 +649,7 @@ ...@@ -649,6 +649,7 @@
<entity name="Order" representedClassName="BUYOrder" syncable="YES"> <entity name="Order" representedClassName="BUYOrder" syncable="YES">
<attribute name="cancelled" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES"/> <attribute name="cancelled" optional="YES" attributeType="Boolean" usesScalarValueType="NO" syncable="YES"/>
<attribute name="currency" optional="YES" attributeType="String" syncable="YES"/> <attribute name="currency" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="currencyRate" optional="YES" attributeType="Decimal" defaultValueString="0.0" syncable="YES"/>
<attribute name="identifier" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="NO" 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" syncable="YES"> <attribute name="name" optional="YES" attributeType="String" syncable="YES">
<userInfo> <userInfo>
...@@ -1006,7 +1007,7 @@ ...@@ -1006,7 +1007,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="210"/> <element name="Order" positionX="-549" positionY="1647" width="128" height="225"/>
<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"/>
......
...@@ -37,9 +37,10 @@ extern const struct BUYOrderAttributes { ...@@ -37,9 +37,10 @@ extern const struct BUYOrderAttributes {
__unsafe_unretained NSString *processedAt; __unsafe_unretained NSString *processedAt;
__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; __unsafe_unretained NSString *cancelled;
__unsafe_unretained NSString *currency; __unsafe_unretained NSString *currency;
__unsafe_unretained NSString *currencyRate;
} BUYOrderAttributes; } BUYOrderAttributes;
extern const struct BUYOrderRelationships { extern const struct BUYOrderRelationships {
...@@ -101,6 +102,8 @@ extern const struct BUYOrderUserInfo { ...@@ -101,6 +102,8 @@ extern const struct BUYOrderUserInfo {
@property (nonatomic, strong) NSDecimalNumber* totalPrice; @property (nonatomic, strong) NSDecimalNumber* totalPrice;
@property (nonatomic, strong) NSDecimalNumber* currencyRate;
/** /**
* Inverse of Checkout.order. * Inverse of Checkout.order.
*/ */
......
...@@ -38,6 +38,7 @@ const struct BUYOrderAttributes BUYOrderAttributes = { ...@@ -38,6 +38,7 @@ const struct BUYOrderAttributes BUYOrderAttributes = {
.totalPrice = @"totalPrice", .totalPrice = @"totalPrice",
.cancelled = @"cancelled", .cancelled = @"cancelled",
.currency = @"currency", .currency = @"currency",
.currencyRate = @"currency_rate",
}; };
const struct BUYOrderRelationships BUYOrderRelationships = { const struct BUYOrderRelationships BUYOrderRelationships = {
...@@ -78,6 +79,7 @@ const struct BUYOrderUserInfo BUYOrderUserInfo = { ...@@ -78,6 +79,7 @@ const struct BUYOrderUserInfo BUYOrderUserInfo = {
@dynamic totalPrice; @dynamic totalPrice;
@dynamic cancelled; @dynamic cancelled;
@dynamic currency; @dynamic currency;
@dynamic currencyRate;
#endif #endif
- (int64_t)identifierValue { - (int64_t)identifierValue {
......
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