Skip to content

Commit 054ca52

Browse files
committed
Revert "5976 Make receipt non-optional"
This reverts commit 21b631e.
1 parent 21b631e commit 054ca52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Storage/Storage/Model/WCPayCardPresentPaymentDetails+CoreDataProperties.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ extension WCPayCardPresentPaymentDetails {
1111
@NSManaged public var brand: String
1212
@NSManaged public var last4: String
1313
@NSManaged public var funding: String
14-
@NSManaged public var receipt: WCPayCardPresentReceiptDetails
14+
@NSManaged public var receipt: WCPayCardPresentReceiptDetails?
1515
@NSManaged public var charge: WCPayCharge?
1616

1717
}

Storage/Storage/Model/WooCommerce.xcdatamodeld/Model 65.xcdatamodel/contents

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@
757757
<attribute name="funding" attributeType="String"/>
758758
<attribute name="last4" attributeType="String"/>
759759
<relationship name="charge" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="WCPayCharge" inverseName="cardPresentDetails" inverseEntity="WCPayCharge"/>
760-
<relationship name="receipt" maxCount="1" deletionRule="Cascade" destinationEntity="WCPayCardPresentReceiptDetails" inverseName="cardPresentPayment" inverseEntity="WCPayCardPresentReceiptDetails"/>
760+
<relationship name="receipt" optional="YES" maxCount="1" deletionRule="Cascade" destinationEntity="WCPayCardPresentReceiptDetails" inverseName="cardPresentPayment" inverseEntity="WCPayCardPresentReceiptDetails"/>
761761
</entity>
762762
<entity name="WCPayCardPresentReceiptDetails" representedClassName="WCPayCardPresentReceiptDetails" syncable="YES">
763763
<attribute name="accountType" attributeType="String"/>

0 commit comments

Comments
 (0)