@capgo/native-purchases 7.5.4 → 7.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -101,7 +101,7 @@ public class NativePurchasesPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
101
101
|
if let revocationDate = transaction.revocationDate {
|
|
102
102
|
response["willCancel"] = ISO8601DateFormatter().string(from: revocationDate)
|
|
103
103
|
} else {
|
|
104
|
-
response["willCancel"] =
|
|
104
|
+
response["willCancel"] = NSNull()
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
await transaction.finish()
|
|
@@ -251,7 +251,7 @@ public class NativePurchasesPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
251
251
|
if let revocationDate = transaction.revocationDate {
|
|
252
252
|
purchaseData["willCancel"] = ISO8601DateFormatter().string(from: revocationDate)
|
|
253
253
|
} else {
|
|
254
|
-
purchaseData["willCancel"] =
|
|
254
|
+
purchaseData["willCancel"] = NSNull()
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
allPurchases.append(purchaseData)
|
|
@@ -301,7 +301,7 @@ public class NativePurchasesPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
301
301
|
if let revocationDate = transaction.revocationDate {
|
|
302
302
|
purchaseData["willCancel"] = ISO8601DateFormatter().string(from: revocationDate)
|
|
303
303
|
} else {
|
|
304
|
-
purchaseData["willCancel"] =
|
|
304
|
+
purchaseData["willCancel"] = NSNull()
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
allPurchases.append(purchaseData)
|