Skip to content

Commit 32077ba

Browse files
committed
Merge branch 'trunk' into issue/6128-basic-local-implementation
2 parents edd116f + 471d5d5 commit 32077ba

File tree

36 files changed

+1635
-41
lines changed

36 files changed

+1635
-41
lines changed

Networking/Networking/Model/ShippingLine.swift

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Codegen
33

44
/// Represents a Shipping Line Entity.
55
///
6-
public struct ShippingLine: Decodable, Equatable, GeneratedFakeable {
6+
public struct ShippingLine: Codable, Equatable, GeneratedFakeable {
77
public let shippingID: Int64
88
public let methodTitle: String
99
public let methodID: String
@@ -29,6 +29,21 @@ public struct ShippingLine: Decodable, Equatable, GeneratedFakeable {
2929
}
3030
}
3131

32+
// MARK: Codable
33+
extension ShippingLine {
34+
35+
/// Encodes ShippingLine writable fields.
36+
///
37+
public func encode(to encoder: Encoder) throws {
38+
var container = encoder.container(keyedBy: CodingKeys.self)
39+
40+
try container.encode(shippingID, forKey: .shippingID)
41+
try container.encode(methodTitle, forKey: .methodTitle)
42+
try container.encode(methodID, forKey: .methodID)
43+
try container.encode(total, forKey: .total)
44+
}
45+
}
46+
3247

3348
/// Defines all of the Shipping Line CodingKeys
3449
///

Networking/Networking/Remote/OrdersRemote.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ public class OrdersRemote: Remote {
147147
if let shippingAddress = order.shippingAddress {
148148
params[Order.CodingKeys.shippingAddress.rawValue] = try shippingAddress.toDictionary()
149149
}
150+
case .shippingLines:
151+
params[Order.CodingKeys.shippingLines.rawValue] = try order.shippingLines.compactMap { try $0.toDictionary() }
150152
}
151153
}
152154
}()
@@ -201,6 +203,9 @@ public class OrdersRemote: Remote {
201203
case .fees:
202204
let feesEncoded = try order.fees.map { try $0.toDictionary() }
203205
params[Order.CodingKeys.feeLines.rawValue] = feesEncoded
206+
case .shippingLines:
207+
let shippingEncoded = try order.shippingLines.map { try $0.toDictionary() }
208+
params[Order.CodingKeys.shippingLines.rawValue] = shippingEncoded
204209
}
205210
}
206211
}()
@@ -283,6 +288,7 @@ public extension OrdersRemote {
283288
case shippingAddress
284289
case billingAddress
285290
case fees
291+
case shippingLines
286292
}
287293

288294
/// Order fields supported for create
@@ -293,5 +299,6 @@ public extension OrdersRemote {
293299
case items
294300
case billingAddress
295301
case shippingAddress
302+
case shippingLines
296303
}
297304
}

Networking/NetworkingTests/Remote/OrdersRemoteTests.swift

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ final class OrdersRemoteTests: XCTestCase {
264264
wait(for: [expectation], timeout: Constants.expectationTimeout)
265265
}
266266

267+
// MARK: - Create Order Tests
268+
267269
func test_create_order_properly_encodes_fee_lines() throws {
268270
// Given
269271
let remote = OrdersRemote(network: network)
@@ -376,6 +378,27 @@ final class OrdersRemoteTests: XCTestCase {
376378
]
377379
assertEqual(received2, expected2)
378380
}
381+
382+
func test_create_order_properly_encodes_shipping_lines() throws {
383+
// Given
384+
let remote = OrdersRemote(network: network)
385+
let shipping = ShippingLine(shippingID: 333, methodTitle: "Shipping", methodID: "other", total: "1.23", totalTax: "", taxes: [])
386+
let order = Order.fake().copy(shippingLines: [shipping])
387+
388+
// When
389+
remote.createOrder(siteID: 123, order: order, fields: [.shippingLines]) { result in }
390+
391+
// Then
392+
let request = try XCTUnwrap(network.requestsForResponseData.last as? JetpackRequest)
393+
let received = try XCTUnwrap(request.parameters["shipping_lines"] as? [[String: AnyHashable]]).first
394+
let expected: [String: AnyHashable] = [
395+
"id": shipping.shippingID,
396+
"method_title": shipping.methodTitle,
397+
"method_id": shipping.methodID,
398+
"total": shipping.total
399+
]
400+
assertEqual(received, expected)
401+
}
379402
}
380403

