Skip to content

Commit df67ba5

Browse files
authored
Merge pull request #79 from pokepay/fix/delete-bankpay-body
Add body params handling to DELETE requests
2 parents 9408080 + ffa6869 commit df67ba5

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

Pokepay.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Pokepay"
3-
s.version = "2.0.12"
3+
s.version = "2.0.13"
44
s.summary = "Pokepay iOS SDK."
55
s.description = <<-DESC
66
iOS SDK for Pokepay written in Swift.

Pokepay.xcodeproj/Pokepay_Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.0.12</string>
18+
<string>2.0.13</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

Sources/Pokepay/BankAPI/User/DeleteBankPay.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ public extension BankAPI.User {
2020
return "/users/\(id)/banks"
2121
}
2222

23-
public var parameters: Any? {
23+
public var bodyParameters: BodyParameters? {
2424
var dict: [String: Any] = [:]
2525

2626
dict["bank_id"] = bankId
2727

28-
return dict
28+
return JSONBodyParameters(JSONObject: dict)
2929
}
3030
}
3131
}

Sources/Pokepay/RequestProxy.swift

+8
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ extension RequestProxy {
2222
var parameters: Any? {
2323
return request.parameters
2424
}
25+
26+
var queryParameters: [String : Any]? {
27+
return request.queryParameters
28+
}
29+
30+
var bodyParameters: BodyParameters? {
31+
return request.bodyParameters
32+
}
2533

2634
var dataParser: DataParser {
2735
return request.dataParser

0 commit comments

Comments
 (0)