Skip to content

Commit

Permalink
Merge pull request #88 from robipresotto/master
Browse files Browse the repository at this point in the history
Fixes charges/balance endpoints
  • Loading branch information
Andrewangeta authored Jan 25, 2019
2 parents 68e3133 + 90aee24 commit 136c050
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Stripe/API/Routes/BalanceRoutes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
2 changes: 1 addition & 1 deletion Sources/Stripe/API/Routes/ChargeRoutes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 136c050

Please sign in to comment.