381404
private extension OrdersRemoteTests {

Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ target 'WooCommerce' do
4040
pod 'Gridicons', '~> 1.2.0'
4141

4242
# To allow pod to pick up beta versions use -beta. E.g., 1.1.7-beta.1
43-
pod 'WordPressAuthenticator', '~> 1.42.0'
43+
pod 'WordPressAuthenticator', '~> 1.43.1-beta'
4444
# pod 'WordPressAuthenticator', :git => 'https://github.com/wordpress-mobile/WordPressAuthenticator-iOS.git', :commit => ''
4545
# pod 'WordPressAuthenticator', :git => 'https://github.com/wordpress-mobile/WordPressAuthenticator-iOS.git', :branch => ''
4646
# pod 'WordPressAuthenticator', :path => '../WordPressAuthenticator-iOS'

Podfile.lock

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
PODS:
2-
- 1PasswordExtension (1.8.6)
32
- Alamofire (4.8.0)
43
- AppAuth (1.4.0):
54
- AppAuth/Core (= 1.4.0)
@@ -31,7 +30,7 @@ PODS:
3130
- GTMAppAuth (1.2.2):
3231
- AppAuth/Core (~> 1.4)
3332
- GTMSessionFetcher/Core (~> 1.5)
34-
- GTMSessionFetcher/Core (1.6.1)
33+
- GTMSessionFetcher/Core (1.7.0)
3534
- KeychainAccess (3.2.1)
3635
- Kingfisher (6.0.1)
3736
- lottie-ios (3.1.9)
@@ -49,8 +48,7 @@ PODS:
4948
- WordPress-Aztec-iOS (1.11.0)
5049
- WordPress-Editor-iOS (1.11.0):
5150
- WordPress-Aztec-iOS (= 1.11.0)
52-
- WordPressAuthenticator (1.42.0):
53-
- 1PasswordExtension (~> 1.8.6)
51+
- WordPressAuthenticator (1.43.1-beta.1):
5452
- Alamofire (~> 4.8)
5553
- CocoaLumberjack (~> 3.5)
5654
- GoogleSignIn (~> 6.0.1)
@@ -102,7 +100,7 @@ DEPENDENCIES:
102100
- Sourcery (~> 1.0.3)
103101
- StripeTerminal (~> 2.5)
104102
- WordPress-Editor-iOS (~> 1.11.0)
105-
- WordPressAuthenticator (~> 1.42.0)
103+
- WordPressAuthenticator (~> 1.43.1-beta)
106104
- WordPressKit (~> 4.40.0)
107105
- WordPressShared (~> 1.15)
108106
- WordPressUI (~> 1.12.4)
@@ -115,7 +113,6 @@ SPEC REPOS:
115113
https://github.com/wordpress-mobile/cocoapods-specs.git:
116114
- WordPressAuthenticator
117115
trunk:
118-
- 1PasswordExtension
119116
- Alamofire
120117
- AppAuth
121118
- Automattic-Tracks-iOS
@@ -156,7 +153,6 @@ SPEC REPOS:
156153
- ZendeskSupportSDK
157154

158155
SPEC CHECKSUMS:
159-
1PasswordExtension: f97cc80ae58053c331b2b6dc8843ba7103b33794
160156
Alamofire: 3ec537f71edc9804815215393ae2b1a8ea33a844
161157
AppAuth: 31bcec809a638d7bd2f86ea8a52bd45f6e81e7c7
162158
Automattic-Tracks-iOS: f5a6188ad8d00680748111466beabb0aea11f856
@@ -166,7 +162,7 @@ SPEC CHECKSUMS:
166162
GoogleSignIn: fd381840dbe7c1137aa6dc30849a5c3e070c034a
167163
Gridicons: 4455b9f366960121430e45997e32112ae49ffe1d
168164
GTMAppAuth: ad5c2b70b9a8689e1a04033c9369c4915bfcbe89
169-
GTMSessionFetcher: 36689134877faeb055b27dfa4ccc9ceaa42e029e
165+
GTMSessionFetcher: 43748f93435c2aa068b1cbe39655aaf600652e91
170166
KeychainAccess: d5470352939ced6d6f7fb51cb2e67aae51fc294f
171167
Kingfisher: adde87a4f74f6a3845395769354efff593581740
172168
lottie-ios: 3a3758ef5a008e762faec9c9d50a39842f26d124
@@ -181,7 +177,7 @@ SPEC CHECKSUMS:
181177
UIDeviceIdentifier: d0fee204f467dacf8808b7ac14ce43affeb271a5
182178
WordPress-Aztec-iOS: 050b34d4c3adfb7c60363849049b13d60683b348
183179
WordPress-Editor-iOS: 304098424f1051cb271546c99f906aac296b1b81
184-
WordPressAuthenticator: 06278534519c741ecea346f504ad8d08082bfb0d
180+
WordPressAuthenticator: adba93ef31576dcc0f72b8c0a8dfbd1c4467de99
185181
WordPressKit: 062e4f57ce871e2217b632a1f3cb0bbd54b5df6d
186182
WordPressShared: 5477f179c7fe03b5d574f91adda66f67d131827e
187183
WordPressUI: 9e470758bc3a4a25e94478c2babe106f4ae7315a
@@ -197,6 +193,6 @@ SPEC CHECKSUMS:
197193
ZendeskSupportProvidersSDK: 2bdf8544f7cd0fd4c002546f5704b813845beb2a
198194
ZendeskSupportSDK: 3a8e508ab1d9dd22dc038df6c694466414e037ba
199195

200-
PODFILE CHECKSUM: 1f574942620ff65ec3156586545d528d7b4b26b9
196+
PODFILE CHECKSUM: 0872fc8f8ec57fd5d53d7ae0937cbc20a279bb8a
201197

202198
COCOAPODS: 1.11.2

Storage/Storage.xcodeproj/project.pbxproj

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@
3434
02DA64172313C26400284168 /* StatsVersionBySite.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02DA64162313C26400284168 /* StatsVersionBySite.swift */; };
3535
02DA64192313C2AA00284168 /* StatsVersion.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02DA64182313C2AA00284168 /* StatsVersion.swift */; };
3636
02EAB6D72480A86D00FD873C /* CrashLogger.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02EAB6D62480A86D00FD873C /* CrashLogger.swift */; };
37+
031C1EA127AD3AFE00298699 /* WCPayCharge+CoreDataClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 031C1E9927AD3AFE00298699 /* WCPayCharge+CoreDataClass.swift */; };
38+
031C1EA227AD3AFE00298699 /* WCPayCharge+CoreDataProperties.swift in Sources */ = {isa = PBXBuildFile; fileRef = 031C1E9A27AD3AFE00298699 /* WCPayCharge+CoreDataProperties.swift */; };
39+
031C1EA327AD3AFE00298699 /* WCPayCardPresentPaymentDetails+CoreDataClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 031C1E9B27AD3AFE00298699 /* WCPayCardPresentPaymentDetails+CoreDataClass.swift */; };
40+
031C1EA427AD3AFE00298699 /* WCPayCardPresentPaymentDetails+CoreDataProperties.swift in Sources */ = {isa = PBXBuildFile; fileRef = 031C1E9C27AD3AFE00298699 /* WCPayCardPresentPaymentDetails+CoreDataProperties.swift */; };
41+
031C1EA527AD3AFE00298699 /* WCPayCardPaymentDetails+CoreDataClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 031C1E9D27AD3AFE00298699 /* WCPayCardPaymentDetails+CoreDataClass.swift */; };
42+
031C1EA627AD3AFE00298699 /* WCPayCardPaymentDetails+CoreDataProperties.swift in Sources */ = {isa = PBXBuildFile; fileRef = 031C1E9E27AD3AFE00298699 /* WCPayCardPaymentDetails+CoreDataProperties.swift */; };
43+
031C1EA727AD3AFE00298699 /* WCPayCardPresentReceiptDetails+CoreDataClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 031C1E9F27AD3AFE00298699 /* WCPayCardPresentReceiptDetails+CoreDataClass.swift */; };
44+
031C1EA827AD3AFE00298699 /* WCPayCardPresentReceiptDetails+CoreDataProperties.swift in Sources */ = {isa = PBXBuildFile; fileRef = 031C1EA027AD3AFE00298699 /* WCPayCardPresentReceiptDetails+CoreDataProperties.swift */; };
3745
077F39C4269F1F4600ABEADC /* SystemPlugin+CoreDataClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 077F39C3269F1F4600ABEADC /* SystemPlugin+CoreDataClass.swift */; };
3846
077F39C6269F1F7C00ABEADC /* SystemPlugin+CoreDataProperties.swift in Sources */ = {isa = PBXBuildFile; fileRef = 077F39C5269F1F7C00ABEADC /* SystemPlugin+CoreDataProperties.swift */; };
3947
2618707325409C65006522A1 /* ShippingLineTax+CoreDataClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2618707125409C65006522A1 /* ShippingLineTax+CoreDataClass.swift */; };
@@ -264,6 +272,15 @@
264272
02DA64162313C26400284168 /* StatsVersionBySite.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StatsVersionBySite.swift; sourceTree = "<group>"; };
265273
02DA64182313C2AA00284168 /* StatsVersion.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StatsVersion.swift; sourceTree = "<group>"; };
266274
02EAB6D62480A86D00FD873C /* CrashLogger.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CrashLogger.swift; sourceTree = "<group>"; };
275+
0306C18227BAB09D0070B617 /* Model 65.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = "Model 65.xcdatamodel"; sourceTree = "<group>"; };
276+
031C1E9927AD3AFE00298699 /* WCPayCharge+CoreDataClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "WCPayCharge+CoreDataClass.swift"; sourceTree = "<group>"; };
277+
031C1E9A27AD3AFE00298699 /* WCPayCharge+CoreDataProperties.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "WCPayCharge+CoreDataProperties.swift"; sourceTree = "<group>"; };
278+
031C1E9B27AD3AFE00298699 /* WCPayCardPresentPaymentDetails+CoreDataClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "WCPayCardPresentPaymentDetails+CoreDataClass.swift"; sourceTree = "<group>"; };
279+
031C1E9C27AD3AFE00298699 /* WCPayCardPresentPaymentDetails+CoreDataProperties.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "WCPayCardPresentPaymentDetails+CoreDataProperties.swift"; sourceTree = "<group>"; };
280+
031C1E9D27AD3AFE00298699 /* WCPayCardPaymentDetails+CoreDataClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "WCPayCardPaymentDetails+CoreDataClass.swift"; sourceTree = "<group>"; };
281+
031C1E9E27AD3AFE00298699 /* WCPayCardPaymentDetails+CoreDataProperties.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "WCPayCardPaymentDetails+CoreDataProperties.swift"; sourceTree = "<group>"; };
282+
031C1E9F27AD3AFE00298699 /* WCPayCardPresentReceiptDetails+CoreDataClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "WCPayCardPresentReceiptDetails+CoreDataClass.swift"; sourceTree = "<group>"; };
283+
031C1EA027AD3AFE00298699 /* WCPayCardPresentReceiptDetails+CoreDataProperties.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "WCPayCardPresentReceiptDetails+CoreDataProperties.swift"; sourceTree = "<group>"; };
267284
0345DB4527A8122700B02D0C /* Model 63.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = "Model 63.xcdatamodel"; sourceTree = "<group>"; };
268285
077F39C3269F1F4600ABEADC /* SystemPlugin+CoreDataClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SystemPlugin+CoreDataClass.swift"; sourceTree = "<group>"; };
269286
077F39C5269F1F7C00ABEADC /* SystemPlugin+CoreDataProperties.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SystemPlugin+CoreDataProperties.swift"; sourceTree = "<group>"; };
@@ -913,6 +930,14 @@
913930
D87F614D22657C2F0031A13B /* PreselectedProvider.swift */,
914931
077F39C3269F1F4600ABEADC /* SystemPlugin+CoreDataClass.swift */,
915932
077F39C5269F1F7C00ABEADC /* SystemPlugin+CoreDataProperties.swift */,
933+
031C1E9927AD3AFE00298699 /* WCPayCharge+CoreDataClass.swift */,
934+
031C1E9A27AD3AFE00298699 /* WCPayCharge+CoreDataProperties.swift */,
935+
031C1E9B27AD3AFE00298699 /* WCPayCardPresentPaymentDetails+CoreDataClass.swift */,
936+
031C1E9C27AD3AFE00298699 /* WCPayCardPresentPaymentDetails+CoreDataProperties.swift */,
937+
031C1E9D27AD3AFE00298699 /* WCPayCardPaymentDetails+CoreDataClass.swift */,
938+
031C1E9E27AD3AFE00298699 /* WCPayCardPaymentDetails+CoreDataProperties.swift */,
939+
031C1E9F27AD3AFE00298699 /* WCPayCardPresentReceiptDetails+CoreDataClass.swift */,
940+
031C1EA027AD3AFE00298699 /* WCPayCardPresentReceiptDetails+CoreDataProperties.swift */,
916941
);
917942
path = Model;
918943
sourceTree = "<group>";
@@ -1154,6 +1179,7 @@
11541179
7471A514216CF0FE00219F7E /* SiteVisitStats+CoreDataClass.swift in Sources */,
11551180
D8FBFF5722D66A06006E3336 /* OrderStatsV4Totals+CoreDataClass.swift in Sources */,
11561181
7474539C2242C85E00E0B5EE /* ProductDimensions+CoreDataProperties.swift in Sources */,
1182+
031C1EA327AD3AFE00298699 /* WCPayCardPresentPaymentDetails+CoreDataClass.swift in Sources */,
11571183
7426A05120F69D00002A4E07 /* OrderCoupon+CoreDataProperties.swift in Sources */,
11581184
021EAA4825493A1600AA8CCD /* OrderItemAttribute+CoreDataProperties.swift in Sources */,
11591185
262B27182621412D00A421CF /* ProductAddOnOption+CoreDataProperties.swift in Sources */,
@@ -1166,6 +1192,7 @@
11661192
268BF6DB2642CBA6003948D8 /* Models+Copiable.generated.swift in Sources */,
11671193
D4ABCACF26D6E7E400CD18F4 /* Announcement.swift in Sources */,
11681194
AE93BE90272C0E9F001B55EA /* GeneralStoreSettings.swift in Sources */,
1195+
031C1EA227AD3AFE00298699 /* WCPayCharge+CoreDataProperties.swift in Sources */,
11691196
D87F61552265AA900031A13B /* PListFileStorage.swift in Sources */,
11701197
B5B914C620EFF03500F2F832 /* Site+CoreDataProperties.swift in Sources */,
11711198
45E462072684BCEE00011BF2 /* StateOfACountry+CoreDataClass.swift in Sources */,
@@ -1188,6 +1215,7 @@
11881215
02C254EC2563B12E00A04423 /* ShippingLabelSettings+CoreDataProperties.swift in Sources */,
11891216
B5FD111E21D4046E00560344 /* OrderSearchResults+CoreDataProperties.swift in Sources */,
11901217
7471A515216CF0FE00219F7E /* SiteVisitStatsItem+CoreDataProperties.swift in Sources */,
1218+
031C1EA627AD3AFE00298699 /* WCPayCardPaymentDetails+CoreDataProperties.swift in Sources */,
11911219
CE12FBCE221F0E1A00C59248 /* Order+CoreDataClass.swift in Sources */,
11921220
B54CA5BD20A4BD3B00F38CD1 /* NSManagedObjectContext+Storage.swift in Sources */,
11931221
455C0C9125DD6D93007B6F38 /* AccountSettings+CoreDataProperties.swift in Sources */,
@@ -1214,6 +1242,7 @@
12141242
028296F4237D404F00E84012 /* GenericAttribute+CoreDataClass.swift in Sources */,
12151243
262B270E2621412000A421CF /* ProductAddOn+CoreDataProperties.swift in Sources */,
12161244
7492FAD6217FA9C100ED2C69 /* SiteSetting+CoreDataClass.swift in Sources */,
1245+
031C1EA427AD3AFE00298699 /* WCPayCardPresentPaymentDetails+CoreDataProperties.swift in Sources */,
12171246
B505F6E020BEEA8100BB1B69 /* StorageType.swift in Sources */,
12181247
747453A82242C85E00E0B5EE /* ProductTag+CoreDataProperties.swift in Sources */,
12191248
D8FBFF5A22D66A06006E3336 /* OrderStatsV4+CoreDataProperties.swift in Sources */,
@@ -1222,6 +1251,7 @@
12221251
2685C108263C88B000D9EE97 /* AddOnGroup+CoreDataClass.swift in Sources */,
12231252
7474539F2242C85E00E0B5EE /* ProductImage+CoreDataClass.swift in Sources */,
12241253
7474539D2242C85E00E0B5EE /* ProductAttribute+CoreDataClass.swift in Sources */,
1254+
031C1EA127AD3AFE00298699 /* WCPayCharge+CoreDataClass.swift in Sources */,
12251255
023FA29623316A4D008C1769 /* ProductSearchResults+CoreDataProperties.swift in Sources */,
12261256
746A9D22214078080013F6FF /* TopEarnerStats+CoreDataProperties.swift in Sources */,
12271257
023FA29523316A4D008C1769 /* Product+CoreDataProperties.swift in Sources */,
@@ -1256,6 +1286,7 @@
12561286
CE3B7AD22225E62C0050FE4B /* OrderStatus+CoreDataClass.swift in Sources */,
12571287
027D3E6E23A0EEA4007D91B0 /* StorageType+Deletions.swift in Sources */,
12581288
D8FBFF5922D66A06006E3336 /* OrderStatsV4+CoreDataClass.swift in Sources */,
1289+
031C1EA727AD3AFE00298699 /* WCPayCardPresentReceiptDetails+CoreDataClass.swift in Sources */,
12591290
74B7D6AE20F90CBB002667AC /* OrderNote+CoreDataProperties.swift in Sources */,
12601291
02C254EF2563B12E00A04423 /* ShippingLabelRefund+CoreDataClass.swift in Sources */,
12611292
025CA2BE238EB86200B05C81 /* ProductShippingClass+CoreDataProperties.swift in Sources */,
@@ -1275,13 +1306,15 @@
12751306
2618707425409C65006522A1 /* ShippingLineTax+CoreDataProperties.swift in Sources */,
12761307
B52B0F7B20AA28A800477698 /* Object.swift in Sources */,
12771308
02C254F12563B12E00A04423 /* ShippingLabelAddress+CoreDataClass.swift in Sources */,
1309+
031C1EA827AD3AFE00298699 /* WCPayCardPresentReceiptDetails+CoreDataProperties.swift in Sources */,
12781310
02D45649231CFB27008CF0A9 /* StatsVersionBannerVisibility.swift in Sources */,
12791311
7426A05020F69D00002A4E07 /* OrderCoupon+CoreDataClass.swift in Sources */,
12801312
02C254F22563B12E00A04423 /* ShippingLabelAddress+CoreDataProperties.swift in Sources */,
12811313
02C254F02563B12E00A04423 /* ShippingLabelRefund+CoreDataProperties.swift in Sources */,
12821314
746A9D23214078080013F6FF /* TopEarnerStatsItem+CoreDataClass.swift in Sources */,
12831315
4501068B2399AC9B00E24722 /* TaxClass+CoreDataProperties.swift in Sources */,
12841316
74F009C02183B99B002B4566 /* Note+CoreDataClass.swift in Sources */,
1317+
031C1EA527AD3AFE00298699 /* WCPayCardPaymentDetails+CoreDataClass.swift in Sources */,
12851318
CC2C030B262DCC6900928C9C /* ShippingLabelAccountSettings+CoreDataClass.swift in Sources */,
12861319
7499FA44221C7A60004EC0B4 /* ShipmentTracking+CoreDataClass.swift in Sources */,
12871320
D87F61532265AA230031A13B /* FileStorage.swift in Sources */,
@@ -1739,6 +1772,7 @@
17391772
DEC51AA4275B41BE009F3DF4 /* WooCommerce.xcdatamodeld */ = {
17401773
isa = XCVersionGroup;
17411774
children = (
1775+
0306C18227BAB09D0070B617 /* Model 65.xcdatamodel */,
17421776
459E342327B4069E0054FF01 /* Model 64.xcdatamodel */,
17431777
0345DB4527A8122700B02D0C /* Model 63.xcdatamodel */,
17441778
DE001324279FD7D900EB0350 /* Model 62.xcdatamodel */,
@@ -1804,7 +1838,7 @@
18041838
DEC51ADE275B41BE009F3DF4 /* Model 47.xcdatamodel */,
18051839
DEC51ADF275B41BE009F3DF4 /* Model 19.xcdatamodel */,
18061840
);
1807-
currentVersion = 459E342327B4069E0054FF01 /* Model 64.xcdatamodel */;
1841+
currentVersion = 0306C18227BAB09D0070B617 /* Model 65.xcdatamodel */;
18081842
path = WooCommerce.xcdatamodeld;
18091843
sourceTree = "<group>";
18101844
versionGroupType = wrapper.xcdatamodel;

Storage/Storage/Model/MIGRATIONS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
This file documents changes in the WCiOS Storage data model. Please explain any changes to the data model as well as any custom migrations.
44

5+
## Model 65 (Release 8.6.0.0)
6+
- @joshheald 2022-02-14
7+
- Added `WCPayCharge` entity.
8+
- Added `WCPayCardPresentPaymentDetails` entity.
9+
- Added `WCPayCardPaymentDetails` entity.
10+
- Added `WCPayCardPresentReceiptDetails` entity.
11+
512
## Model 64 (Release 8.6.0.0)
613
- @pmusolino 2022-02-09
714
- Added `InboxNote` entity.

0 commit comments

Comments
 (0)