From 90aee2432899cdb8c6186b5b303763daf8f51cdd Mon Sep 17 00:00:00 2001 From: Robinson Presotto Date: Fri, 25 Jan 2019 09:41:36 +0100 Subject: [PATCH] Fixes charges/balance endpoints --- Sources/Stripe/API/Routes/BalanceRoutes.swift | 2 +- Sources/Stripe/API/Routes/ChargeRoutes.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Stripe/API/Routes/BalanceRoutes.swift b/Sources/Stripe/API/Routes/BalanceRoutes.swift index 4de9ca1..933bb1a 100644 --- a/Sources/Stripe/API/Routes/BalanceRoutes.swift +++ b/Sources/Stripe/API/Routes/BalanceRoutes.swift @@ -54,6 +54,6 @@ public struct StripeBalanceRoutes: BalanceRoutes { if let filter = filter { queryParams = filter.queryParameters } - return try request.send(method: .GET, path: StripeAPIEndpoint.account.endpoint, query: queryParams) + return try request.send(method: .GET, path: StripeAPIEndpoint.balance.endpoint, query: queryParams) } } diff --git a/Sources/Stripe/API/Routes/ChargeRoutes.swift b/Sources/Stripe/API/Routes/ChargeRoutes.swift index 19710dd..3316533 100644 --- a/Sources/Stripe/API/Routes/ChargeRoutes.swift +++ b/Sources/Stripe/API/Routes/ChargeRoutes.swift @@ -280,6 +280,6 @@ public struct StripeChargeRoutes: ChargeRoutes { queryParams = filter.queryParameters } - return try request.send(method: .GET, path: StripeAPIEndpoint.account.endpoint, query: queryParams) + return try request.send(method: .GET, path: StripeAPIEndpoint.charges.endpoint, query: queryParams) } }