diff --git a/Pokepay.podspec b/Pokepay.podspec index e359795..2216248 100644 --- a/Pokepay.podspec +++ b/Pokepay.podspec @@ -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. diff --git a/Pokepay.xcodeproj/Pokepay_Info.plist b/Pokepay.xcodeproj/Pokepay_Info.plist index 0baeb54..576c85e 100644 --- a/Pokepay.xcodeproj/Pokepay_Info.plist +++ b/Pokepay.xcodeproj/Pokepay_Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.0.12 + 2.0.13 CFBundleSignature ???? CFBundleVersion diff --git a/Sources/Pokepay/BankAPI/User/DeleteBankPay.swift b/Sources/Pokepay/BankAPI/User/DeleteBankPay.swift index ff26c95..d572edd 100644 --- a/Sources/Pokepay/BankAPI/User/DeleteBankPay.swift +++ b/Sources/Pokepay/BankAPI/User/DeleteBankPay.swift @@ -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) } } } diff --git a/Sources/Pokepay/RequestProxy.swift b/Sources/Pokepay/RequestProxy.swift index 2dd12bf..b9f0132 100644 --- a/Sources/Pokepay/RequestProxy.swift +++ b/Sources/Pokepay/RequestProxy.swift @@ -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