Skip to content

Commit

Permalink
Merge pull request #79 from pokepay/fix/delete-bankpay-body
Browse files Browse the repository at this point in the history
Add body params handling to DELETE requests
  • Loading branch information
DanRidh authored Dec 26, 2023
2 parents 9408080 + ffa6869 commit df67ba5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Pokepay.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Pokepay"
s.version = "2.0.12"
s.version = "2.0.13"
s.summary = "Pokepay iOS SDK."
s.description = <<-DESC
iOS SDK for Pokepay written in Swift.
Expand Down
2 changes: 1 addition & 1 deletion Pokepay.xcodeproj/Pokepay_Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.0.12</string>
<string>2.0.13</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
4 changes: 2 additions & 2 deletions Sources/Pokepay/BankAPI/User/DeleteBankPay.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ public extension BankAPI.User {
return "/users/\(id)/banks"
}

public var parameters: Any? {
public var bodyParameters: BodyParameters? {
var dict: [String: Any] = [:]

dict["bank_id"] = bankId

return dict
return JSONBodyParameters(JSONObject: dict)
}
}
}
8 changes: 8 additions & 0 deletions Sources/Pokepay/RequestProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ extension RequestProxy {
var parameters: Any? {
return request.parameters
}

var queryParameters: [String : Any]? {
return request.queryParameters
}

var bodyParameters: BodyParameters? {
return request.bodyParameters
}

var dataParser: DataParser {
return request.dataParser
Expand Down

0 comments on commit df67ba5

Please sign in to comment.