From 7e5d79bcfaa2968214964ef74f807a3326c006c8 Mon Sep 17 00:00:00 2001 From: Robinson Presotto Date: Wed, 10 Nov 2021 13:22:01 +0100 Subject: [PATCH] Fix exchangeRate type --- .../Balance Transactions/BalanceTransaction.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/StripeKit/Core Resources/Balance Transactions/BalanceTransaction.swift b/Sources/StripeKit/Core Resources/Balance Transactions/BalanceTransaction.swift index 9c6e75c0..0212cb02 100644 --- a/Sources/StripeKit/Core Resources/Balance Transactions/BalanceTransaction.swift +++ b/Sources/StripeKit/Core Resources/Balance Transactions/BalanceTransaction.swift @@ -25,7 +25,7 @@ public struct StripeBalanceTransaction: StripeModel { /// An arbitrary string attached to the object. Often useful for displaying to users. public var description: String? /// The exchange rate used, if applicable, for this transaction. Specifically, if money was converted from currency A to currency B, then the `amount` in currency A, times `exchange_rate`, would be the amount in currency B. For example, suppose you charged a customer 10.00 EUR. Then the PaymentIntent’s `amount` would be `1000` and `currency` would be `eur`. Suppose this was converted into 12.34 USD in your Stripe account. Then the BalanceTransaction’s `amount` would be `1234`, `currency` would be `usd`, and `exchange_rate` would be `1.234`. - public var exchangeRate: String? + public var exchangeRate: Double? /// Fees (in cents) paid for this transaction. public var fee: Int? /// Detailed breakdown of fees (in cents) paid for this transaction.