Skip to content

Commit

Permalink
chore: Merge master down
Browse files Browse the repository at this point in the history
  • Loading branch information
nprail committed Sep 3, 2020
2 parents 763e837 + 3eb49a2 commit 8111008
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions ios/Plugin/TerminalUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import Foundation
import StripeTerminal


public class StripeTerminalUtils {
static func serializeReader(reader: Reader) -> [String: Any] {
let jsonObject: [String: Any] = [
Expand All @@ -24,19 +23,19 @@ public class StripeTerminalUtils {
"label": reader.label,
"simulated": reader.simulated,
]

return jsonObject
}

static func serializeUpdate(update: ReaderSoftwareUpdate) -> [String: Any] {
let jsonObject: [String: Any] = [
"estimatedUpdateTime": ReaderSoftwareUpdate.string(from: update.estimatedUpdateTime),
"deviceSoftwareVersion": update.deviceSoftwareVersion,
]

return jsonObject
}

static func serializePaymentIntent(intent: PaymentIntent) -> [String: Any] {
let jsonObject: [String: Any] = [
"stripeId": intent.stripeId,
Expand All @@ -46,7 +45,7 @@ public class StripeTerminalUtils {
"currency": intent.currency,
// "metadata": intent.metadata as [String: Any],
]

return jsonObject
}
}

0 comments on commit 8111008

Please sign in to comment.