Skip to content

Commit 6588152

Browse files
fix external mappings
1 parent 9a9cac8 commit 6588152

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Notification/Models/InPlayerExternalPaymentFailed.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Foundation
1111
public struct InPlayerExternalPaymentFailed: Codable {
1212
public var message: String?
1313
public var explain: String?
14-
public var code: String?
14+
public var code: Int?
1515

1616
private enum CodingKeys: String, CodingKey {
1717
case message
@@ -24,6 +24,6 @@ public struct InPlayerExternalPaymentFailed: Codable {
2424
let values = try decoder.container(keyedBy: CodingKeys.self)
2525
message = try values.decodeIfPresent(String.self, forKey: .message)
2626
explain = try values.decodeIfPresent(String.self, forKey: .explain)
27-
code = try values.decodeIfPresent(String.self, forKey: .code)
27+
code = try values.decodeIfPresent(Int.self, forKey: .code)
2828
}
2929
}

0 commit comments

Comments
 (0)