Skip to content

Commit

Permalink
Merge pull request #75 from pokepay/feature/delete-bankpay
Browse files Browse the repository at this point in the history
DeleteBankPay endpoint
  • Loading branch information
DanRidh authored Dec 5, 2023
2 parents ab4817b + eab1194 commit 1702419
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 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.10"
s.version = "2.0.11"
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.10</string>
<string>2.0.11</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
31 changes: 31 additions & 0 deletions Sources/Pokepay/BankAPI/User/DeleteBankPay.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import APIKit

public extension BankAPI.User {
struct DeleteBankPay: BankRequest {
public let id: String
public let bankId: String

public typealias Response = NoContent

public init(id: String, bankId: String) {
self.id = id
self.bankId = bankId
}

public var method: HTTPMethod {
return .delete
}

public var path: String {
return "/users/\(id)/banks"
}

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

dict["bank_id"] = bankId

return dict
}
}
}

0 comments on commit 1702419

Please sign in to comment.