Skip to content

Commit 1702419

Browse files
authored
Merge pull request #75 from pokepay/feature/delete-bankpay
DeleteBankPay endpoint
2 parents ab4817b + eab1194 commit 1702419

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
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.10"
3+
s.version = "2.0.11"
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.10</string>
18+
<string>2.0.11</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import APIKit
2+
3+
public extension BankAPI.User {
4+
struct DeleteBankPay: BankRequest {
5+
public let id: String
6+
public let bankId: String
7+
8+
public typealias Response = NoContent
9+
10+
public init(id: String, bankId: String) {
11+
self.id = id
12+
self.bankId = bankId
13+
}
14+
15+
public var method: HTTPMethod {
16+
return .delete
17+
}
18+
19+
public var path: String {
20+
return "/users/\(id)/banks"
21+
}
22+
23+
public var parameters: Any? {
24+
var dict: [String: Any] = [:]
25+
26+
dict["bank_id"] = bankId
27+
28+
return dict
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)