@@ -4,7 +4,6 @@ import Foundation
4
4
public struct InPlayerSubscription : Codable {
5
5
6
6
public let cancelToken : String ?
7
- public let status : String ?
8
7
public let description : String ?
9
8
public let assetTitle : String ?
10
9
public let assetId : Int ?
@@ -19,12 +18,11 @@ public struct InPlayerSubscription: Codable {
19
18
20
19
enum CodingKeys : String , CodingKey {
21
20
case cancelToken = " cancel_token "
22
- case status = " status "
23
21
case description = " description "
24
22
case assetTitle = " item_title "
25
23
case assetId = " item_id "
26
24
case formattedAmount = " formatted_amount "
27
- case amount = " amount "
25
+ case amount = " charged_amount "
28
26
case currency = " currency "
29
27
case merchantId = " merchant_id "
30
28
case createdAt = " created_at "
@@ -37,7 +35,6 @@ public struct InPlayerSubscription: Codable {
37
35
public init ( from decoder: Decoder ) throws {
38
36
let values = try decoder. container ( keyedBy: CodingKeys . self)
39
37
cancelToken = try values. decodeIfPresent ( String . self, forKey: . cancelToken)
40
- status = try values. decodeIfPresent ( String . self, forKey: . status)
41
38
description = try values. decodeIfPresent ( String . self, forKey: . description)
42
39
assetTitle = try values. decodeIfPresent ( String . self, forKey: . assetTitle)
43
40
assetId = try values. decodeIfPresent ( Int . self, forKey: . assetId)
0 commit comments