Skip to content

Commit e7abc8e

Browse files
committed
remove unnecessary decoding of links field
1 parent 11da801 commit e7abc8e

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Demo/Demo/Models/Order.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,13 @@ struct Order: Codable, Equatable {
33
let id: String
44
let status: String
55
var paymentSource: PaymentSource?
6-
var links: [Link]?
76

87
struct PaymentSource: Codable, Equatable {
98

109
let card: Card?
1110
let paypal: PayPal?
1211
}
1312

14-
struct Link: Codable, Equatable {
15-
16-
let href: String?
17-
let rel, method: String?
18-
}
19-
2013
init(id: String, status: String, paymentSource: PaymentSource? = nil) {
2114
self.id = id
2215
self.status = status

0 commit comments

Comments
 (0)