Skip to content

Commit

Permalink
Merge pull request #89 from robipresotto/master
Browse files Browse the repository at this point in the history
Fix balance history endpoint
  • Loading branch information
Andrewangeta authored Jan 25, 2019
2 parents 136c050 + 55753c6 commit 166b182
Show file tree
Hide file tree
Showing 3 changed files with 3 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.balance.endpoint, query: queryParams)
return try request.send(method: .GET, path: StripeAPIEndpoint.balanceHistory.endpoint, query: queryParams)
}
}
1 change: 1 addition & 0 deletions Sources/Stripe/Helpers/StripeStatus.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public enum StripeStatus: String, Codable {
case pending
case canceled
case chargeable
case available
}

// https://stripe.com/docs/api/curl#subscription_object-status
Expand Down
2 changes: 1 addition & 1 deletion Sources/Stripe/Models/Balance/BalanceHistoryList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public struct BalanceHistoryList: StripeModel {
public var hasMore: Bool?
public var totalCount: Int?
public var url: String?
public var data: [StripeBalance]?
public var data: [StripeBalanceTransactionItem]?

public enum CodingKeys: String, CodingKey {
case object
Expand Down

0 comments on commit 166b182

Please sign in to comment.