diff --git a/Sources/Pokepay/BankAPI.swift b/Sources/Pokepay/BankAPI.swift
index c73c1c5..19f9597 100644
--- a/Sources/Pokepay/BankAPI.swift
+++ b/Sources/Pokepay/BankAPI.swift
@@ -2,11 +2,16 @@
public struct BankAPI {
public struct Account {}
+ public struct Bank {}
public struct Bill {}
+ public struct Campaign {}
public struct Cashtray {}
public struct Check {}
+ public struct Coupon {}
+ public struct Cpm {}
public struct CpmToken {}
public struct CreditCard {}
+ public struct Merchants {}
public struct PrivateMoney {}
public struct Terminal {}
public struct Transaction {}
diff --git a/Sources/Pokepay/BankAPI/Account/CreateAccount.swift b/Sources/Pokepay/BankAPI/Account/CreateAccount.swift
index ebaaa3b..62bc21c 100644
--- a/Sources/Pokepay/BankAPI/Account/CreateAccount.swift
+++ b/Sources/Pokepay/BankAPI/Account/CreateAccount.swift
@@ -1,12 +1,13 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Account {
- struct Create: BankRequest {
+ struct CreateAccount: BankRequest {
public let name: String?
public let privateMoneyId: String
public let externalId: String?
- public typealias Response = Account
+ public typealias Response = AccountDetail
public init(name: String? = nil, privateMoneyId: String, externalId: String? = nil) {
self.name = name
@@ -24,15 +25,17 @@ public extension BankAPI.Account {
public var parameters: Any? {
var dict: [String: Any] = [:]
+
if name != nil {
dict["name"] = name
}
-
+
dict["private_money_id"] = privateMoneyId
-
+
if externalId != nil {
dict["external_id"] = externalId
}
+
return dict
}
}
diff --git a/Sources/Pokepay/BankAPI/Account/CreateAccountCpmToken.swift b/Sources/Pokepay/BankAPI/Account/CreateAccountCpmToken.swift
index 3efcf89..965699a 100644
--- a/Sources/Pokepay/BankAPI/Account/CreateAccountCpmToken.swift
+++ b/Sources/Pokepay/BankAPI/Account/CreateAccountCpmToken.swift
@@ -1,33 +1,24 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Account {
struct CreateAccountCpmToken: BankRequest {
-
- public enum Scope: Int {
- case PAYMENT = 1
- case TOPUP = 2
- case BOTH = 3
- }
-
- public let accountId: String
- public let scopes: Int
+ public let scopes: [String]?
public let expiresIn: Int?
- public let metadata: [String:String]?
+ public let metadata: String?
+ public let keepAlive: Bool?
+ public let isShortToken: Bool?
+ public let accountId: Uuid
- public typealias Response = AccountCpmToken
+ public typealias Response = CpmToken
- public init(accountId: String, scopes: Scope = .PAYMENT, expiresIn: Int? = nil, metadata: [String:String]? = nil) {
- self.accountId = accountId
- self.scopes = scopes.rawValue
- self.expiresIn = expiresIn
- self.metadata = metadata
- }
-
- public init(accountId:String, scopes:Int,expiresIn: Int? = nil,metadata: [String:String]? = nil){
- self.accountId = accountId
+ public init(scopes: [String]? = nil, expiresIn: Int? = nil, metadata: String? = nil, keepAlive: Bool? = nil, isShortToken: Bool? = nil, accountId: Uuid) {
self.scopes = scopes
self.expiresIn = expiresIn
self.metadata = metadata
+ self.keepAlive = keepAlive
+ self.isShortToken = isShortToken
+ self.accountId = accountId
}
public var method: HTTPMethod {
@@ -40,37 +31,28 @@ public extension BankAPI.Account {
public var parameters: Any? {
var dict: [String: Any] = [:]
- var scopesArr: [String] = []
- if (scopes & Scope.PAYMENT.rawValue) != 0 {
- scopesArr.append("payment")
- }
- if (scopes & Scope.TOPUP.rawValue) != 0 {
- scopesArr.append("topup")
+
+ if scopes != nil {
+ dict["scopes"] = scopes
}
- dict["scopes"] = scopesArr
+
if expiresIn != nil {
dict["expires_in"] = expiresIn
}
+
if metadata != nil {
-
- dict["metadata"] = self.toJsonString(metadata:metadata!)
+ dict["metadata"] = metadata
}
- return dict
- }
-
- private func toJsonString(metadata:[String:String]) -> String{
- var jsonString = "{"
- for (key, value) in metadata {
- jsonString.append("\"")
- jsonString.append(key)
- jsonString.append("\":\"")
- jsonString.append(value)
- jsonString.append("\"")
- jsonString.append(",")
+
+ if keepAlive != nil {
+ dict["keep_alive"] = keepAlive
+ }
+
+ if isShortToken != nil {
+ dict["is_short_token"] = isShortToken
}
- jsonString.removeLast()
- jsonString.append("}")
- return jsonString
+
+ return dict
}
}
}
diff --git a/Sources/Pokepay/BankAPI/Account/GetAccount.swift b/Sources/Pokepay/BankAPI/Account/GetAccount.swift
index 0eb7c47..8361f2c 100644
--- a/Sources/Pokepay/BankAPI/Account/GetAccount.swift
+++ b/Sources/Pokepay/BankAPI/Account/GetAccount.swift
@@ -1,13 +1,14 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Account {
- struct Get: BankRequest {
- public let id: String
+ struct GetAccount: BankRequest {
+ public let accountId: Uuid
- public typealias Response = Account
+ public typealias Response = AccountDetail
- public init(id: String) {
- self.id = id
+ public init(accountId: Uuid) {
+ self.accountId = accountId
}
public var method: HTTPMethod {
@@ -15,7 +16,13 @@ public extension BankAPI.Account {
}
public var path: String {
- return "/accounts/\(id)"
+ return "/accounts/\(accountId)"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
}
}
}
diff --git a/Sources/Pokepay/BankAPI/Account/GetAccountBalances.swift b/Sources/Pokepay/BankAPI/Account/GetAccountBalances.swift
new file mode 100644
index 0000000..4e03923
--- /dev/null
+++ b/Sources/Pokepay/BankAPI/Account/GetAccountBalances.swift
@@ -0,0 +1,50 @@
+// DO NOT EDIT: File is generated by code generator.
+import APIKit
+
+public extension BankAPI.Account {
+ struct GetAccountBalances: BankRequest {
+ public let accountId: String
+ public let before: String?
+ public let after: String?
+ public let perPage: Int?
+ public let expired: BooleanString
+
+ public typealias Response = PaginatedAccountBalances
+
+ public init(accountId: String, before: String? = nil, after: String? = nil, perPage: Int? = nil, expired: BooleanString) {
+ self.accountId = accountId
+ self.before = before
+ self.after = after
+ self.perPage = perPage
+ self.expired = expired
+ }
+
+ public var method: HTTPMethod {
+ return .get
+ }
+
+ public var path: String {
+ return "/accounts/\(accountId)/balances"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ if before != nil {
+ dict["before"] = before
+ }
+
+ if after != nil {
+ dict["after"] = after
+ }
+
+ if perPage != nil {
+ dict["per_page"] = perPage
+ }
+
+ dict["expired"] = expired
+
+ return dict
+ }
+ }
+}
diff --git a/Sources/Pokepay/BankAPI/Account/GetAccountCouponDetail.swift b/Sources/Pokepay/BankAPI/Account/GetAccountCouponDetail.swift
index 8bf76c3..ed2f92a 100644
--- a/Sources/Pokepay/BankAPI/Account/GetAccountCouponDetail.swift
+++ b/Sources/Pokepay/BankAPI/Account/GetAccountCouponDetail.swift
@@ -1,13 +1,14 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Account {
- struct GetCouponDetail:BankRequest {
+ struct GetAccountCouponDetail: BankRequest {
public let accountId: String
- public let couponId:String
+ public let couponId: String
public typealias Response = CouponDetail
- public init(accountId: String, couponId:String) {
+ public init(accountId: String, couponId: String) {
self.accountId = accountId
self.couponId = couponId
}
@@ -19,5 +20,11 @@ public extension BankAPI.Account {
public var path: String {
return "/accounts/\(accountId)/coupons/\(couponId)"
}
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
+ }
}
}
diff --git a/Sources/Pokepay/BankAPI/Account/GetAccountCoupons.swift b/Sources/Pokepay/BankAPI/Account/GetAccountCoupons.swift
index 1d92fe4..1106df6 100644
--- a/Sources/Pokepay/BankAPI/Account/GetAccountCoupons.swift
+++ b/Sources/Pokepay/BankAPI/Account/GetAccountCoupons.swift
@@ -1,16 +1,17 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Account {
struct GetAccountCoupons: BankRequest {
- public let accountId: String
- public let isAvailable:Bool?
+ public let accountId: Uuid
+ public let isAvailable: BooleanString
public let before: String?
public let after: String?
- public let perPage: Int32?
+ public let perPage: Int?
- public typealias Response = PaginatedCoupons
+ public typealias Response = PaginatedAccountCoupons
- public init(accountId: String,isAvailable:Bool? = nil , before: String? = nil, after: String? = nil, perPage: Int32? = nil) {
+ public init(accountId: Uuid, isAvailable: BooleanString, before: String? = nil, after: String? = nil, perPage: Int? = nil) {
self.accountId = accountId
self.isAvailable = isAvailable
self.before = before
@@ -28,18 +29,21 @@ public extension BankAPI.Account {
public var parameters: Any? {
var dict: [String: Any] = [:]
- if isAvailable != nil {
- dict["is_available"] = isAvailable
- }
+
+ dict["is_available"] = isAvailable
+
if before != nil {
dict["before"] = before
}
+
if after != nil {
dict["after"] = after
}
+
if perPage != nil {
dict["per_page"] = perPage
}
+
return dict
}
}
diff --git a/Sources/Pokepay/BankAPI/Account/GetAccountTransactions.swift b/Sources/Pokepay/BankAPI/Account/GetAccountTransactions.swift
index fe8bd0b..ec5f1b0 100644
--- a/Sources/Pokepay/BankAPI/Account/GetAccountTransactions.swift
+++ b/Sources/Pokepay/BankAPI/Account/GetAccountTransactions.swift
@@ -1,16 +1,17 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Account {
- struct GetTransactions: BankRequest {
- public let id: String
+ struct GetAccountTransactions: BankRequest {
+ public let accountId: Uuid
public let before: String?
public let after: String?
- public let perPage: Int32?
+ public let perPage: Int?
- public typealias Response = PaginatedTransactions
+ public typealias Response = PaginatedAccountTransactions
- public init(id: String, before: String? = nil, after: String? = nil, perPage: Int32? = nil) {
- self.id = id
+ public init(accountId: Uuid, before: String? = nil, after: String? = nil, perPage: Int? = nil) {
+ self.accountId = accountId
self.before = before
self.after = after
self.perPage = perPage
@@ -21,20 +22,24 @@ public extension BankAPI.Account {
}
public var path: String {
- return "/accounts/\(id)/transactions"
+ return "/accounts/\(accountId)/transactions"
}
public var parameters: Any? {
var dict: [String: Any] = [:]
+
if before != nil {
dict["before"] = before
}
+
if after != nil {
dict["after"] = after
}
+
if perPage != nil {
dict["per_page"] = perPage
}
+
return dict
}
}
diff --git a/Sources/Pokepay/BankAPI/Account/GetAccountTransfers.swift b/Sources/Pokepay/BankAPI/Account/GetAccountTransfers.swift
index 36700cf..1cb331e 100644
--- a/Sources/Pokepay/BankAPI/Account/GetAccountTransfers.swift
+++ b/Sources/Pokepay/BankAPI/Account/GetAccountTransfers.swift
@@ -1,16 +1,17 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Account {
- struct GetTransfers: BankRequest {
- public let id: String
+ struct GetAccountTransfers: BankRequest {
+ public let accountId: Uuid
public let before: String?
public let after: String?
- public let perPage: Int32?
+ public let perPage: Int?
- public typealias Response = PaginatedTransfers
+ public typealias Response = PaginatedAccountTransfers
- public init(id: String, before: String? = nil, after: String? = nil, perPage: Int32? = nil) {
- self.id = id
+ public init(accountId: Uuid, before: String? = nil, after: String? = nil, perPage: Int? = nil) {
+ self.accountId = accountId
self.before = before
self.after = after
self.perPage = perPage
@@ -21,22 +22,25 @@ public extension BankAPI.Account {
}
public var path: String {
- return "/accounts/\(id)/transfers"
+ return "/accounts/\(accountId)/transfers"
}
-
+
public var parameters: Any? {
var dict: [String: Any] = [:]
+
if before != nil {
dict["before"] = before
}
+
if after != nil {
dict["after"] = after
}
+
if perPage != nil {
dict["per_page"] = perPage
}
+
return dict
}
}
}
-
diff --git a/Sources/Pokepay/BankAPI/Account/IdentifyIndividual.swift b/Sources/Pokepay/BankAPI/Account/IdentifyIndividual.swift
index d9a4faa..0959047 100644
--- a/Sources/Pokepay/BankAPI/Account/IdentifyIndividual.swift
+++ b/Sources/Pokepay/BankAPI/Account/IdentifyIndividual.swift
@@ -1,21 +1,20 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
-import Foundation
public extension BankAPI.Account {
struct IdentifyIndividual: BankRequest {
- public let accountId: String
public let signature: String
public let signingCert: String
public let expectedHash: String
public let name: String?
- public let gender: Gender?
+ public let gender: String?
public let address: String?
- /// pattern = YYYY-MM-DD
public let dateOfBirth: String?
+ public let accountId: String
+
public typealias Response = IdentificationResult
- public init(accountId: String, signature: String, signingCert: String, expectedHash: String, name: String? = nil, gender: Gender? = nil, address: String? = nil, dateOfBirth: String? = nil) {
- self.accountId = accountId
+ public init(signature: String, signingCert: String, expectedHash: String, name: String? = nil, gender: String? = nil, address: String? = nil, dateOfBirth: String? = nil, accountId: String) {
self.signature = signature
self.signingCert = signingCert
self.expectedHash = expectedHash
@@ -23,6 +22,7 @@ public extension BankAPI.Account {
self.gender = gender
self.address = address
self.dateOfBirth = dateOfBirth
+ self.accountId = accountId
}
public var method: HTTPMethod {
@@ -37,7 +37,9 @@ public extension BankAPI.Account {
var dict: [String: Any] = [:]
dict["signature"] = signature
+
dict["signing_cert"] = signingCert
+
dict["expected_hash"] = expectedHash
if name != nil {
@@ -59,4 +61,4 @@ public extension BankAPI.Account {
return dict
}
}
-}
\ No newline at end of file
+}
diff --git a/Sources/Pokepay/BankAPI/Account/PatchAccountCouponDetail.swift b/Sources/Pokepay/BankAPI/Account/PatchAccountCouponDetail.swift
index 5470eff..3453d4d 100644
--- a/Sources/Pokepay/BankAPI/Account/PatchAccountCouponDetail.swift
+++ b/Sources/Pokepay/BankAPI/Account/PatchAccountCouponDetail.swift
@@ -1,19 +1,20 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Account {
- struct PatchCouponDetail:BankRequest {
- public let accountId: String
- public let couponId:String
- public let isReceived: Bool
+ struct PatchAccountCouponDetail: BankRequest {
+ public let isReceived: Bool?
public let code: String?
+ public let accountId: String
+ public let couponId: String
public typealias Response = CouponDetail
- public init(accountId: String, couponId:String, isReceived: Bool = true, code: String? = nil) {
- self.accountId = accountId
- self.couponId = couponId
+ public init(isReceived: Bool? = nil, code: String? = nil, accountId: String, couponId: String) {
self.isReceived = isReceived
self.code = code
+ self.accountId = accountId
+ self.couponId = couponId
}
public var method: HTTPMethod {
@@ -23,15 +24,19 @@ public extension BankAPI.Account {
public var path: String {
return "/accounts/\(accountId)/coupons/\(couponId)"
}
-
+
public var parameters: Any? {
var dict: [String: Any] = [:]
- dict["is_received"] = isReceived
+
+ if isReceived != nil {
+ dict["is_received"] = isReceived
+ }
+
if code != nil {
dict["code"] = code
}
+
return dict
}
}
}
-
diff --git a/Sources/Pokepay/BankAPI/Account/UpdateAccount.swift b/Sources/Pokepay/BankAPI/Account/UpdateAccount.swift
new file mode 100644
index 0000000..61eb086
--- /dev/null
+++ b/Sources/Pokepay/BankAPI/Account/UpdateAccount.swift
@@ -0,0 +1,34 @@
+// DO NOT EDIT: File is generated by code generator.
+import APIKit
+
+public extension BankAPI.Account {
+ struct UpdateAccount: BankRequest {
+ public let name: String?
+ public let accountId: Uuid
+
+ public typealias Response = AccountDetail
+
+ public init(name: String? = nil, accountId: Uuid) {
+ self.name = name
+ self.accountId = accountId
+ }
+
+ public var method: HTTPMethod {
+ return .patch
+ }
+
+ public var path: String {
+ return "/accounts/\(accountId)"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ if name != nil {
+ dict["name"] = name
+ }
+
+ return dict
+ }
+ }
+}
diff --git a/Sources/Pokepay/BankAPI/Bank/BankTopUp.swift b/Sources/Pokepay/BankAPI/Bank/BankTopUp.swift
new file mode 100644
index 0000000..24ca8ff
--- /dev/null
+++ b/Sources/Pokepay/BankAPI/Bank/BankTopUp.swift
@@ -0,0 +1,46 @@
+// DO NOT EDIT: File is generated by code generator.
+import APIKit
+
+public extension BankAPI.Bank {
+ struct BankTopUp: BankRequest {
+ public let accountId: String
+ public let bankId: String
+ public let amount: Int
+ public let requestId: String?
+ public let userId: String
+
+ public typealias Response = UserTransaction
+
+ public init(accountId: String, bankId: String, amount: Int, requestId: String? = nil, userId: String) {
+ self.accountId = accountId
+ self.bankId = bankId
+ self.amount = amount
+ self.requestId = requestId
+ self.userId = userId
+ }
+
+ public var method: HTTPMethod {
+ return .post
+ }
+
+ public var path: String {
+ return "/users/\(userId)/banks/topup"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ dict["account_id"] = accountId
+
+ dict["bank_id"] = bankId
+
+ dict["amount"] = amount
+
+ if requestId != nil {
+ dict["request_id"] = requestId
+ }
+
+ return dict
+ }
+ }
+}
diff --git a/Sources/Pokepay/BankAPI/Bank/DeleteBank.swift b/Sources/Pokepay/BankAPI/Bank/DeleteBank.swift
new file mode 100644
index 0000000..828c0b7
--- /dev/null
+++ b/Sources/Pokepay/BankAPI/Bank/DeleteBank.swift
@@ -0,0 +1,32 @@
+// DO NOT EDIT: File is generated by code generator.
+import APIKit
+
+public extension BankAPI.Bank {
+ struct DeleteBank: BankRequest {
+ public let bankId: String
+ public let userId: String
+
+ public typealias Response = NoContent
+
+ public init(bankId: String, userId: String) {
+ self.bankId = bankId
+ self.userId = userId
+ }
+
+ public var method: HTTPMethod {
+ return .delete
+ }
+
+ public var path: String {
+ return "/users/\(userId)/banks"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ dict["bank_id"] = bankId
+
+ return dict
+ }
+ }
+}
diff --git a/Sources/Pokepay/BankAPI/Bank/ListBanks.swift b/Sources/Pokepay/BankAPI/Bank/ListBanks.swift
new file mode 100644
index 0000000..9d31e32
--- /dev/null
+++ b/Sources/Pokepay/BankAPI/Bank/ListBanks.swift
@@ -0,0 +1,34 @@
+// DO NOT EDIT: File is generated by code generator.
+import APIKit
+
+public extension BankAPI.Bank {
+ struct ListBanks: BankRequest {
+ public let userId: String
+ public let privateMoneyId: String?
+
+ public typealias Response = UserBanks
+
+ public init(userId: String, privateMoneyId: String? = nil) {
+ self.userId = userId
+ self.privateMoneyId = privateMoneyId
+ }
+
+ public var method: HTTPMethod {
+ return .get
+ }
+
+ public var path: String {
+ return "/users/\(userId)/banks"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ if privateMoneyId != nil {
+ dict["private_money_id"] = privateMoneyId
+ }
+
+ return dict
+ }
+ }
+}
diff --git a/Sources/Pokepay/BankAPI/Bill/CreateBill.swift b/Sources/Pokepay/BankAPI/Bill/CreateBill.swift
index c4fef2c..1438cba 100644
--- a/Sources/Pokepay/BankAPI/Bill/CreateBill.swift
+++ b/Sources/Pokepay/BankAPI/Bill/CreateBill.swift
@@ -1,19 +1,30 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Bill {
- struct Create: BankRequest {
- public let amount: Double?
+ struct CreateBill: BankRequest {
+ public let amount: Int?
public let accountId: String?
+ public let additionalAccountIds: [String]?
public let description: String?
+ public let isOnetime: Bool?
+ public let minAmount: Int?
+ public let maxAmount: Int?
public let products: [Product]?
+ public let metadata: String?
public typealias Response = Bill
- public init(amount: Double? = nil, accountId: String? = nil, description: String? = nil, products: [Product]? = nil) {
+ public init(amount: Int? = nil, accountId: String? = nil, additionalAccountIds: [String]? = nil, description: String? = nil, isOnetime: Bool? = nil, minAmount: Int? = nil, maxAmount: Int? = nil, products: [Product]? = nil, metadata: String? = nil) {
self.amount = amount
self.accountId = accountId
+ self.additionalAccountIds = additionalAccountIds
self.description = description
+ self.isOnetime = isOnetime
+ self.minAmount = minAmount
+ self.maxAmount = maxAmount
self.products = products
+ self.metadata = metadata
}
public var method: HTTPMethod {
@@ -25,16 +36,44 @@ public extension BankAPI.Bill {
}
public var parameters: Any? {
- var dict: [String: Any] = ["amount": amount as Any]
+ var dict: [String: Any] = [:]
+
+ if amount != nil {
+ dict["amount"] = amount
+ }
+
if accountId != nil {
dict["account_id"] = accountId
}
+
+ if additionalAccountIds != nil {
+ dict["additional_account_ids"] = additionalAccountIds
+ }
+
if description != nil {
dict["description"] = description
}
+
+ if isOnetime != nil {
+ dict["is_onetime"] = isOnetime
+ }
+
+ if minAmount != nil {
+ dict["min_amount"] = minAmount
+ }
+
+ if maxAmount != nil {
+ dict["max_amount"] = maxAmount
+ }
+
if products != nil {
- dict["products"] = products!.map { $0.dictionary }
+ dict["products"] = products
+ }
+
+ if metadata != nil {
+ dict["metadata"] = metadata
}
+
return dict
}
}
diff --git a/Sources/Pokepay/BankAPI/Bill/DeleteBill.swift b/Sources/Pokepay/BankAPI/Bill/DeleteBill.swift
index b14bba4..84acdc6 100644
--- a/Sources/Pokepay/BankAPI/Bill/DeleteBill.swift
+++ b/Sources/Pokepay/BankAPI/Bill/DeleteBill.swift
@@ -1,13 +1,14 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Bill {
- struct Delete: BankRequest {
- public let id: String
+ struct DeleteBill: BankRequest {
+ public let billId: String
public typealias Response = NoContent
- public init(id: String) {
- self.id = id
+ public init(billId: String) {
+ self.billId = billId
}
public var method: HTTPMethod {
@@ -15,7 +16,13 @@ public extension BankAPI.Bill {
}
public var path: String {
- return "/bills/\(id)"
+ return "/bills/\(billId)"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
}
}
}
diff --git a/Sources/Pokepay/BankAPI/Bill/GetBill.swift b/Sources/Pokepay/BankAPI/Bill/GetBill.swift
index 0280072..e42d505 100644
--- a/Sources/Pokepay/BankAPI/Bill/GetBill.swift
+++ b/Sources/Pokepay/BankAPI/Bill/GetBill.swift
@@ -1,13 +1,16 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Bill {
- struct Get: BankRequest {
- public let id: String
+ struct GetBill: BankRequest {
+ public let billId: String
+ public let privateMoneyId: String?
- public typealias Response = Bill
+ public typealias Response = BillWithAdditionalPrivateMoneys
- public init(id: String) {
- self.id = id
+ public init(billId: String, privateMoneyId: String? = nil) {
+ self.billId = billId
+ self.privateMoneyId = privateMoneyId
}
public var method: HTTPMethod {
@@ -15,7 +18,17 @@ public extension BankAPI.Bill {
}
public var path: String {
- return "/bills/\(id)"
+ return "/bills/\(billId)"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ if privateMoneyId != nil {
+ dict["private_money_id"] = privateMoneyId
+ }
+
+ return dict
}
}
}
diff --git a/Sources/Pokepay/BankAPI/Bill/GetBillLastTransaction.swift b/Sources/Pokepay/BankAPI/Bill/GetBillLastTransaction.swift
new file mode 100644
index 0000000..8be1a43
--- /dev/null
+++ b/Sources/Pokepay/BankAPI/Bill/GetBillLastTransaction.swift
@@ -0,0 +1,28 @@
+// DO NOT EDIT: File is generated by code generator.
+import APIKit
+
+public extension BankAPI.Bill {
+ struct GetBillLastTransaction: BankRequest {
+ public let billId: String
+
+ public typealias Response = UserTransaction
+
+ public init(billId: String) {
+ self.billId = billId
+ }
+
+ public var method: HTTPMethod {
+ return .get
+ }
+
+ public var path: String {
+ return "/bills/\(billId)/transaction"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
+ }
+ }
+}
diff --git a/Sources/Pokepay/BankAPI/Bill/ListBillTransactions.swift b/Sources/Pokepay/BankAPI/Bill/ListBillTransactions.swift
new file mode 100644
index 0000000..ee39bbf
--- /dev/null
+++ b/Sources/Pokepay/BankAPI/Bill/ListBillTransactions.swift
@@ -0,0 +1,46 @@
+// DO NOT EDIT: File is generated by code generator.
+import APIKit
+
+public extension BankAPI.Bill {
+ struct ListBillTransactions: BankRequest {
+ public let billId: String
+ public let before: String?
+ public let after: String?
+ public let perPage: Int?
+
+ public typealias Response = NIL
+
+ public init(billId: String, before: String? = nil, after: String? = nil, perPage: Int? = nil) {
+ self.billId = billId
+ self.before = before
+ self.after = after
+ self.perPage = perPage
+ }
+
+ public var method: HTTPMethod {
+ return .get
+ }
+
+ public var path: String {
+ return "/bills/\(billId)/transactions"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ if before != nil {
+ dict["before"] = before
+ }
+
+ if after != nil {
+ dict["after"] = after
+ }
+
+ if perPage != nil {
+ dict["per_page"] = perPage
+ }
+
+ return dict
+ }
+ }
+}
diff --git a/Sources/Pokepay/BankAPI/Bill/UpdateBill.swift b/Sources/Pokepay/BankAPI/Bill/UpdateBill.swift
index 27713e3..ba62d1a 100644
--- a/Sources/Pokepay/BankAPI/Bill/UpdateBill.swift
+++ b/Sources/Pokepay/BankAPI/Bill/UpdateBill.swift
@@ -1,17 +1,20 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Bill {
- struct Update: BankRequest {
- public let id: String
- public let amount: Double?
+ struct UpdateBill: BankRequest {
+ public let amount: Int?
public let description: String?
+ public let products: [Product]?
+ public let billId: String
public typealias Response = Bill
- public init(id: String, amount: Double? = nil, description: String? = nil) {
- self.id = id
+ public init(amount: Int? = nil, description: String? = nil, products: [Product]? = nil, billId: String) {
self.amount = amount
self.description = description
+ self.products = products
+ self.billId = billId
}
public var method: HTTPMethod {
@@ -19,15 +22,24 @@ public extension BankAPI.Bill {
}
public var path: String {
- return "/bills/\(id)"
+ return "/bills/\(billId)"
}
public var parameters: Any? {
- // 'amount' will be sent anyway even when it's nil (unsetting it)
- var dict: [String: Any] = ["amount": amount as Any]
+ var dict: [String: Any] = [:]
+
+ if amount != nil {
+ dict["amount"] = amount
+ }
+
if description != nil {
dict["description"] = description
}
+
+ if products != nil {
+ dict["products"] = products
+ }
+
return dict
}
}
diff --git a/Sources/Pokepay/BankAPI/Campaign/GetAccountCampaignPointAmounts.swift b/Sources/Pokepay/BankAPI/Campaign/GetAccountCampaignPointAmounts.swift
new file mode 100644
index 0000000..7130c3a
--- /dev/null
+++ b/Sources/Pokepay/BankAPI/Campaign/GetAccountCampaignPointAmounts.swift
@@ -0,0 +1,30 @@
+// DO NOT EDIT: File is generated by code generator.
+import APIKit
+
+public extension BankAPI.Campaign {
+ struct GetAccountCampaignPointAmounts: BankRequest {
+ public let accountId: String
+ public let campaignId: String
+
+ public typealias Response = AccountCampaignPointAmounts
+
+ public init(accountId: String, campaignId: String) {
+ self.accountId = accountId
+ self.campaignId = campaignId
+ }
+
+ public var method: HTTPMethod {
+ return .get
+ }
+
+ public var path: String {
+ return "/accounts/\(accountId)/campaigns/\(campaignId)/point-amounts"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
+ }
+ }
+}
diff --git a/Sources/Pokepay/BankAPI/Cashtray/CreateCashtray.swift b/Sources/Pokepay/BankAPI/Cashtray/CreateCashtray.swift
index cf691bc..a06e44d 100644
--- a/Sources/Pokepay/BankAPI/Cashtray/CreateCashtray.swift
+++ b/Sources/Pokepay/BankAPI/Cashtray/CreateCashtray.swift
@@ -1,19 +1,18 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Cashtray {
- struct Create: BankRequest {
- public let amount: Double
+ struct CreateCashtray: BankRequest {
+ public let amount: Int
public let description: String?
- public let expiresIn: Int32?
- public let products: [Product]?
+ public let expiresIn: Int?
public typealias Response = Cashtray
- public init(amount: Double, description: String? = nil, expiresIn: Int32? = nil, products: [Product]? = nil) {
+ public init(amount: Int, description: String? = nil, expiresIn: Int? = nil) {
self.amount = amount
self.description = description
self.expiresIn = expiresIn
- self.products = products
}
public var method: HTTPMethod {
@@ -25,16 +24,18 @@ public extension BankAPI.Cashtray {
}
public var parameters: Any? {
- var dict: [String: Any] = ["amount": amount as Any]
+ var dict: [String: Any] = [:]
+
+ dict["amount"] = amount
+
if description != nil {
dict["description"] = description
}
+
if expiresIn != nil {
dict["expires_in"] = expiresIn
}
- if products != nil {
- dict["products"] = products!.map { $0.dictionary }
- }
+
return dict
}
}
diff --git a/Sources/Pokepay/BankAPI/Cashtray/DeleteCashtray.swift b/Sources/Pokepay/BankAPI/Cashtray/DeleteCashtray.swift
index 1ec01d9..0179626 100644
--- a/Sources/Pokepay/BankAPI/Cashtray/DeleteCashtray.swift
+++ b/Sources/Pokepay/BankAPI/Cashtray/DeleteCashtray.swift
@@ -1,13 +1,14 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Cashtray {
- struct Delete: BankRequest {
- public let id: String
+ struct DeleteCashtray: BankRequest {
+ public let cashtrayId: String
public typealias Response = NoContent
- public init(id: String) {
- self.id = id
+ public init(cashtrayId: String) {
+ self.cashtrayId = cashtrayId
}
public var method: HTTPMethod {
@@ -15,7 +16,13 @@ public extension BankAPI.Cashtray {
}
public var path: String {
- return "/cashtrays/\(id)"
+ return "/cashtrays/\(cashtrayId)"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
}
}
}
diff --git a/Sources/Pokepay/BankAPI/Cashtray/GetCashtray.swift b/Sources/Pokepay/BankAPI/Cashtray/GetCashtray.swift
index 7e9fe71..e141001 100644
--- a/Sources/Pokepay/BankAPI/Cashtray/GetCashtray.swift
+++ b/Sources/Pokepay/BankAPI/Cashtray/GetCashtray.swift
@@ -1,13 +1,14 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Cashtray {
- struct Get: BankRequest {
- public let id: String
+ struct GetCashtray: BankRequest {
+ public let cashtrayId: String
- public typealias Response = Cashtray
+ public typealias Response = CashtrayWithAttemptAndTransaction
- public init(id: String) {
- self.id = id
+ public init(cashtrayId: String) {
+ self.cashtrayId = cashtrayId
}
public var method: HTTPMethod {
@@ -15,7 +16,13 @@ public extension BankAPI.Cashtray {
}
public var path: String {
- return "/cashtrays/\(id)"
+ return "/cashtrays/\(cashtrayId)"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
}
}
}
diff --git a/Sources/Pokepay/BankAPI/Cashtray/GetCashtrayAttempts.swift b/Sources/Pokepay/BankAPI/Cashtray/GetCashtrayAttempts.swift
index ee41e66..60a0147 100644
--- a/Sources/Pokepay/BankAPI/Cashtray/GetCashtrayAttempts.swift
+++ b/Sources/Pokepay/BankAPI/Cashtray/GetCashtrayAttempts.swift
@@ -1,13 +1,14 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Cashtray {
- struct GetAttempts: BankRequest {
- public let id: String
+ struct GetCashtrayAttempts: BankRequest {
+ public let cashtrayId: String
public typealias Response = CashtrayAttempts
- public init(id: String) {
- self.id = id
+ public init(cashtrayId: String) {
+ self.cashtrayId = cashtrayId
}
public var method: HTTPMethod {
@@ -15,7 +16,13 @@ public extension BankAPI.Cashtray {
}
public var path: String {
- return "/cashtrays/\(id)/attempts"
+ return "/cashtrays/\(cashtrayId)/attempts"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
}
}
}
diff --git a/Sources/Pokepay/BankAPI/Cashtray/UpdateCashtray.swift b/Sources/Pokepay/BankAPI/Cashtray/UpdateCashtray.swift
index 8f8b6a8..657d652 100644
--- a/Sources/Pokepay/BankAPI/Cashtray/UpdateCashtray.swift
+++ b/Sources/Pokepay/BankAPI/Cashtray/UpdateCashtray.swift
@@ -1,19 +1,22 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Cashtray {
- struct Update: BankRequest {
- public let id: String
- public let amount: Double?
+ struct UpdateCashtray: BankRequest {
+ public let amount: Int?
public let description: String?
- public let expiresIn: Int32?
+ public let expiresIn: Int?
+ public let products: [Product]?
+ public let cashtrayId: String
public typealias Response = Cashtray
- public init(id: String, amount: Double? = nil, description: String? = nil, expiresIn: Int32? = nil) {
- self.id = id
+ public init(amount: Int? = nil, description: String? = nil, expiresIn: Int? = nil, products: [Product]? = nil, cashtrayId: String) {
self.amount = amount
self.description = description
self.expiresIn = expiresIn
+ self.products = products
+ self.cashtrayId = cashtrayId
}
public var method: HTTPMethod {
@@ -21,20 +24,28 @@ public extension BankAPI.Cashtray {
}
public var path: String {
- return "/cashtrays/\(id)"
+ return "/cashtrays/\(cashtrayId)"
}
public var parameters: Any? {
var dict: [String: Any] = [:]
+
if amount != nil {
dict["amount"] = amount
}
+
if description != nil {
dict["description"] = description
}
+
if expiresIn != nil {
dict["expires_in"] = expiresIn
}
+
+ if products != nil {
+ dict["products"] = products
+ }
+
return dict
}
}
diff --git a/Sources/Pokepay/BankAPI/Check/CreateCheck.swift b/Sources/Pokepay/BankAPI/Check/CreateCheck.swift
index cd22044..9a7606a 100644
--- a/Sources/Pokepay/BankAPI/Check/CreateCheck.swift
+++ b/Sources/Pokepay/BankAPI/Check/CreateCheck.swift
@@ -1,20 +1,34 @@
-import Foundation
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Check {
- struct Create: BankRequest {
- public let amount: Double?
+ struct CreateCheck: BankRequest {
+ public let amount: Int?
+ public let moneyAmount: Int?
+ public let pointAmount: Int?
public let accountId: String?
public let description: String?
- public let expiresAt: Date?
+ public let isOnetime: Bool?
+ public let usageLimit: Int?
+ public let expiresAt: String?
+ public let pointExpiresAt: String?
+ public let pointExpiresInDays: Int?
+ public let metadata: String?
public typealias Response = Check
- public init(amount: Double? = nil, accountId: String? = nil, description: String? = nil, expiresAt: Date? = nil) {
+ public init(amount: Int? = nil, moneyAmount: Int? = nil, pointAmount: Int? = nil, accountId: String? = nil, description: String? = nil, isOnetime: Bool? = nil, usageLimit: Int? = nil, expiresAt: String? = nil, pointExpiresAt: String? = nil, pointExpiresInDays: Int? = nil, metadata: String? = nil) {
self.amount = amount
+ self.moneyAmount = moneyAmount
+ self.pointAmount = pointAmount
self.accountId = accountId
self.description = description
+ self.isOnetime = isOnetime
+ self.usageLimit = usageLimit
self.expiresAt = expiresAt
+ self.pointExpiresAt = pointExpiresAt
+ self.pointExpiresInDays = pointExpiresInDays
+ self.metadata = metadata
}
public var method: HTTPMethod {
@@ -27,18 +41,51 @@ public extension BankAPI.Check {
public var parameters: Any? {
var dict: [String: Any] = [:]
+
if amount != nil {
dict["amount"] = amount
}
+
+ if moneyAmount != nil {
+ dict["money_amount"] = moneyAmount
+ }
+
+ if pointAmount != nil {
+ dict["point_amount"] = pointAmount
+ }
+
if accountId != nil {
dict["account_id"] = accountId
}
+
if description != nil {
dict["description"] = description
}
- if let p = expiresAt {
- dict["expires_at"] = BankAPIDateFormatter.string(date: p)
+
+ if isOnetime != nil {
+ dict["is_onetime"] = isOnetime
+ }
+
+ if usageLimit != nil {
+ dict["usage_limit"] = usageLimit
}
+
+ if expiresAt != nil {
+ dict["expires_at"] = expiresAt
+ }
+
+ if pointExpiresAt != nil {
+ dict["point_expires_at"] = pointExpiresAt
+ }
+
+ if pointExpiresInDays != nil {
+ dict["point_expires_in_days"] = pointExpiresInDays
+ }
+
+ if metadata != nil {
+ dict["metadata"] = metadata
+ }
+
return dict
}
}
diff --git a/Sources/Pokepay/BankAPI/Check/DeleteCheck.swift b/Sources/Pokepay/BankAPI/Check/DeleteCheck.swift
index 9bc7044..3ce3a24 100644
--- a/Sources/Pokepay/BankAPI/Check/DeleteCheck.swift
+++ b/Sources/Pokepay/BankAPI/Check/DeleteCheck.swift
@@ -1,13 +1,14 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Check {
- struct Delete: BankRequest {
- public let id: String
+ struct DeleteCheck: BankRequest {
+ public let checkId: String
public typealias Response = NoContent
- public init(id: String) {
- self.id = id
+ public init(checkId: String) {
+ self.checkId = checkId
}
public var method: HTTPMethod {
@@ -15,7 +16,13 @@ public extension BankAPI.Check {
}
public var path: String {
- return "/checks/\(id)"
+ return "/checks/\(checkId)"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
}
}
}
diff --git a/Sources/Pokepay/BankAPI/Check/GetCheck.swift b/Sources/Pokepay/BankAPI/Check/GetCheck.swift
index 5f2c240..603f974 100644
--- a/Sources/Pokepay/BankAPI/Check/GetCheck.swift
+++ b/Sources/Pokepay/BankAPI/Check/GetCheck.swift
@@ -1,13 +1,14 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Check {
- struct Get: BankRequest {
- public let id: String
+ struct GetCheck: BankRequest {
+ public let checkId: String
public typealias Response = Check
- public init(id: String) {
- self.id = id
+ public init(checkId: String) {
+ self.checkId = checkId
}
public var method: HTTPMethod {
@@ -15,7 +16,13 @@ public extension BankAPI.Check {
}
public var path: String {
- return "/checks/\(id)"
+ return "/checks/\(checkId)"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
}
}
}
diff --git a/Sources/Pokepay/BankAPI/Check/UpdateCheck.swift b/Sources/Pokepay/BankAPI/Check/UpdateCheck.swift
index af004a8..66fadc6 100644
--- a/Sources/Pokepay/BankAPI/Check/UpdateCheck.swift
+++ b/Sources/Pokepay/BankAPI/Check/UpdateCheck.swift
@@ -1,17 +1,24 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Check {
- struct Update: BankRequest {
- public let id: String
- public let amount: Double?
+ struct UpdateCheck: BankRequest {
+ public let amount: Int?
public let description: String?
+ public let expiresAt: String?
+ public let pointExpiresAt: String?
+ public let pointExpiresInDays: Int?
+ public let checkId: String
public typealias Response = Check
- public init(id: String, amount: Double? = nil, description: String? = nil) {
- self.id = id
+ public init(amount: Int? = nil, description: String? = nil, expiresAt: String? = nil, pointExpiresAt: String? = nil, pointExpiresInDays: Int? = nil, checkId: String) {
self.amount = amount
self.description = description
+ self.expiresAt = expiresAt
+ self.pointExpiresAt = pointExpiresAt
+ self.pointExpiresInDays = pointExpiresInDays
+ self.checkId = checkId
}
public var method: HTTPMethod {
@@ -19,17 +26,32 @@ public extension BankAPI.Check {
}
public var path: String {
- return "/checks/\(id)"
+ return "/checks/\(checkId)"
}
public var parameters: Any? {
var dict: [String: Any] = [:]
+
if amount != nil {
dict["amount"] = amount
}
+
if description != nil {
dict["description"] = description
}
+
+ if expiresAt != nil {
+ dict["expires_at"] = expiresAt
+ }
+
+ if pointExpiresAt != nil {
+ dict["point_expires_at"] = pointExpiresAt
+ }
+
+ if pointExpiresInDays != nil {
+ dict["point_expires_in_days"] = pointExpiresInDays
+ }
+
return dict
}
}
diff --git a/Sources/Pokepay/BankAPI/Coupon/GetPrivateMoneyCoupons.swift b/Sources/Pokepay/BankAPI/Coupon/GetPrivateMoneyCoupons.swift
new file mode 100644
index 0000000..0b48e9a
--- /dev/null
+++ b/Sources/Pokepay/BankAPI/Coupon/GetPrivateMoneyCoupons.swift
@@ -0,0 +1,42 @@
+// DO NOT EDIT: File is generated by code generator.
+import APIKit
+
+public extension BankAPI.Coupon {
+ struct GetPrivateMoneyCoupons: BankRequest {
+ public let privateMoneyId: Uuid
+ public let before: Uuid
+ public let after: Uuid
+ public let perPage: Int?
+
+ public typealias Response = PaginatedPrivateMoneyCoupons
+
+ public init(privateMoneyId: Uuid, before: Uuid, after: Uuid, perPage: Int? = nil) {
+ self.privateMoneyId = privateMoneyId
+ self.before = before
+ self.after = after
+ self.perPage = perPage
+ }
+
+ public var method: HTTPMethod {
+ return .get
+ }
+
+ public var path: String {
+ return "/private-moneys/\(privateMoneyId)/coupons"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ dict["before"] = before
+
+ dict["after"] = after
+
+ if perPage != nil {
+ dict["per_page"] = perPage
+ }
+
+ return dict
+ }
+ }
+}
diff --git a/Sources/Pokepay/BankAPI/Cpm/GetCpmToken.swift b/Sources/Pokepay/BankAPI/Cpm/GetCpmToken.swift
new file mode 100644
index 0000000..b27eaa2
--- /dev/null
+++ b/Sources/Pokepay/BankAPI/Cpm/GetCpmToken.swift
@@ -0,0 +1,28 @@
+// DO NOT EDIT: File is generated by code generator.
+import APIKit
+
+public extension BankAPI.Cpm {
+ struct GetCpmToken: BankRequest {
+ public let cpmToken: String
+
+ public typealias Response = CpmToken
+
+ public init(cpmToken: String) {
+ self.cpmToken = cpmToken
+ }
+
+ public var method: HTTPMethod {
+ return .get
+ }
+
+ public var path: String {
+ return "/cpm/\(cpmToken)"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
+ }
+ }
+}
diff --git a/Sources/Pokepay/BankAPI/CreditCard/CreateCreditCard.swift b/Sources/Pokepay/BankAPI/CreditCard/CreateCreditCard.swift
index 5d853a4..20c06fd 100644
--- a/Sources/Pokepay/BankAPI/CreditCard/CreateCreditCard.swift
+++ b/Sources/Pokepay/BankAPI/CreditCard/CreateCreditCard.swift
@@ -5,12 +5,12 @@ public extension BankAPI.CreditCard {
struct CreateCreditCard: BankRequest {
public let token: String
public let isCardholderNameSpecified: Bool?
- public let organizationCode: String?
+ public let organizationCode: String
public let userId: String
public typealias Response = CreditCard
- public init(token: String, isCardholderNameSpecified: Bool? = nil, organizationCode: String? = nil, userId: String) {
+ public init(token: String, isCardholderNameSpecified: Bool? = nil, organizationCode: String, userId: String) {
self.token = token
self.isCardholderNameSpecified = isCardholderNameSpecified
self.organizationCode = organizationCode
@@ -34,9 +34,7 @@ public extension BankAPI.CreditCard {
dict["is_cardholder_name_specified"] = isCardholderNameSpecified
}
- if organizationCode != nil {
- dict["organization_code"] = organizationCode
- }
+ dict["organization_code"] = organizationCode
return dict
}
diff --git a/Sources/Pokepay/BankAPI/CreditCard/DeleteCreditCard.swift b/Sources/Pokepay/BankAPI/CreditCard/DeleteCreditCard.swift
index a5b1b8e..fd26719 100644
--- a/Sources/Pokepay/BankAPI/CreditCard/DeleteCreditCard.swift
+++ b/Sources/Pokepay/BankAPI/CreditCard/DeleteCreditCard.swift
@@ -4,12 +4,12 @@ import APIKit
public extension BankAPI.CreditCard {
struct DeleteCreditCard: BankRequest {
public let cardRegisteredAt: String
- public let organizationCode: String?
+ public let organizationCode: String
public let userId: String
public typealias Response = NoContent
- public init(cardRegisteredAt: String, organizationCode: String? = nil, userId: String) {
+ public init(cardRegisteredAt: String, organizationCode: String, userId: String) {
self.cardRegisteredAt = cardRegisteredAt
self.organizationCode = organizationCode
self.userId = userId
@@ -28,9 +28,7 @@ public extension BankAPI.CreditCard {
dict["card_registered_at"] = cardRegisteredAt
- if organizationCode != nil {
- dict["organization_code"] = organizationCode
- }
+ dict["organization_code"] = organizationCode
return dict
}
diff --git a/Sources/Pokepay/BankAPI/CreditCard/GetCreditCards.swift b/Sources/Pokepay/BankAPI/CreditCard/GetCreditCards.swift
index b8c8c6d..5b803a1 100644
--- a/Sources/Pokepay/BankAPI/CreditCard/GetCreditCards.swift
+++ b/Sources/Pokepay/BankAPI/CreditCard/GetCreditCards.swift
@@ -7,11 +7,11 @@ public extension BankAPI.CreditCard {
public let before: String?
public let after: String?
public let perPage: Int?
- public let organizationCode: String?
+ public let organizationCode: String
public typealias Response = PaginatedCreditCards
- public init(userId: String, before: String? = nil, after: String? = nil, perPage: Int? = nil, organizationCode: String? = nil) {
+ public init(userId: String, before: String? = nil, after: String? = nil, perPage: Int? = nil, organizationCode: String) {
self.userId = userId
self.before = before
self.after = after
@@ -42,9 +42,7 @@ public extension BankAPI.CreditCard {
dict["per_page"] = perPage
}
- if organizationCode != nil {
- dict["organization_code"] = organizationCode
- }
+ dict["organization_code"] = organizationCode
return dict
}
diff --git a/Sources/Pokepay/BankAPI/CreditCard/TopupWithCreditCardMdkToken.swift b/Sources/Pokepay/BankAPI/CreditCard/TopupWithCreditCardMdkToken.swift
index 2b30dfd..bb96902 100644
--- a/Sources/Pokepay/BankAPI/CreditCard/TopupWithCreditCardMdkToken.swift
+++ b/Sources/Pokepay/BankAPI/CreditCard/TopupWithCreditCardMdkToken.swift
@@ -7,20 +7,20 @@ public extension BankAPI.CreditCard {
public let token: String
public let accountId: String
public let amount: Int
- public let requestId: String?
- public let organizationCode: String?
+ public let organizationCode: String
public let isCardholderNameSpecified: Bool?
+ public let requestId: String?
public typealias Response = String
- public init(userId: String, token: String, accountId: String, amount: Int, requestId: String? = nil, organizationCode: String? = nil, isCardholderNameSpecified: Bool? = nil) {
+ public init(userId: String, token: String, accountId: String, amount: Int, organizationCode: String, isCardholderNameSpecified: Bool? = nil, requestId: String? = nil) {
self.userId = userId
self.token = token
self.accountId = accountId
self.amount = amount
- self.requestId = requestId
self.organizationCode = organizationCode
self.isCardholderNameSpecified = isCardholderNameSpecified
+ self.requestId = requestId
}
public var method: HTTPMethod {
@@ -42,18 +42,16 @@ public extension BankAPI.CreditCard {
dict["amount"] = amount
- if requestId != nil {
- dict["request_id"] = requestId
- }
-
- if organizationCode != nil {
- dict["organization_code"] = organizationCode
- }
+ dict["organization_code"] = organizationCode
if isCardholderNameSpecified != nil {
dict["is_cardholder_name_specified"] = isCardholderNameSpecified
}
+ if requestId != nil {
+ dict["request_id"] = requestId
+ }
+
return dict
}
diff --git a/Sources/Pokepay/BankAPI/CreditCard/TopupWithCreditCardMembership.swift b/Sources/Pokepay/BankAPI/CreditCard/TopupWithCreditCardMembership.swift
index 0996473..60579af 100644
--- a/Sources/Pokepay/BankAPI/CreditCard/TopupWithCreditCardMembership.swift
+++ b/Sources/Pokepay/BankAPI/CreditCard/TopupWithCreditCardMembership.swift
@@ -7,20 +7,20 @@ public extension BankAPI.CreditCard {
public let cardRegisteredAt: String
public let accountId: String
public let amount: Int
- public let requestId: String?
public let deleteCardIfAuthFail: Bool?
- public let organizationCode: String?
+ public let organizationCode: String
+ public let requestId: String?
public typealias Response = String
- public init(userId: String, cardRegisteredAt: String, accountId: String, amount: Int, requestId: String? = nil, deleteCardIfAuthFail: Bool? = nil, organizationCode: String? = nil) {
+ public init(userId: String, cardRegisteredAt: String, accountId: String, amount: Int, deleteCardIfAuthFail: Bool? = nil, organizationCode: String, requestId: String? = nil) {
self.userId = userId
self.cardRegisteredAt = cardRegisteredAt
self.accountId = accountId
self.amount = amount
- self.requestId = requestId
self.deleteCardIfAuthFail = deleteCardIfAuthFail
self.organizationCode = organizationCode
+ self.requestId = requestId
}
public var method: HTTPMethod {
@@ -42,16 +42,14 @@ public extension BankAPI.CreditCard {
dict["amount"] = amount
- if requestId != nil {
- dict["request_id"] = requestId
- }
-
if deleteCardIfAuthFail != nil {
dict["delete_card_if_auth_fail"] = deleteCardIfAuthFail
}
- if organizationCode != nil {
- dict["organization_code"] = organizationCode
+ dict["organization_code"] = organizationCode
+
+ if requestId != nil {
+ dict["request_id"] = requestId
}
return dict
diff --git a/Sources/Pokepay/BankAPI/Merchants/ListMerchantTransactions.swift b/Sources/Pokepay/BankAPI/Merchants/ListMerchantTransactions.swift
new file mode 100644
index 0000000..0148435
--- /dev/null
+++ b/Sources/Pokepay/BankAPI/Merchants/ListMerchantTransactions.swift
@@ -0,0 +1,28 @@
+// DO NOT EDIT: File is generated by code generator.
+import APIKit
+
+public extension BankAPI.Merchants {
+ struct ListMerchantTransactions: BankRequest {
+ public let transactionId: String
+
+ public typealias Response = UserTransactionWithCustomerBalance
+
+ public init(transactionId: String) {
+ self.transactionId = transactionId
+ }
+
+ public var method: HTTPMethod {
+ return .get
+ }
+
+ public var path: String {
+ return "/merchants/transactions/\(transactionId)"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
+ }
+ }
+}
diff --git a/Sources/Pokepay/BankAPI/PrivateMoney/GetPrivateMoney.swift b/Sources/Pokepay/BankAPI/PrivateMoney/GetPrivateMoney.swift
index f6f9b1d..f6d15f6 100644
--- a/Sources/Pokepay/BankAPI/PrivateMoney/GetPrivateMoney.swift
+++ b/Sources/Pokepay/BankAPI/PrivateMoney/GetPrivateMoney.swift
@@ -1,13 +1,13 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.PrivateMoney {
-
struct GetPrivateMoney: BankRequest {
- public let privateMoneyId:String
+ public let privateMoneyId: Uuid
- public typealias Response = PrivateMoney
+ public typealias Response = PrivateMoneyDetail
- public init(privateMoneyId: String) {
+ public init(privateMoneyId: Uuid) {
self.privateMoneyId = privateMoneyId
}
@@ -20,9 +20,9 @@ public extension BankAPI.PrivateMoney {
}
public var parameters: Any? {
- return [:]
- }
+ var dict: [String: Any] = [:]
+ return dict
+ }
}
-
}
diff --git a/Sources/Pokepay/BankAPI/PrivateMoney/GetPrivateMoneyCommercialAct.swift b/Sources/Pokepay/BankAPI/PrivateMoney/GetPrivateMoneyCommercialAct.swift
new file mode 100644
index 0000000..bfc8bac
--- /dev/null
+++ b/Sources/Pokepay/BankAPI/PrivateMoney/GetPrivateMoneyCommercialAct.swift
@@ -0,0 +1,28 @@
+// DO NOT EDIT: File is generated by code generator.
+import APIKit
+
+public extension BankAPI.PrivateMoney {
+ struct GetPrivateMoneyCommercialAct: BankRequest {
+ public let privateMoneyId: Uuid
+
+ public typealias Response = NIL
+
+ public init(privateMoneyId: Uuid) {
+ self.privateMoneyId = privateMoneyId
+ }
+
+ public var method: HTTPMethod {
+ return .get
+ }
+
+ public var path: String {
+ return "/private-moneys/\(privateMoneyId)/commercial-act"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
+ }
+ }
+}
diff --git a/Sources/Pokepay/BankAPI/PrivateMoney/GetPrivateMoneyPaymentAct.swift b/Sources/Pokepay/BankAPI/PrivateMoney/GetPrivateMoneyPaymentAct.swift
new file mode 100644
index 0000000..31483a7
--- /dev/null
+++ b/Sources/Pokepay/BankAPI/PrivateMoney/GetPrivateMoneyPaymentAct.swift
@@ -0,0 +1,28 @@
+// DO NOT EDIT: File is generated by code generator.
+import APIKit
+
+public extension BankAPI.PrivateMoney {
+ struct GetPrivateMoneyPaymentAct: BankRequest {
+ public let privateMoneyId: Uuid
+
+ public typealias Response = NIL
+
+ public init(privateMoneyId: Uuid) {
+ self.privateMoneyId = privateMoneyId
+ }
+
+ public var method: HTTPMethod {
+ return .get
+ }
+
+ public var path: String {
+ return "/private-moneys/\(privateMoneyId)/payment-act"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
+ }
+ }
+}
diff --git a/Sources/Pokepay/BankAPI/PrivateMoney/GetPrivateMoneyPrivacyPolicy.swift b/Sources/Pokepay/BankAPI/PrivateMoney/GetPrivateMoneyPrivacyPolicy.swift
new file mode 100644
index 0000000..a648d9a
--- /dev/null
+++ b/Sources/Pokepay/BankAPI/PrivateMoney/GetPrivateMoneyPrivacyPolicy.swift
@@ -0,0 +1,28 @@
+// DO NOT EDIT: File is generated by code generator.
+import APIKit
+
+public extension BankAPI.PrivateMoney {
+ struct GetPrivateMoneyPrivacyPolicy: BankRequest {
+ public let privateMoneyId: Uuid
+
+ public typealias Response = NIL
+
+ public init(privateMoneyId: Uuid) {
+ self.privateMoneyId = privateMoneyId
+ }
+
+ public var method: HTTPMethod {
+ return .get
+ }
+
+ public var path: String {
+ return "/private-moneys/\(privateMoneyId)/privacy-policy"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
+ }
+ }
+}
diff --git a/Sources/Pokepay/BankAPI/PrivateMoney/GetPrivateMoneyTerms.swift b/Sources/Pokepay/BankAPI/PrivateMoney/GetPrivateMoneyTerms.swift
new file mode 100644
index 0000000..c75ed25
--- /dev/null
+++ b/Sources/Pokepay/BankAPI/PrivateMoney/GetPrivateMoneyTerms.swift
@@ -0,0 +1,28 @@
+// DO NOT EDIT: File is generated by code generator.
+import APIKit
+
+public extension BankAPI.PrivateMoney {
+ struct GetPrivateMoneyTerms: BankRequest {
+ public let privateMoneyId: Uuid
+
+ public typealias Response = NIL
+
+ public init(privateMoneyId: Uuid) {
+ self.privateMoneyId = privateMoneyId
+ }
+
+ public var method: HTTPMethod {
+ return .get
+ }
+
+ public var path: String {
+ return "/private-moneys/\(privateMoneyId)/terms"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
+ }
+ }
+}
diff --git a/Sources/Pokepay/BankAPI/PrivateMoney/ListPrivateMoneys.swift b/Sources/Pokepay/BankAPI/PrivateMoney/ListPrivateMoneys.swift
new file mode 100644
index 0000000..fe06cd7
--- /dev/null
+++ b/Sources/Pokepay/BankAPI/PrivateMoney/ListPrivateMoneys.swift
@@ -0,0 +1,52 @@
+// DO NOT EDIT: File is generated by code generator.
+import APIKit
+
+public extension BankAPI.PrivateMoney {
+ struct ListPrivateMoneys: BankRequest {
+ public let name: String?
+ public let includeExclusive: Bool?
+ public let before: Uuid
+ public let after: Uuid
+ public let perPage: Int?
+
+ public typealias Response = PaginatedPrivateMoneys
+
+ public init(name: String? = nil, includeExclusive: Bool? = nil, before: Uuid, after: Uuid, perPage: Int? = nil) {
+ self.name = name
+ self.includeExclusive = includeExclusive
+ self.before = before
+ self.after = after
+ self.perPage = perPage
+ }
+
+ public var method: HTTPMethod {
+ return .get
+ }
+
+ public var path: String {
+ return "/private-moneys"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ if name != nil {
+ dict["name"] = name
+ }
+
+ if includeExclusive != nil {
+ dict["include_exclusive"] = includeExclusive
+ }
+
+ dict["before"] = before
+
+ dict["after"] = after
+
+ if perPage != nil {
+ dict["per_page"] = perPage
+ }
+
+ return dict
+ }
+ }
+}
diff --git a/Sources/Pokepay/BankAPI/Terminal/AddTerminalPublicKey.swift b/Sources/Pokepay/BankAPI/Terminal/AddTerminalPublicKey.swift
index a7d47ab..daa58f5 100644
--- a/Sources/Pokepay/BankAPI/Terminal/AddTerminalPublicKey.swift
+++ b/Sources/Pokepay/BankAPI/Terminal/AddTerminalPublicKey.swift
@@ -1,10 +1,11 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Terminal {
- struct AddPublicKey: BankRequest {
+ struct AddTerminalPublicKey: BankRequest {
public let key: String
- public typealias Response = ServerKey
+ public typealias Response = TerminalServerKey
public init(key: String) {
self.key = key
@@ -19,9 +20,11 @@ public extension BankAPI.Terminal {
}
public var parameters: Any? {
- return [
- "key": self.key
- ]
+ var dict: [String: Any] = [:]
+
+ dict["key"] = key
+
+ return dict
}
}
}
diff --git a/Sources/Pokepay/BankAPI/Terminal/GetTerminal.swift b/Sources/Pokepay/BankAPI/Terminal/GetTerminal.swift
index 9bc0e3b..9df85f7 100644
--- a/Sources/Pokepay/BankAPI/Terminal/GetTerminal.swift
+++ b/Sources/Pokepay/BankAPI/Terminal/GetTerminal.swift
@@ -1,10 +1,13 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Terminal {
- struct Get: BankRequest {
+ struct GetTerminal: BankRequest {
+
public typealias Response = Terminal
- public init() {}
+ public init() {
+ }
public var method: HTTPMethod {
return .get
@@ -13,5 +16,11 @@ public extension BankAPI.Terminal {
public var path: String {
return "/terminal"
}
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
+ }
}
}
diff --git a/Sources/Pokepay/BankAPI/Terminal/UpdateTerminal.swift b/Sources/Pokepay/BankAPI/Terminal/UpdateTerminal.swift
index 1c19555..7ea278b 100644
--- a/Sources/Pokepay/BankAPI/Terminal/UpdateTerminal.swift
+++ b/Sources/Pokepay/BankAPI/Terminal/UpdateTerminal.swift
@@ -1,16 +1,19 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Terminal {
- struct Update: BankRequest {
- let accountId: String
- let name: String
- let pushToken: String?
+ struct UpdateTerminal: BankRequest {
+ public let name: String?
+ public let accountId: String?
+ public let pushService: String?
+ public let pushToken: String?
public typealias Response = Terminal
- public init(name: String, accountId: String, pushToken: String? = nil) {
+ public init(name: String? = nil, accountId: String? = nil, pushService: String? = nil, pushToken: String? = nil) {
self.name = name
self.accountId = accountId
+ self.pushService = pushService
self.pushToken = pushToken
}
@@ -23,11 +26,25 @@ public extension BankAPI.Terminal {
}
public var parameters: Any? {
- return [
- "account_id": accountId,
- "name": name,
- "push_token": pushToken
- ]
+ var dict: [String: Any] = [:]
+
+ if name != nil {
+ dict["name"] = name
+ }
+
+ if accountId != nil {
+ dict["account_id"] = accountId
+ }
+
+ if pushService != nil {
+ dict["push_service"] = pushService
+ }
+
+ if pushToken != nil {
+ dict["push_token"] = pushToken
+ }
+
+ return dict
}
}
}
diff --git a/Sources/Pokepay/BankAPI/Transaction/GetTransaction.swift b/Sources/Pokepay/BankAPI/Transaction/GetTransaction.swift
index 9c76482..2b69532 100644
--- a/Sources/Pokepay/BankAPI/Transaction/GetTransaction.swift
+++ b/Sources/Pokepay/BankAPI/Transaction/GetTransaction.swift
@@ -1,13 +1,14 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.Transaction {
- struct Get: BankRequest {
- public let id: String
+ struct GetTransaction: BankRequest {
+ public let transactionId: String
public typealias Response = UserTransaction
- public init(id: String) {
- self.id = id
+ public init(transactionId: String) {
+ self.transactionId = transactionId
}
public var method: HTTPMethod {
@@ -15,7 +16,13 @@ public extension BankAPI.Transaction {
}
public var path: String {
- return "/transactions/\(id)"
+ return "/transactions/\(transactionId)"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
}
}
}
diff --git a/Sources/Pokepay/BankAPI/Transaction/RefundTransaction.swift b/Sources/Pokepay/BankAPI/Transaction/RefundTransaction.swift
new file mode 100644
index 0000000..269b1c9
--- /dev/null
+++ b/Sources/Pokepay/BankAPI/Transaction/RefundTransaction.swift
@@ -0,0 +1,34 @@
+// DO NOT EDIT: File is generated by code generator.
+import APIKit
+
+public extension BankAPI.Transaction {
+ struct RefundTransaction: BankRequest {
+ public let amount: Int?
+ public let transactionId: String
+
+ public typealias Response = UserTransaction
+
+ public init(amount: Int? = nil, transactionId: String) {
+ self.amount = amount
+ self.transactionId = transactionId
+ }
+
+ public var method: HTTPMethod {
+ return .post
+ }
+
+ public var path: String {
+ return "/transactions/\(transactionId)/refund"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ if amount != nil {
+ dict["amount"] = amount
+ }
+
+ return dict
+ }
+ }
+}
diff --git a/Sources/Pokepay/BankAPI/User/GetUser.swift b/Sources/Pokepay/BankAPI/User/GetUser.swift
new file mode 100644
index 0000000..9a666b6
--- /dev/null
+++ b/Sources/Pokepay/BankAPI/User/GetUser.swift
@@ -0,0 +1,28 @@
+// DO NOT EDIT: File is generated by code generator.
+import APIKit
+
+public extension BankAPI.User {
+ struct GetUser: BankRequest {
+ public let userId: String
+
+ public typealias Response = UserWithDetails
+
+ public init(userId: String) {
+ self.userId = userId
+ }
+
+ public var method: HTTPMethod {
+ return .get
+ }
+
+ public var path: String {
+ return "/users/\(userId)"
+ }
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
+ }
+ }
+}
diff --git a/Sources/Pokepay/BankAPI/User/GetUserAccounts.swift b/Sources/Pokepay/BankAPI/User/GetUserAccounts.swift
index fb774d2..8787eb3 100644
--- a/Sources/Pokepay/BankAPI/User/GetUserAccounts.swift
+++ b/Sources/Pokepay/BankAPI/User/GetUserAccounts.swift
@@ -1,16 +1,17 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.User {
- struct GetAccounts: BankRequest {
- public let id: String
+ struct GetUserAccounts: BankRequest {
+ public let userId: String
public let before: String?
public let after: String?
- public let perPage: Int32?
+ public let perPage: Int?
- public typealias Response = PaginatedAccounts
+ public typealias Response = PaginatedUserAccounts
- public init(id: String, before: String? = nil, after: String? = nil, perPage: Int32? = nil) {
- self.id = id
+ public init(userId: String, before: String? = nil, after: String? = nil, perPage: Int? = nil) {
+ self.userId = userId
self.before = before
self.after = after
self.perPage = perPage
@@ -21,20 +22,24 @@ public extension BankAPI.User {
}
public var path: String {
- return "/users/\(id)/accounts"
+ return "/users/\(userId)/accounts"
}
public var parameters: Any? {
var dict: [String: Any] = [:]
+
if before != nil {
dict["before"] = before
}
+
if after != nil {
dict["after"] = after
}
+
if perPage != nil {
dict["per_page"] = perPage
}
+
return dict
}
}
diff --git a/Sources/Pokepay/BankAPI/User/GetUserSettingUrl.swift b/Sources/Pokepay/BankAPI/User/GetUserSettingUrl.swift
index 7a0aaf4..ec39dac 100644
--- a/Sources/Pokepay/BankAPI/User/GetUserSettingUrl.swift
+++ b/Sources/Pokepay/BankAPI/User/GetUserSettingUrl.swift
@@ -1,14 +1,12 @@
-
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.User {
struct GetUserSettingUrl: BankRequest {
- public let accessCode: String
- public typealias Response = UserSettingUrl
+ public typealias Response = NIL
- public init(accessCode: String) {
- self.accessCode = accessCode
+ public init() {
}
public var method: HTTPMethod {
@@ -18,5 +16,11 @@ public extension BankAPI.User {
public var path: String {
return "/oauth/full-access"
}
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
+ }
}
}
diff --git a/Sources/Pokepay/BankAPI/User/GetUserTransactions.swift b/Sources/Pokepay/BankAPI/User/GetUserTransactions.swift
index a3c62c8..5cb55c8 100644
--- a/Sources/Pokepay/BankAPI/User/GetUserTransactions.swift
+++ b/Sources/Pokepay/BankAPI/User/GetUserTransactions.swift
@@ -1,16 +1,17 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.User {
- struct GetTransactions: BankRequest {
- public let id: String
+ struct GetUserTransactions: BankRequest {
+ public let userId: String
public let before: String?
public let after: String?
- public let perPage: Int32?
+ public let perPage: Int?
- public typealias Response = PaginatedTransactions
+ public typealias Response = PaginatedUserTransactions
- public init(id: String, before: String? = nil, after: String? = nil, perPage: Int32? = nil) {
- self.id = id
+ public init(userId: String, before: String? = nil, after: String? = nil, perPage: Int? = nil) {
+ self.userId = userId
self.before = before
self.after = after
self.perPage = perPage
@@ -21,20 +22,24 @@ public extension BankAPI.User {
}
public var path: String {
- return "/users/\(id)/transactions"
+ return "/users/\(userId)/transactions"
}
public var parameters: Any? {
var dict: [String: Any] = [:]
+
if before != nil {
dict["before"] = before
}
+
if after != nil {
dict["after"] = after
}
+
if perPage != nil {
dict["per_page"] = perPage
}
+
return dict
}
}
diff --git a/Sources/Pokepay/BankAPI/User/GetUserWithAuthFactors.swift b/Sources/Pokepay/BankAPI/User/GetUserWithAuthFactors.swift
index 07db12f..a1f6cd9 100644
--- a/Sources/Pokepay/BankAPI/User/GetUserWithAuthFactors.swift
+++ b/Sources/Pokepay/BankAPI/User/GetUserWithAuthFactors.swift
@@ -1,22 +1,28 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.User {
struct GetUserWithAuthFactors: BankRequest {
public let userId: String
-
+
public typealias Response = UserWithAuthFactors
-
+
public init(userId: String) {
self.userId = userId
}
-
+
public var method: HTTPMethod {
return .get
}
-
+
public var path: String {
return "/users/\(userId)/auth-factors"
}
-
+
+ public var parameters: Any? {
+ var dict: [String: Any] = [:]
+
+ return dict
+ }
}
}
diff --git a/Sources/Pokepay/BankAPI/User/UpdateUser.swift b/Sources/Pokepay/BankAPI/User/UpdateUser.swift
index 55e4822..cea3928 100644
--- a/Sources/Pokepay/BankAPI/User/UpdateUser.swift
+++ b/Sources/Pokepay/BankAPI/User/UpdateUser.swift
@@ -1,15 +1,16 @@
+// DO NOT EDIT: File is generated by code generator.
import APIKit
public extension BankAPI.User {
- struct Update: BankRequest {
- public let id: String
+ struct UpdateUser: BankRequest {
public let name: String?
+ public let userId: String
- public typealias Response = User
+ public typealias Response = UserWithDetails
- public init(id: String, name: String? = nil) {
- self.id = id
+ public init(name: String? = nil, userId: String) {
self.name = name
+ self.userId = userId
}
public var method: HTTPMethod {
@@ -17,14 +18,16 @@ public extension BankAPI.User {
}
public var path: String {
- return "/users/\(id)"
+ return "/users/\(userId)"
}
public var parameters: Any? {
var dict: [String: Any] = [:]
+
if name != nil {
dict["name"] = name
}
+
return dict
}
}
diff --git a/Sources/Pokepay/Responses/Account.swift b/Sources/Pokepay/Responses/Account.swift
index ba7915a..671775e 100644
--- a/Sources/Pokepay/Responses/Account.swift
+++ b/Sources/Pokepay/Responses/Account.swift
@@ -1,25 +1,24 @@
+// DO NOT EDIT: File is generated by code generator.
import Foundation
public struct Account: Codable {
- public let id: String
- public let name: String
- public let balance: Double
- public let moneyBalance: Double
- public let pointBalance: Double
- public let isSuspended: Bool
- public let privateMoney: PrivateMoney
- public let nearestExpiresAt: Date?
- public let pointDebt: Double
+ public let id: String;
+ public let name: String;
+ public let balance: Int;
+ public let moneyBalance: Int;
+ public let pointBalance: Int;
+ public let pointDebt: Int;
+ public let isSuspended: Bool;
+ public let privateMoney: PrivateMoney;
- private enum CodingKeys: String, CodingKey {
- case id
- case name
- case balance
+ private enum CodingKeys: String, CodingKeys {
+ case id = "id"
+ case name = "name"
+ case balance = "balance"
case moneyBalance = "money_balance"
case pointBalance = "point_balance"
+ case pointDebt = "point_debt"
case isSuspended = "is_suspended"
case privateMoney = "private_money"
- case nearestExpiresAt = "nearest_expires_at"
- case pointDebt = "point_debt"
}
}
diff --git a/Sources/Pokepay/Responses/AccountBalances.swift b/Sources/Pokepay/Responses/AccountBalances.swift
new file mode 100644
index 0000000..f0cfc44
--- /dev/null
+++ b/Sources/Pokepay/Responses/AccountBalances.swift
@@ -0,0 +1,18 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct AccountBalances: Codable {
+ public let perPage: Int;
+ public let count: Int;
+ public let next: String;
+ public let prev: String;
+ public let items: [AccountBalance];
+
+ private enum CodingKeys: String, CodingKeys {
+ case perPage = "per_page"
+ case count = "count"
+ case next = "next"
+ case prev = "prev"
+ case items = "items"
+ }
+}
diff --git a/Sources/Pokepay/Responses/AccountCampaignPointAmounts.swift b/Sources/Pokepay/Responses/AccountCampaignPointAmounts.swift
index 38ca371..8a0810e 100644
--- a/Sources/Pokepay/Responses/AccountCampaignPointAmounts.swift
+++ b/Sources/Pokepay/Responses/AccountCampaignPointAmounts.swift
@@ -1,11 +1,12 @@
+// DO NOT EDIT: File is generated by code generator.
import Foundation
public struct AccountCampaignPointAmounts: Codable {
- public let maxTotalPointAmount: Double?
- public let totalPointAmount: Double?
- public let remainPointAmount: Double?
+ public let maxTotalPointAmount: Int;
+ public let totalPointAmount: Int;
+ public let remainPointAmount: Int;
- private enum CodingKeys: String, CodingKey {
+ private enum CodingKeys: String, CodingKeys {
case maxTotalPointAmount = "max_total_point_amount"
case totalPointAmount = "total_point_amount"
case remainPointAmount = "remain_point_amount"
diff --git a/Sources/Pokepay/Responses/AccountDetail.swift b/Sources/Pokepay/Responses/AccountDetail.swift
new file mode 100644
index 0000000..2da2bff
--- /dev/null
+++ b/Sources/Pokepay/Responses/AccountDetail.swift
@@ -0,0 +1,24 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct AccountDetail: Codable {
+ public let id: String;
+ public let name: String;
+ public let balance: Int;
+ public let moneyBalance: Int;
+ public let pointBalance: Int;
+ public let isSuspended: Bool;
+ public let privateMoney: PrivateMoneyDetail;
+ public let nearestExpiresAt: String;
+
+ private enum CodingKeys: String, CodingKeys {
+ case id = "id"
+ case name = "name"
+ case balance = "balance"
+ case moneyBalance = "money_balance"
+ case pointBalance = "point_balance"
+ case isSuspended = "is_suspended"
+ case privateMoney = "private_money"
+ case nearestExpiresAt = "nearest_expires_at"
+ }
+}
diff --git a/Sources/Pokepay/Responses/Bill.swift b/Sources/Pokepay/Responses/Bill.swift
index 52224cb..5bc5bb8 100644
--- a/Sources/Pokepay/Responses/Bill.swift
+++ b/Sources/Pokepay/Responses/Bill.swift
@@ -1,29 +1,28 @@
+// DO NOT EDIT: File is generated by code generator.
import Foundation
public struct Bill: Codable {
- public let id: String
- public let amount: Double?
- public let description: String
- public let user: User
- public let privateMoney: PrivateMoney
- public let isOnetime: Bool
- public let isDisabled: Bool
- public let token: String
- public let minAmount: Double?
- public let maxAmount: Double?
- public let additionalPrivateMoneys: [PrivateMoney]?
+ public let id: String;
+ public let amount: Int;
+ public let description: String;
+ public let user: User;
+ public let isOnetime: Bool;
+ public let isDisabled: Bool;
+ public let privateMoney: PrivateMoney;
+ public let token: String;
+ public let maxAmount: Int;
+ public let minAmount: Int;
- private enum CodingKeys: String, CodingKey {
- case id
- case amount
- case description
- case user
- case privateMoney = "private_money"
+ private enum CodingKeys: String, CodingKeys {
+ case id = "id"
+ case amount = "amount"
+ case description = "description"
+ case user = "user"
case isOnetime = "is_onetime"
case isDisabled = "is_disabled"
- case token
- case minAmount = "min_amount"
+ case privateMoney = "private_money"
+ case token = "token"
case maxAmount = "max_amount"
- case additionalPrivateMoneys = "additional_private_moneys"
+ case minAmount = "min_amount"
}
}
diff --git a/Sources/Pokepay/Responses/BillWithAdditionalPrivateMoneys.swift b/Sources/Pokepay/Responses/BillWithAdditionalPrivateMoneys.swift
new file mode 100644
index 0000000..cedbe32
--- /dev/null
+++ b/Sources/Pokepay/Responses/BillWithAdditionalPrivateMoneys.swift
@@ -0,0 +1,30 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct BillWithAdditionalPrivateMoneys: Codable {
+ public let id: String;
+ public let amount: Int;
+ public let description: String;
+ public let user: User;
+ public let isOnetime: Bool;
+ public let isDisabled: Bool;
+ public let privateMoney: PrivateMoney;
+ public let token: String;
+ public let maxAmount: Int;
+ public let minAmount: Int;
+ public let additionalPrivateMoneys: [PrivateMoney];
+
+ private enum CodingKeys: String, CodingKeys {
+ case id = "id"
+ case amount = "amount"
+ case description = "description"
+ case user = "user"
+ case isOnetime = "is_onetime"
+ case isDisabled = "is_disabled"
+ case privateMoney = "private_money"
+ case token = "token"
+ case maxAmount = "max_amount"
+ case minAmount = "min_amount"
+ case additionalPrivateMoneys = "additional_private_moneys"
+ }
+}
diff --git a/Sources/Pokepay/Responses/Cashtray.swift b/Sources/Pokepay/Responses/Cashtray.swift
index 51fb95e..56182c0 100644
--- a/Sources/Pokepay/Responses/Cashtray.swift
+++ b/Sources/Pokepay/Responses/Cashtray.swift
@@ -1,27 +1,24 @@
+// DO NOT EDIT: File is generated by code generator.
import Foundation
public struct Cashtray: Codable {
- public let id: String
- public let amount: Double
- public let description: String
- public let user: User
- public let privateMoney: PrivateMoney
- public let expiresAt: Date
- public let canceledAt: Date?
- public let token: String
- public let attempt: CashtrayAttempt?
- public let transaction: UserTransaction?
+ public let id: String;
+ public let amount: Int;
+ public let description: String;
+ public let user: User;
+ public let privateMoney: PrivateMoney;
+ public let expiresAt: String;
+ public let canceledAt: String;
+ public let token: String;
- private enum CodingKeys: String, CodingKey {
- case id
- case amount
- case description
- case user
+ private enum CodingKeys: String, CodingKeys {
+ case id = "id"
+ case amount = "amount"
+ case description = "description"
+ case user = "user"
case privateMoney = "private_money"
case expiresAt = "expires_at"
case canceledAt = "canceled_at"
- case token
- case attempt
- case transaction
+ case token = "token"
}
}
diff --git a/Sources/Pokepay/Responses/CashtrayAttempts.swift b/Sources/Pokepay/Responses/CashtrayAttempts.swift
index bb1edc3..919f6d1 100644
--- a/Sources/Pokepay/Responses/CashtrayAttempts.swift
+++ b/Sources/Pokepay/Responses/CashtrayAttempts.swift
@@ -1,9 +1,10 @@
+// DO NOT EDIT: File is generated by code generator.
import Foundation
public struct CashtrayAttempts: Codable {
- public let rows: [CashtrayAttempt]
+ public let rows: [CashtrayAttempt];
- private enum CodingKeys: String, CodingKey {
- case rows
+ private enum CodingKeys: String, CodingKeys {
+ case rows = "rows"
}
}
diff --git a/Sources/Pokepay/Responses/CashtrayWithAttemptAndTransaction.swift b/Sources/Pokepay/Responses/CashtrayWithAttemptAndTransaction.swift
new file mode 100644
index 0000000..11c0969
--- /dev/null
+++ b/Sources/Pokepay/Responses/CashtrayWithAttemptAndTransaction.swift
@@ -0,0 +1,8 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct CashtrayWithAttemptAndTransaction: Codable {
+
+ private enum CodingKeys: String, CodingKeys {
+ }
+}
diff --git a/Sources/Pokepay/Responses/Check.swift b/Sources/Pokepay/Responses/Check.swift
index 3a14839..acf5ebb 100644
--- a/Sources/Pokepay/Responses/Check.swift
+++ b/Sources/Pokepay/Responses/Check.swift
@@ -1,33 +1,30 @@
+// DO NOT EDIT: File is generated by code generator.
import Foundation
public struct Check: Codable {
- public let id: String
- public let amount: Double
- public let moneyAmount: Double
- public let pointAmount: Double
- public let description: String
- public let user: User
- public let privateMoney: PrivateMoney
- public let isOnetime: Bool
- public let isDisabled: Bool
- public let expiresAt: Date
- public let token: String
- public let pointExpiresAt: Date?
- public let pointExpiresInDays: Int32?
+ public let id: String;
+ public let amount: Int;
+ public let moneyAmount: Int;
+ public let pointAmount: Int;
+ public let description: String;
+ public let user: User;
+ public let isOnetime: Bool;
+ public let isDisabled: Bool;
+ public let expiresAt: String;
+ public let privateMoney: PrivateMoney;
+ public let token: String;
- private enum CodingKeys: String, CodingKey {
- case id
- case amount
+ private enum CodingKeys: String, CodingKeys {
+ case id = "id"
+ case amount = "amount"
case moneyAmount = "money_amount"
case pointAmount = "point_amount"
- case description
- case user
- case privateMoney = "private_money"
+ case description = "description"
+ case user = "user"
case isOnetime = "is_onetime"
case isDisabled = "is_disabled"
case expiresAt = "expires_at"
- case token
- case pointExpiresAt = "point_expires_at"
- case pointExpiresInDays = "point_expires_in_days"
+ case privateMoney = "private_money"
+ case token = "token"
}
}
diff --git a/Sources/Pokepay/Responses/Coupon.swift b/Sources/Pokepay/Responses/Coupon.swift
index 3c07fb3..764c301 100644
--- a/Sources/Pokepay/Responses/Coupon.swift
+++ b/Sources/Pokepay/Responses/Coupon.swift
@@ -1,32 +1,33 @@
+// DO NOT EDIT: File is generated by code generator.
import Foundation
-public struct Coupon :Codable{
- public let id:String
- public let name:String
- public let description:String
- public let discountAmount:Int
- public let discountPercentage:Int?
- public let startAt:Date
- public let endAt:Date
- public let displayStartAt:Date
- public let displayEndAt:Date
- public let usageLimit:Int
- public let minAmount:Int?
- public let isShopSpecified:Bool
- public let isDisabled:Bool
- public let isHidden:Bool
- public let couponImage:String?
-
- private enum CodingKeys: String, CodingKey {
- case id
- case name
- case description
+public struct Coupon: Codable {
+ public let id: String;
+ public let name: String;
+ public let description: String;
+ public let discountAmount: Int;
+ public let discountPercentage: Int;
+ public let startsAt: String;
+ public let endsAt: String;
+ public let displayStartsAt: String;
+ public let displayEndsAt: String;
+ public let usageLimit: Int;
+ public let minAmount: Int;
+ public let isShopSpecified: Bool;
+ public let isDisabled: Bool;
+ public let isHidden: Bool;
+ public let couponImage: String;
+
+ private enum CodingKeys: String, CodingKeys {
+ case id = "id"
+ case name = "name"
+ case description = "description"
case discountAmount = "discount_amount"
case discountPercentage = "discount_percentage"
- case startAt = "starts_at"
- case endAt = "ends_at"
- case displayStartAt = "display_starts_at"
- case displayEndAt = "display_ends_at"
+ case startsAt = "starts_at"
+ case endsAt = "ends_at"
+ case displayStartsAt = "display_starts_at"
+ case displayEndsAt = "display_ends_at"
case usageLimit = "usage_limit"
case minAmount = "min_amount"
case isShopSpecified = "is_shop_specified"
diff --git a/Sources/Pokepay/Responses/CouponDetail.swift b/Sources/Pokepay/Responses/CouponDetail.swift
index 02bcf7b..0a8d956 100644
--- a/Sources/Pokepay/Responses/CouponDetail.swift
+++ b/Sources/Pokepay/Responses/CouponDetail.swift
@@ -1,35 +1,36 @@
+// DO NOT EDIT: File is generated by code generator.
import Foundation
-public struct CouponDetail:Codable{
- public let id:String
- public let name:String
- public let description:String
- public let discountAmount:Int?
- public let discountPercentage:Int?
- public let startAt:Date
- public let endAt:Date
- public let displayStartAt:Date
- public let displayEndAt:Date
- public let usageLimit:Int?
- public let minAmount:Int?
- public let isShopSpecified:Bool
- public let isDisabled:Bool
- public let isHidden:Bool
- public let couponImage:String?
- public let receivedAt:String?
- public let usageCount:Int
- public let availableShops:[User]
-
- private enum CodingKeys: String, CodingKey{
- case id
- case name
- case description
+public struct CouponDetail: Codable {
+ public let id: String;
+ public let name: String;
+ public let description: String;
+ public let discountAmount: Int;
+ public let discountPercentage: Int;
+ public let startsAt: String;
+ public let endsAt: String;
+ public let displayStartsAt: String;
+ public let displayEndsAt: String;
+ public let usageLimit: Int;
+ public let minAmount: Int;
+ public let isShopSpecified: Bool;
+ public let isDisabled: Bool;
+ public let isHidden: Bool;
+ public let couponImage: String;
+ public let receivedAt: String;
+ public let usageCount: Int;
+ public let availableShops: [User];
+
+ private enum CodingKeys: String, CodingKeys {
+ case id = "id"
+ case name = "name"
+ case description = "description"
case discountAmount = "discount_amount"
case discountPercentage = "discount_percentage"
- case startAt = "starts_at"
- case endAt = "ends_at"
- case displayStartAt = "display_starts_at"
- case displayEndAt = "display_ends_at"
+ case startsAt = "starts_at"
+ case endsAt = "ends_at"
+ case displayStartsAt = "display_starts_at"
+ case displayEndsAt = "display_ends_at"
case usageLimit = "usage_limit"
case minAmount = "min_amount"
case isShopSpecified = "is_shop_specified"
diff --git a/Sources/Pokepay/Responses/CpmToken.swift b/Sources/Pokepay/Responses/CpmToken.swift
new file mode 100644
index 0000000..646e812
--- /dev/null
+++ b/Sources/Pokepay/Responses/CpmToken.swift
@@ -0,0 +1,20 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct CpmToken: Codable {
+ public let cpmToken: String;
+ public let account: Account;
+ public let transaction: UserTransaction;
+ public let scopes: [String];
+ public let expiresAt: String;
+ public let metadata: String;
+
+ private enum CodingKeys: String, CodingKeys {
+ case cpmToken = "cpm_token"
+ case account = "account"
+ case transaction = "transaction"
+ case scopes = "scopes"
+ case expiresAt = "expires_at"
+ case metadata = "metadata"
+ }
+}
diff --git a/Sources/Pokepay/Responses/CreditCard.swift b/Sources/Pokepay/Responses/CreditCard.swift
index baa8802..7d11911 100644
--- a/Sources/Pokepay/Responses/CreditCard.swift
+++ b/Sources/Pokepay/Responses/CreditCard.swift
@@ -5,7 +5,7 @@ public struct CreditCard: Codable {
public let cardNumber: String;
public let registeredAt: String;
- private enum CodingKeys: String, CodingKey {
+ private enum CodingKeys: String, CodingKeys {
case cardNumber = "card_number"
case registeredAt = "registered_at"
}
diff --git a/Sources/Pokepay/Responses/IdentificationResult.swift b/Sources/Pokepay/Responses/IdentificationResult.swift
index 290310b..3b8638b 100644
--- a/Sources/Pokepay/Responses/IdentificationResult.swift
+++ b/Sources/Pokepay/Responses/IdentificationResult.swift
@@ -1,13 +1,14 @@
+// DO NOT EDIT: File is generated by code generator.
import Foundation
public struct IdentificationResult: Codable {
- public let isValid: Bool
- public let identifiedAt: String?
- public let match: IdentificationMatch
+ public let isValid: Bool;
+ public let identifiedAt: String;
+ public let match: Object;
- private enum CodingKeys: String, CodingKey {
+ private enum CodingKeys: String, CodingKeys {
case isValid = "is_valid"
case identifiedAt = "identified_at"
- case match
+ case match = "match"
}
-}
\ No newline at end of file
+}
diff --git a/Sources/Pokepay/Responses/Organization.swift b/Sources/Pokepay/Responses/Organization.swift
index 1158dc7..9d0a1ff 100644
--- a/Sources/Pokepay/Responses/Organization.swift
+++ b/Sources/Pokepay/Responses/Organization.swift
@@ -1,6 +1,12 @@
+// DO NOT EDIT: File is generated by code generator.
import Foundation
public struct Organization: Codable {
- public let code: String
- public let name: String
+ public let code: String;
+ public let name: String;
+
+ private enum CodingKeys: String, CodingKeys {
+ case code = "code"
+ case name = "name"
+ }
}
diff --git a/Sources/Pokepay/Responses/PaginatedAccountBalances.swift b/Sources/Pokepay/Responses/PaginatedAccountBalances.swift
index a3443a2..a298126 100644
--- a/Sources/Pokepay/Responses/PaginatedAccountBalances.swift
+++ b/Sources/Pokepay/Responses/PaginatedAccountBalances.swift
@@ -1,17 +1,18 @@
+// DO NOT EDIT: File is generated by code generator.
import Foundation
public struct PaginatedAccountBalances: Codable {
- public let perPage: Int32
- public let count: Int32
- public let next: String?
- public let prev: String?
- public let items: [AccountBalance]
+ public let perPage: Int;
+ public let count: Int;
+ public let next: String;
+ public let prev: String;
+ public let items: [AccountBalance];
- private enum CodingKeys: String, CodingKey {
+ private enum CodingKeys: String, CodingKeys {
case perPage = "per_page"
- case count
- case next
- case prev
- case items
+ case count = "count"
+ case next = "next"
+ case prev = "prev"
+ case items = "items"
}
}
diff --git a/Sources/Pokepay/Responses/PaginatedAccountCoupons.swift b/Sources/Pokepay/Responses/PaginatedAccountCoupons.swift
new file mode 100644
index 0000000..9dcd788
--- /dev/null
+++ b/Sources/Pokepay/Responses/PaginatedAccountCoupons.swift
@@ -0,0 +1,18 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct PaginatedAccountCoupons: Codable {
+ public let perPage: Int;
+ public let count: Int;
+ public let next: String;
+ public let prev: String;
+ public let items: [Coupon];
+
+ private enum CodingKeys: String, CodingKeys {
+ case perPage = "per_page"
+ case count = "count"
+ case next = "next"
+ case prev = "prev"
+ case items = "items"
+ }
+}
diff --git a/Sources/Pokepay/Responses/PaginatedAccountTransactions.swift b/Sources/Pokepay/Responses/PaginatedAccountTransactions.swift
new file mode 100644
index 0000000..033e7cf
--- /dev/null
+++ b/Sources/Pokepay/Responses/PaginatedAccountTransactions.swift
@@ -0,0 +1,18 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct PaginatedAccountTransactions: Codable {
+ public let perPage: Int;
+ public let count: Int;
+ public let next: String;
+ public let prev: String;
+ public let items: [UserTransaction];
+
+ private enum CodingKeys: String, CodingKeys {
+ case perPage = "per_page"
+ case count = "count"
+ case next = "next"
+ case prev = "prev"
+ case items = "items"
+ }
+}
diff --git a/Sources/Pokepay/Responses/PaginatedAccountTransfers.swift b/Sources/Pokepay/Responses/PaginatedAccountTransfers.swift
new file mode 100644
index 0000000..dae70d0
--- /dev/null
+++ b/Sources/Pokepay/Responses/PaginatedAccountTransfers.swift
@@ -0,0 +1,18 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct PaginatedAccountTransfers: Codable {
+ public let perPage: Int;
+ public let count: Int;
+ public let next: String;
+ public let prev: String;
+ public let items: [UserTransfer];
+
+ private enum CodingKeys: String, CodingKeys {
+ case perPage = "per_page"
+ case count = "count"
+ case next = "next"
+ case prev = "prev"
+ case items = "items"
+ }
+}
diff --git a/Sources/Pokepay/Responses/PaginatedCreditCards.swift b/Sources/Pokepay/Responses/PaginatedCreditCards.swift
index 8f3e8f5..8d4dd83 100644
--- a/Sources/Pokepay/Responses/PaginatedCreditCards.swift
+++ b/Sources/Pokepay/Responses/PaginatedCreditCards.swift
@@ -4,11 +4,11 @@ import Foundation
public struct PaginatedCreditCards: Codable {
public let perPage: Int;
public let count: Int;
- public let next: String?;
- public let prev: String?;
+ public let next: String;
+ public let prev: String;
public let items: [CreditCard];
- private enum CodingKeys: String, CodingKey {
+ private enum CodingKeys: String, CodingKeys {
case perPage = "per_page"
case count = "count"
case next = "next"
diff --git a/Sources/Pokepay/Responses/PaginatedPrivateMoneyCoupons.swift b/Sources/Pokepay/Responses/PaginatedPrivateMoneyCoupons.swift
new file mode 100644
index 0000000..c95d319
--- /dev/null
+++ b/Sources/Pokepay/Responses/PaginatedPrivateMoneyCoupons.swift
@@ -0,0 +1,18 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct PaginatedPrivateMoneyCoupons: Codable {
+ public let perPage: Int;
+ public let count: Int;
+ public let next: String;
+ public let prev: String;
+ public let items: [Coupon];
+
+ private enum CodingKeys: String, CodingKeys {
+ case perPage = "per_page"
+ case count = "count"
+ case next = "next"
+ case prev = "prev"
+ case items = "items"
+ }
+}
diff --git a/Sources/Pokepay/Responses/PaginatedPrivateMoneys.swift b/Sources/Pokepay/Responses/PaginatedPrivateMoneys.swift
index e375cb9..f018072 100644
--- a/Sources/Pokepay/Responses/PaginatedPrivateMoneys.swift
+++ b/Sources/Pokepay/Responses/PaginatedPrivateMoneys.swift
@@ -1,17 +1,18 @@
+// DO NOT EDIT: File is generated by code generator.
import Foundation
public struct PaginatedPrivateMoneys: Codable {
- public let perPage: Int32
- public let count: Int32
- public let next: String?
- public let prev: String?
- public let items: [PrivateMoney]
+ public let perPage: Int;
+ public let count: Int;
+ public let next: String;
+ public let prev: String;
+ public let items: [PrivateMoney];
- private enum CodingKeys: String, CodingKey {
+ private enum CodingKeys: String, CodingKeys {
case perPage = "per_page"
- case count
- case next
- case prev
- case items
+ case count = "count"
+ case next = "next"
+ case prev = "prev"
+ case items = "items"
}
}
diff --git a/Sources/Pokepay/Responses/PaginatedUserAccounts.swift b/Sources/Pokepay/Responses/PaginatedUserAccounts.swift
new file mode 100644
index 0000000..1ef4619
--- /dev/null
+++ b/Sources/Pokepay/Responses/PaginatedUserAccounts.swift
@@ -0,0 +1,18 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct PaginatedUserAccounts: Codable {
+ public let perPage: Int;
+ public let count: Int;
+ public let next: String;
+ public let prev: String;
+ public let items: [Account];
+
+ private enum CodingKeys: String, CodingKeys {
+ case perPage = "per_page"
+ case count = "count"
+ case next = "next"
+ case prev = "prev"
+ case items = "items"
+ }
+}
diff --git a/Sources/Pokepay/Responses/PaginatedUserTransactions.swift b/Sources/Pokepay/Responses/PaginatedUserTransactions.swift
new file mode 100644
index 0000000..79a8a80
--- /dev/null
+++ b/Sources/Pokepay/Responses/PaginatedUserTransactions.swift
@@ -0,0 +1,18 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct PaginatedUserTransactions: Codable {
+ public let perPage: Int;
+ public let count: Int;
+ public let next: String;
+ public let prev: String;
+ public let items: [UserTransaction];
+
+ private enum CodingKeys: String, CodingKeys {
+ case perPage = "per_page"
+ case count = "count"
+ case next = "next"
+ case prev = "prev"
+ case items = "items"
+ }
+}
diff --git a/Sources/Pokepay/Responses/PrivateMoney.swift b/Sources/Pokepay/Responses/PrivateMoney.swift
index f5be616..e209c8c 100644
--- a/Sources/Pokepay/Responses/PrivateMoney.swift
+++ b/Sources/Pokepay/Responses/PrivateMoney.swift
@@ -1,37 +1,37 @@
+// DO NOT EDIT: File is generated by code generator.
import Foundation
public struct PrivateMoney: Codable {
- public let id: String
- public let name: String
- public let type: String
- public let unit: String
- public let description: String
- public let onelineMessage: String
- public let accountImage: String?
- public let images: Images
- public let organization: Organization
- public let maxBalance: Double
- public let transferLimit: Double
- public let expirationType: String
- public let isExclusive: Bool
- public let termsUrl: String?
- public let privacyPolicyUrl: String?
- public let paymentActUrl: String?
- public let commercialActUrl: String?
- public let canUseCreditCard: Bool?
- public let canUseC2CTransfer: Bool
- public let customDomainName: String?
+ public let id: String;
+ public let name: String;
+ public let type: String;
+ public let unit: String;
+ public let description: String;
+ public let onelineMessage: String;
+ public let displayMoneyAndPoint: String;
+ public let accountImage: String;
+ public let images: PrivateMoneyImages;
+ public let organization: Organization;
+ public let maxBalance: Int;
+ public let transferLimit: Int;
+ public let expirationType: String;
+ public let isExclusive: Bool;
+ public let termsUrl: String;
+ public let privacyPolicyUrl: String;
+ public let paymentActUrl: String;
+ public let commercialActUrl: String;
- private enum CodingKeys: String, CodingKey {
- case id
- case name
- case type
- case unit
- case description
+ private enum CodingKeys: String, CodingKeys {
+ case id = "id"
+ case name = "name"
+ case type = "type"
+ case unit = "unit"
+ case description = "description"
case onelineMessage = "oneline_message"
+ case displayMoneyAndPoint = "display_money_and_point"
case accountImage = "account_image"
- case images
- case organization
+ case images = "images"
+ case organization = "organization"
case maxBalance = "max_balance"
case transferLimit = "transfer_limit"
case expirationType = "expiration_type"
@@ -40,8 +40,5 @@ public struct PrivateMoney: Codable {
case privacyPolicyUrl = "privacy_policy_url"
case paymentActUrl = "payment_act_url"
case commercialActUrl = "commercial_act_url"
- case canUseCreditCard = "can_use_credit_card"
- case canUseC2CTransfer = "can_use_c2c_transfer"
- case customDomainName = "custom_domain_name"
}
}
diff --git a/Sources/Pokepay/Responses/PrivateMoneyDetail.swift b/Sources/Pokepay/Responses/PrivateMoneyDetail.swift
new file mode 100644
index 0000000..0971d93
--- /dev/null
+++ b/Sources/Pokepay/Responses/PrivateMoneyDetail.swift
@@ -0,0 +1,8 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct PrivateMoneyDetail: Codable {
+
+ private enum CodingKeys: String, CodingKeys {
+ }
+}
diff --git a/Sources/Pokepay/Responses/Product.swift b/Sources/Pokepay/Responses/Product.swift
new file mode 100644
index 0000000..43d5549
--- /dev/null
+++ b/Sources/Pokepay/Responses/Product.swift
@@ -0,0 +1,22 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct Product: Codable {
+ public let janCode: String;
+ public let name: String;
+ public let unitPrice: Int;
+ public let price: Int;
+ public let quantity: Int;
+ public let isDiscounted: Bool;
+ public let other: String;
+
+ private enum CodingKeys: String, CodingKeys {
+ case janCode = "jan_code"
+ case name = "name"
+ case unitPrice = "unit_price"
+ case price = "price"
+ case quantity = "quantity"
+ case isDiscounted = "is_discounted"
+ case other = "other"
+ }
+}
diff --git a/Sources/Pokepay/Responses/SevenBankAtmSession.swift b/Sources/Pokepay/Responses/SevenBankAtmSession.swift
new file mode 100644
index 0000000..4955a0a
--- /dev/null
+++ b/Sources/Pokepay/Responses/SevenBankAtmSession.swift
@@ -0,0 +1,16 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct SevenBankAtmSession: Codable {
+ public let qrInfo: String;
+ public let account: Account;
+ public let amount: Int;
+ public let transaction: UserTransactionWithTransfers;
+
+ private enum CodingKeys: String, CodingKeys {
+ case qrInfo = "qr_info"
+ case account = "account"
+ case amount = "amount"
+ case transaction = "transaction"
+ }
+}
diff --git a/Sources/Pokepay/Responses/Terminal.swift b/Sources/Pokepay/Responses/Terminal.swift
index 05d7445..e0c41b3 100644
--- a/Sources/Pokepay/Responses/Terminal.swift
+++ b/Sources/Pokepay/Responses/Terminal.swift
@@ -1,21 +1,22 @@
+// DO NOT EDIT: File is generated by code generator.
import Foundation
public struct Terminal: Codable {
- public let id: String
- public let name: String
- public let hardwareId: String
- public let pushService: String?
- public let pushToken: String?
- public let user: User
- public let account: Account
+ public let id: String;
+ public let name: String;
+ public let hardwareId: String;
+ public let pushService: String;
+ public let pushToken: String;
+ public let user: UserWithDetails;
+ public let account: Nil;
- private enum CodingKeys: String, CodingKey {
- case id
- case name
+ private enum CodingKeys: String, CodingKeys {
+ case id = "id"
+ case name = "name"
case hardwareId = "hardware_id"
case pushService = "push_service"
case pushToken = "push_token"
- case user
- case account
+ case user = "user"
+ case account = "account"
}
}
diff --git a/Sources/Pokepay/Responses/User.swift b/Sources/Pokepay/Responses/User.swift
index d8b6c01..c813dea 100644
--- a/Sources/Pokepay/Responses/User.swift
+++ b/Sources/Pokepay/Responses/User.swift
@@ -1,13 +1,14 @@
+// DO NOT EDIT: File is generated by code generator.
import Foundation
public struct User: Codable {
- public let id: String
- public let name: String
- public let isMerchant: Bool
+ public let id: String;
+ public let name: String;
+ public let isMerchant: Bool;
- private enum CodingKeys: String, CodingKey {
- case id
- case name
+ private enum CodingKeys: String, CodingKeys {
+ case id = "id"
+ case name = "name"
case isMerchant = "is_merchant"
}
}
diff --git a/Sources/Pokepay/Responses/UserBank.swift b/Sources/Pokepay/Responses/UserBank.swift
new file mode 100644
index 0000000..584964c
--- /dev/null
+++ b/Sources/Pokepay/Responses/UserBank.swift
@@ -0,0 +1,26 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct UserBank: Codable {
+ public let id: String;
+ public let privateMoney: PrivateMoney;
+ public let bankName: String;
+ public let bankCode: String;
+ public let branchNumber: String;
+ public let branchName: String;
+ public let depositType: String;
+ public let maskedAccountNumber: String;
+ public let accountName: String;
+
+ private enum CodingKeys: String, CodingKeys {
+ case id = "id"
+ case privateMoney = "private_money"
+ case bankName = "bank_name"
+ case bankCode = "bank_code"
+ case branchNumber = "branch_number"
+ case branchName = "branch_name"
+ case depositType = "deposit_type"
+ case maskedAccountNumber = "masked_account_number"
+ case accountName = "account_name"
+ }
+}
diff --git a/Sources/Pokepay/Responses/UserTransaction.swift b/Sources/Pokepay/Responses/UserTransaction.swift
index 0abdffb..d297f08 100644
--- a/Sources/Pokepay/Responses/UserTransaction.swift
+++ b/Sources/Pokepay/Responses/UserTransaction.swift
@@ -1,33 +1,30 @@
+// DO NOT EDIT: File is generated by code generator.
import Foundation
public struct UserTransaction: Codable {
- public let id: String
- public let type: String
- public let isModified: Bool
- public let user: User
- public let balance: Double
- public let customerBalance: Double?
- public let amount: Double
- public let moneyAmount: Double
- public let pointAmount: Double
- public let account: Account
- public let description: String
- public let doneAt: Date
- public let transfers: [Transfer]?
+ public let id: String;
+ public let user: User;
+ public let balance: Int;
+ public let amount: Int;
+ public let moneyAmount: Int;
+ public let pointAmount: Int;
+ public let account: Account;
+ public let description: String;
+ public let doneAt: String;
+ public let type: String;
+ public let isModified: Bool;
- private enum CodingKeys: String, CodingKey {
- case id
- case type
- case isModified = "is_modified"
- case user
- case balance
- case customerBalance = "customer_balance"
- case amount
+ private enum CodingKeys: String, CodingKeys {
+ case id = "id"
+ case user = "user"
+ case balance = "balance"
+ case amount = "amount"
case moneyAmount = "money_amount"
case pointAmount = "point_amount"
- case account
- case description
+ case account = "account"
+ case description = "description"
case doneAt = "done_at"
- case transfers
+ case type = "type"
+ case isModified = "is_modified"
}
}
diff --git a/Sources/Pokepay/Responses/UserTransactionWithCustomerBalance.swift b/Sources/Pokepay/Responses/UserTransactionWithCustomerBalance.swift
new file mode 100644
index 0000000..bd9f422
--- /dev/null
+++ b/Sources/Pokepay/Responses/UserTransactionWithCustomerBalance.swift
@@ -0,0 +1,32 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct UserTransactionWithCustomerBalance: Codable {
+ public let id: String;
+ public let user: User;
+ public let balance: Int;
+ public let customerBalance: Int;
+ public let amount: Int;
+ public let moneyAmount: Int;
+ public let pointAmount: Int;
+ public let account: Account;
+ public let description: String;
+ public let doneAt: String;
+ public let type: String;
+ public let isModified: Bool;
+
+ private enum CodingKeys: String, CodingKeys {
+ case id = "id"
+ case user = "user"
+ case balance = "balance"
+ case customerBalance = "customer_balance"
+ case amount = "amount"
+ case moneyAmount = "money_amount"
+ case pointAmount = "point_amount"
+ case account = "account"
+ case description = "description"
+ case doneAt = "done_at"
+ case type = "type"
+ case isModified = "is_modified"
+ }
+}
diff --git a/Sources/Pokepay/Responses/UserTransactionWithTransfers.swift b/Sources/Pokepay/Responses/UserTransactionWithTransfers.swift
new file mode 100644
index 0000000..2aaa806
--- /dev/null
+++ b/Sources/Pokepay/Responses/UserTransactionWithTransfers.swift
@@ -0,0 +1,32 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct UserTransactionWithTransfers: Codable {
+ public let id: String;
+ public let user: User;
+ public let balance: Int;
+ public let amount: Int;
+ public let moneyAmount: Int;
+ public let pointAmount: Int;
+ public let account: Account;
+ public let description: String;
+ public let doneAt: String;
+ public let type: String;
+ public let isModified: Bool;
+ public let transfers: [UserTransferWithoutAccount];
+
+ private enum CodingKeys: String, CodingKeys {
+ case id = "id"
+ case user = "user"
+ case balance = "balance"
+ case amount = "amount"
+ case moneyAmount = "money_amount"
+ case pointAmount = "point_amount"
+ case account = "account"
+ case description = "description"
+ case doneAt = "done_at"
+ case type = "type"
+ case isModified = "is_modified"
+ case transfers = "transfers"
+ }
+}
diff --git a/Sources/Pokepay/Responses/UserTransfer.swift b/Sources/Pokepay/Responses/UserTransfer.swift
new file mode 100644
index 0000000..034c5fd
--- /dev/null
+++ b/Sources/Pokepay/Responses/UserTransfer.swift
@@ -0,0 +1,30 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct UserTransfer: Codable {
+ public let id: String;
+ public let transactionId: String;
+ public let user: User;
+ public let balance: Int;
+ public let amount: Int;
+ public let moneyAmount: Int;
+ public let pointAmount: Int;
+ public let account: Account;
+ public let description: String;
+ public let doneAt: String;
+ public let type: String;
+
+ private enum CodingKeys: String, CodingKeys {
+ case id = "id"
+ case transactionId = "transaction_id"
+ case user = "user"
+ case balance = "balance"
+ case amount = "amount"
+ case moneyAmount = "money_amount"
+ case pointAmount = "point_amount"
+ case account = "account"
+ case description = "description"
+ case doneAt = "done_at"
+ case type = "type"
+ }
+}
diff --git a/Sources/Pokepay/Responses/UserTransferWithoutAccount.swift b/Sources/Pokepay/Responses/UserTransferWithoutAccount.swift
new file mode 100644
index 0000000..b89e770
--- /dev/null
+++ b/Sources/Pokepay/Responses/UserTransferWithoutAccount.swift
@@ -0,0 +1,22 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct UserTransferWithoutAccount: Codable {
+ public let id: String;
+ public let amount: Int;
+ public let moneyAmount: Int;
+ public let pointAmount: Int;
+ public let description: String;
+ public let doneAt: String;
+ public let type: String;
+
+ private enum CodingKeys: String, CodingKeys {
+ case id = "id"
+ case amount = "amount"
+ case moneyAmount = "money_amount"
+ case pointAmount = "point_amount"
+ case description = "description"
+ case doneAt = "done_at"
+ case type = "type"
+ }
+}
diff --git a/Sources/Pokepay/Responses/UserWithAuthFactors.swift b/Sources/Pokepay/Responses/UserWithAuthFactors.swift
index 5f3399a..844329b 100644
--- a/Sources/Pokepay/Responses/UserWithAuthFactors.swift
+++ b/Sources/Pokepay/Responses/UserWithAuthFactors.swift
@@ -1,19 +1,20 @@
+// DO NOT EDIT: File is generated by code generator.
import Foundation
public struct UserWithAuthFactors: Codable {
- public let id: String
- public let name: String
- public let isMerchant: Bool
- public let tel: String?
- public let email: String?
- public let isPasswordRegistered: Bool
+ public let id: String;
+ public let name: String;
+ public let isMerchant: Bool;
+ public let tel: String;
+ public let email: String;
+ public let isPasswordRegistered: Bool;
- private enum CodingKeys: String, CodingKey {
- case id
- case name
+ private enum CodingKeys: String, CodingKeys {
+ case id = "id"
+ case name = "name"
case isMerchant = "is_merchant"
- case tel
- case email
+ case tel = "tel"
+ case email = "email"
case isPasswordRegistered = "is_password_registered"
}
}
diff --git a/Sources/Pokepay/Responses/UserWithDetails.swift b/Sources/Pokepay/Responses/UserWithDetails.swift
new file mode 100644
index 0000000..d071ca9
--- /dev/null
+++ b/Sources/Pokepay/Responses/UserWithDetails.swift
@@ -0,0 +1,18 @@
+// DO NOT EDIT: File is generated by code generator.
+import Foundation
+
+public struct UserWithDetails: Codable {
+ public let id: String;
+ public let name: String;
+ public let isMerchant: Bool;
+ public let tel: String;
+ public let email: String;
+
+ private enum CodingKeys: String, CodingKeys {
+ case id = "id"
+ case name = "name"
+ case isMerchant = "is_merchant"
+ case tel = "tel"
+ case email = "email"
+ }
+}
diff --git a/docs/ios-sdk/README.md b/docs/ios-sdk/README.md
new file mode 100644
index 0000000..bb8b643
--- /dev/null
+++ b/docs/ios-sdk/README.md
@@ -0,0 +1,113 @@
+
+## API Operations
+
+### Terminal
+- [GetTerminal](./terminal.md#get-terminal): 端æ«ã®æ
å ±ãååŸ
+- [UpdateTerminal](./terminal.md#update-terminal): 端æ«ã®æ
å ±ã倿Ž
+- [AddTerminalPublicKey](./terminal.md#add-terminal-public-key): 端æ«ã«æ°ããªå
¬ééµã远å
+
+### Check
+- [DeleteCheck](./check.md#delete-check): ãã£ãŒãžQRã³ãŒããç¡å¹ã«ãã
+- [GetCheck](./check.md#get-check): ãã£ãŒãžQRã³ãŒããååŸãã
+- [UpdateCheck](./check.md#update-check): ãã£ãŒãžQRã³ãŒããä¿®æ£ãã
+- [CreateCheck](./check.md#create-check): ãã£ãŒãžQRã³ãŒãã®çºè¡ãã
+
+### Bill
+- [DeleteBill](./bill.md#delete-bill): äœææžã¿Billãç¡å¹åãã
+- [GetBill](./bill.md#get-bill): äœææžã¿Billã®èšå®å
容ãåç
§ãã
+- [UpdateBill](./bill.md#update-bill): Billã®èšå®å
å®¹ãæŽæ°
+- [ListBillTransactions](./bill.md#list-bill-transactions): Billã«ããååŒäžèЧãååŸãã
+- [GetBillLastTransaction](./bill.md#get-bill-last-transaction): Get the last transaction of bill
+- [CreateBill](./bill.md#create-bill): æ¯æãçšQR(ããŒã¯ã³)ãæ°èŠç»é²
+
+### Cashtray
+- [DeleteCashtray](./cashtray.md#delete-cashtray): Cashtrayãç¡å¹å
+- [GetCashtray](./cashtray.md#get-cashtray): Cashtrayã®èšå®å
容ãåç
§
+- [UpdateCashtray](./cashtray.md#update-cashtray): Cashtrayã®èšå®å
å®¹ãæŽæ°
+- [CreateCashtray](./cashtray.md#create-cashtray): Cashtrayãæ°èŠç»é²
+- [GetCashtrayAttempts](./cashtray.md#get-cashtray-attempts): Cashtrayãå©çšããæ±ºæžã®ç¶æ³ã確èª
+
+### Credit Card
+- [GetCreditCards](./credit_card.md#get-credit-cards): Get user credit cards
+- [CreateCreditCard](./credit_card.md#create-credit-card): Create user credit card
+- [DeleteCreditCard](./credit_card.md#delete-credit-card): Create user credit card
+- [TopupWithCreditCardMembership](./credit_card.md#topup-with-credit-card-membership): äŒå¡æ
å ±ã«ããã¯ã¬ãžããã«ãŒããã£ãŒãž
+- [TopupWithCreditCardMdkToken](./credit_card.md#topup-with-credit-card-mdk-token): MDKããŒã¯ã³ã«ããã¯ã¬ãžããã«ãŒããã£ãŒãž
+
+### User
+- [GetUser](./user.md#get-user): Show the user information
+- [UpdateUser](./user.md#update-user): ãŠãŒã¶æ
å ±ã®æŽæ°
+- [GetUserWithAuthFactors](./user.md#get-user-with-auth-factors): ãŠãŒã¶ã®èªèšŒæ
å ±ã®ååŸ
+- [GetUserTransactions](./user.md#get-user-transactions): ååŒæ
å ±ã®ååŸ
+- [GetUserAccounts](./user.md#get-user-accounts): ãŠãŒã¶ã®ã¢ã«ãŠã³ãäžèЧååŸ
+- [GetUserSettingUrl](./user.md#get-user-setting-url): äžæçãªãã«ã¢ã¯ã»ã¹ãèš±å¯ããèªèšŒã®ããã®URLãååŸ
+
+### Bank
+- [DeleteBank](./bank.md#delete-bank): éè¡å£åº§ãšã®é£æºãè§£é€
+- [ListBanks](./bank.md#list-banks): ç»é²æžã¿ã®éè¡äžèЧã®ååŸ
+- [BankTopUp](./bank.md#bank-top-up): ç»é²ããéè¡ããã®ãã£ãŒãž
+
+### Merchants
+- [ListMerchantTransactions](./merchants.md#list-merchant-transactions): Show the merchant's transaction
+
+### Transaction
+- [GetTransaction](./transaction.md#get-transaction): ååŒæ
å ±ååŸ
+- [RefundTransaction](./transaction.md#refund-transaction): ååŒãã£ã³ã»ã«
+- [ListBillTransactions](./transaction.md#list-bill-transactions): Billã«ããååŒäžèЧãååŸãã
+- [GetBillLastTransaction](./transaction.md#get-bill-last-transaction): Get the last transaction of bill
+- [GetUserTransactions](./transaction.md#get-user-transactions): ååŒæ
å ±ã®ååŸ
+- [GetAccountTransactions](./transaction.md#get-account-transactions): ååŒå±¥æŽååŸ
+- [SendToAccount](./transaction.md#send-to-account): Send money to an account
+- [GetAccountTransfers](./transaction.md#get-account-transfers): ååŒæçŽ°äžèЧ
+
+### Account
+- [GetUserAccounts](./account.md#get-user-accounts): ãŠãŒã¶ã®ã¢ã«ãŠã³ãäžèЧååŸ
+- [GetAccount](./account.md#get-account): ãŠã©ã¬ããæ
å ±ãååŸãã
+- [UpdateAccount](./account.md#update-account): Update account information
+- [CreateAccount](./account.md#create-account): ã¢ã«ãŠã³ãäœæ
+- [GetAccountTransactions](./account.md#get-account-transactions): ååŒå±¥æŽååŸ
+- [SendToAccount](./account.md#send-to-account): Send money to an account
+- [GetAccountTransfers](./account.md#get-account-transfers): ååŒæçŽ°äžèЧ
+- [GetAccountBalances](./account.md#get-account-balances): æ®é«å
èš³ãååŸãã
+- [CreateAccountCpmToken](./account.md#create-account-cpm-token): CPMããŒã¯ã³äœæ
+- [GetAccountCoupons](./account.md#get-account-coupons): ã¯ãŒãã³è¡šç€º
+- [GetAccountCouponDetail](./account.md#get-account-coupon-detail): ã¯ãŒãã³ãååŸãã
+- [PatchAccountCouponDetail](./account.md#patch-account-coupon-detail): ã¯ãŒãã³ãåãåã
+- [IdentifyIndividual](./account.md#identify-individual): ãã€ãã³ããŒç¢ºèªã»ãã·ã§ã³ãäœæãã
+
+### Individual Number Identification
+- [IdentifyIndividual](./individual_number_identification.md#identify-individual): ãã€ãã³ããŒç¢ºèªã»ãã·ã§ã³ãäœæãã
+
+### Campaign
+- [GetAccountCampaignPointAmounts](./campaign.md#get-account-campaign-point-amounts): ãã£ã³ããŒã³ã®ãã€ã³ãä»äžç·é¡ååŸ
+
+### Cpm
+- [CreateAccountCpmToken](./cpm.md#create-account-cpm-token): CPMããŒã¯ã³äœæ
+- [GetCpmToken](./cpm.md#get-cpm-token): CPMããŒã¯ã³ã®æ
å ±ãååŸ
+
+### Sevenbankatm
+
+### Coupon
+- [GetAccountCoupons](./coupon.md#get-account-coupons): ã¯ãŒãã³è¡šç€º
+- [GetAccountCouponDetail](./coupon.md#get-account-coupon-detail): ã¯ãŒãã³ãååŸãã
+- [PatchAccountCouponDetail](./coupon.md#patch-account-coupon-detail): ã¯ãŒãã³ãåãåã
+- [GetPrivateMoneyCoupons](./coupon.md#get-private-money-coupons): ãããŒã®ã¯ãŒãã³æ
å ±ãååŸ
+
+### Private Money
+- [GetPrivateMoney](./private_money.md#get-private-money): ãããŒæ
å ±ãååŸ
+- [GetPrivateMoneyTerms](./private_money.md#get-private-money-terms): Get the private money terms
+- [GetPrivateMoneyPrivacyPolicy](./private_money.md#get-private-money-privacy-policy): Get the private money pricvacy-policy
+- [GetPrivateMoneyPaymentAct](./private_money.md#get-private-money-payment-act): Get the private money payment-act
+- [GetPrivateMoneyCommercialAct](./private_money.md#get-private-money-commercial-act): Get the private money commercial-act
+- [GetUserAttributeSchema](./private_money.md#get-user-attribute-schema): ãŠãŒã¶ã¢ã³ã±ãŒãé
ç®
+- [ListPrivateMoneys](./private_money.md#list-private-moneys): ãããŒäžèЧãååŸãã
+
+### Voucher
+
+### Open Exchange Rates
+
+### Payspot
+
+### Internal
+- [GetUserAttributeSchema](./internal.md#get-user-attribute-schema): ãŠãŒã¶ã¢ã³ã±ãŒãé
ç®
+
diff --git a/docs/ios-sdk/account.md b/docs/ios-sdk/account.md
new file mode 100644
index 0000000..a0e83cc
--- /dev/null
+++ b/docs/ios-sdk/account.md
@@ -0,0 +1,975 @@
+# Account
+ãŠã©ã¬ããã衚ãããŒã¿ã§ãã
+CustomerãMerchantãææããåäžãŠã©ã¬ããéã®ééã¯ååŒãšããŠèšé²ãããŸãã
+Customerã®ãŠã©ã¬ããã¯ãããŒæ®é«(æåããªã¥ãŒ)ããã€ã³ãæ®é«(ç¡åããªã¥ãŒ)ã®2çš®é¡ã®æ®é«ããã¡ãŸãã
+ãŸãæå¹æéå¥ã§éé¡ç®¡çããŠãããæå¹æéã¯ãã£ãŒãžæã®ã³ã³ããã¹ãã«ãã£ãŠæ±ºå®ãããŸãã
+ãŠãŒã¶ã¯ãããŒå¥ã«è€æ°ã®ãŠã©ã¬ãããä¿æããããšãå¯èœã§ãã
+ãã ãïŒãããŒïŒãŠã©ã¬ããã®ã¿ã§ãããåäžãããŒã®ãŠã©ã¬ãããè€æ°ææããããšã¯ã§ããŸããã
+
+
+
+## GetUserAccounts: ãŠãŒã¶ã®ã¢ã«ãŠã³ãäžèЧååŸ
+ãŠãŒã¶ã®ã¢ã«ãŠã³ãäžèЧãååŸããŸã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`user_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`before`**
+
+
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`after`**
+
+
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`per_page`**
+
+
+
+```json
+{
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 100
+}
+```
+
+
+
+æåãããšãã¯
+[PaginatedUserAccounts](./responses.md#paginated-user-accounts)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## GetAccount: ãŠã©ã¬ããæ
å ±ãååŸãã
+æå®ãããŠã©ã¬ããã®æ
å ±ãååŸããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+ãŠã©ã¬ããIDã§ãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+æåãããšãã¯
+[AccountDetail](./responses.md#account-detail)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## UpdateAccount: Update account information
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+ãŠã©ã¬ããIDã§ãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`name`**
+
+
+
+```json
+{
+ "type": "string",
+ "maxLength": 256
+}
+```
+
+
+
+æåãããšãã¯
+[AccountDetail](./responses.md#account-detail)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## CreateAccount: ã¢ã«ãŠã³ãäœæ
+æ°èŠã¢ã«ãŠã³ããäœæããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`name`**
+
+
+äœæããã¢ã«ãŠã³ãã®ååã§ãã
+
+```json
+{
+ "type": "string",
+ "maxLength": 256
+}
+```
+
+**`private_money_id`**
+
+
+äœæããã¢ã«ãŠã³ãã«çŽã¥ããããŒã®IDã§ãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`external_id`**
+
+
+äœæããã¢ã«ãŠã³ãã«çŽã¥ãå€éšIDã§ãã
+
+```json
+{
+ "type": "string",
+ "maxLength": 50
+}
+```
+
+
+
+æåãããšãã¯
+[AccountDetail](./responses.md#account-detail)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## GetAccountTransactions: ååŒå±¥æŽååŸ
+æå®ããIDã®ãŠã©ã¬ããã®ååŒå±¥æŽãååŸããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`before`**
+
+
+ããŒãžã³ã°ã®ããã®ãã©ã¡ãŒã¿ã§ãã
+æå®ããIDã®èŠçŽ ããåŸã®ååŒå±¥æŽãè¿ãããŸãã
+çŽåã®ããŒãžã®æåŸã®èŠçŽ ã®IDãæå®ããããšã§æ¬¡ã®ããŒãžãžé·ç§»ããããšãã§ããŸãã
+ããã§æå®ããIDã®èŠçŽ ããèªäœã¯çµæã«å«ãŸããªãããšã«æ³šæããŠãã ããã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`after`**
+
+
+ããŒãžã³ã°ã®ããã®ãã©ã¡ãŒã¿ã§ãã
+æå®ããIDã®èŠçŽ ããåã®ååŒå±¥æŽãè¿ãããŸãã
+çŽåã®ããŒãžã®æåã®èŠçŽ ã®IDãæå®ããããšã§åã®ããŒãžãžé·ç§»ããããšãã§ããŸãã
+ããã§æå®ããIDã®èŠçŽ ããèªäœã¯çµæã«å«ãŸããªãããšã«æ³šæããŠãã ããã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`per_page`**
+
+
+1ããŒãžãããã«è¡šç€ºããååŒå±¥æŽã®ä»¶æ°ã§ããããã©ã«ãå€ã¯30ä»¶ã§ãã
+
+```json
+{
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 100
+}
+```
+
+
+
+æåãããšãã¯
+[PaginatedAccountTransactions](./responses.md#paginated-account-transactions)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## SendToAccount: Send money to an account
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`receiver_terminal_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`sender_account_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`amount`**
+
+
+
+```json
+{
+ "type": "number",
+ "format": "decimal",
+ "minimum": 0
+}
+```
+
+**`description`**
+
+
+
+```json
+{
+ "type": "string",
+ "maxLength": 200
+}
+```
+
+
+
+æåãããšãã¯
+[UserTransaction](./responses.md#user-transaction)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## GetAccountTransfers: ååŒæçŽ°äžèЧ
+æå®ãããŠã©ã¬ããIDã®ååŒå±¥æŽãæçްã¬ãã«ã§ååŸããŸãã
+ååŒæçŽ°ã«ã¯è¿éããã£ã³ããŒã³ã«ãããã€ã³ãä»äžãªã©ãå«ãŸããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`before`**
+
+
+ããŒãžã³ã°ã®ããã®ãã©ã¡ãŒã¿ã§ãã
+æå®ããIDã®èŠçŽ ããåŸã®ååŒå±¥æŽãè¿ãããŸãã
+çŽåã®ããŒãžã®æåŸã®èŠçŽ ã®IDãæå®ããããšã§æ¬¡ã®ããŒãžãžé·ç§»ããããšãã§ããŸãã
+ããã§æå®ããIDã®èŠçŽ ããèªäœã¯çµæã«å«ãŸããªãããšã«æ³šæããŠãã ããã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`after`**
+
+
+ããŒãžã³ã°ã®ããã®ãã©ã¡ãŒã¿ã§ãã
+æå®ããIDã®èŠçŽ ããåã®ååŒå±¥æŽãè¿ãããŸãã
+çŽåã®ããŒãžã®æåã®èŠçŽ ã®IDãæå®ããããšã§åã®ããŒãžãžé·ç§»ããããšãã§ããŸãã
+ããã§æå®ããIDã®èŠçŽ ããèªäœã¯çµæã«å«ãŸããªãããšã«æ³šæããŠãã ããã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`per_page`**
+
+
+1ããŒãžãããã«è¡šç€ºããååŒå±¥æŽã®ä»¶æ°ã§ããããã©ã«ãå€ã¯30ä»¶ã§ãã
+
+```json
+{
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 100
+}
+```
+
+
+
+æåãããšãã¯
+[PaginatedAccountTransfers](./responses.md#paginated-account-transfers)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## GetAccountBalances: æ®é«å
èš³ãååŸãã
+æå®ãããŠã©ã¬ããã®æå¹æé奿®é«äžèЧãååŸããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+ãŠã©ã¬ããIDã§ãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`before`**
+
+
+æå¹æéã«ãããã£ã«ã¿ãŒã®æéæå®ã®ããã«äœ¿ããŸãã
+ãã®ãã©ã¡ãŒã¿ãæå®ãããšãæå¹æéãæå®ããæ¥æããåã®æ®é«ãæœåºãããŸãã
+
+```json
+{
+ "type": "string",
+ "format": "date-time"
+}
+```
+
+**`after`**
+
+
+æå¹æéã«ãããã£ã«ã¿ãŒã®æéæå®ã®ããã«äœ¿ããŸãã
+ãã®ãã©ã¡ãŒã¿ãæå®ãããšãæå¹æéãæå®ããæ¥æããåŸã®æ®é«ãæœåºãããŸãã
+
+```json
+{
+ "type": "string",
+ "format": "date-time"
+}
+```
+
+**`per_page`**
+
+
+1ããŒãžåœããååŸæ°ã§ããããã©ã«ãå€ã¯30ã§ãã
+
+```json
+{
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 100
+}
+```
+
+**`expired`**
+
+
+倱广žã¿ã®æ®é«ã衚瀺ãããã©ããã®ãã©ã°ã§ãã
+trueã®å Žåã倱广žã¿ã®æ®é«ã®ã¿ãååŸããfalseã®å Žåã¯æå¹ãªæ®é«ã®ã¿ãååŸããŸãã
+ããã©ã«ãå€ã¯falseã§ãã
+
+```json
+{
+ "type": "string",
+ "enum": [
+ "true",
+ "false"
+ ]
+}
+```
+
+
+
+æåãããšãã¯
+[PaginatedAccountBalances](./responses.md#paginated-account-balances)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## CreateAccountCpmToken: CPMããŒã¯ã³äœæ
+ãŠãŒã¶ã®ãŠã©ã¬ããID (account_id) ãæå®ããŠCPMããŒã¯ã³ãäœæããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`scopes`**
+
+
+
+```json
+{
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "payment",
+ "topup",
+ "external-transaction"
+ ]
+ }
+}
+```
+
+**`expires_in`**
+
+
+CPMããŒã¯ã³ã®æå¹æéã§ããåäœã¯ç§ã§ãããã©ã«ãã®å€ã¯300ç§(5å)ã§ãã
+æå€§å€ã¯2592000ç§(30æ¥)ã§ãããã»ãã¥ãªãã£ã®èгç¹ã§ã¯çãæéãæãŸãããšãããŠããŸãã
+
+```json
+{
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 2592000
+}
+```
+
+**`metadata`**
+
+
+CPMããŒã¯ã³ã«ã¡ã¿ããŒã¿ãèšå®ããŸãã
+ããã§æå®ããã¡ã¿ããŒã¿ã¯ååŒäœææã«åŒãç¶ããããã£ã³ããŒã³ã®çºç«æ¡ä»¶ãªã©ã«äœ¿çšãããŸãã
+
+```json
+{
+ "type": "string",
+ "format": "json"
+}
+```
+
+**`keep_alive`**
+
+
+éåžžãæ°ããCPMããŒã¯ã³ãçæããããšããããŸã§ã«äœãããCPMããŒã¯ã³ã¯ããšãæå¹æéå
ã§ãã£ãŠã倱å¹ããŸãã
+keep_aliveãã©ã°ã true ã«ãããšãåŸã®CPMããŒã¯ã³çææã«ã倱å¹ãããããªãCPMããŒã¯ã³ãäœãããšãã§ããŸãã
+ãã¹ãæãªã©ã«é·å¯¿åœã®CPMããŒã¯ã³ãäœãéã«ãåæã«æå®ããããšãå€ãã§ãã
+ããã©ã«ãã§ã¯ false ã«ãªããŸãã
+
+```json
+{
+ "type": "boolean"
+}
+```
+
+**`is_short_token`**
+
+
+ãã®ãã©ã¡ãŒã¿ã true ã«èšå®ãããŠãããšãã20æ¡ã«ççž®ãããCPMããŒã¯ã³ãçæãããŸãã
+éåžžã¯22æ¡ã§ãäžäœ8æ¡ãã©ã³ãã éšåã§ãããis_short_tokenã true ã«ãããšäžäœ6æ¡ãã©ã³ãã éšåã«ãªããŸãã
+ããã©ã«ãã§ã¯falseã§ã22æ¡ã®CPMããŒã¯ã³ãçæãããŸãã
+
+```json
+{
+ "type": "boolean"
+}
+```
+
+
+
+æåãããšãã¯
+[CpmToken](./responses.md#cpm-token)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## GetAccountCoupons: ã¯ãŒãã³è¡šç€º
+æå®ããã¢ã«ãŠã³ãã察象ã®ã¯ãŒãã³ãååŸããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`is_available`**
+
+
+å©çšå¯èœãªã¯ãŒãã³ã®ã¿ã衚瀺ãããã©ããã®ãã©ã°ã§ãã
+ããã©ã«ãå€ã¯trueã§ãã
+
+```json
+{
+ "type": "string",
+ "enum": [
+ "true",
+ "false"
+ ]
+}
+```
+
+**`before`**
+
+
+ããŒãžã³ã°ã®ããã®ãã©ã¡ãŒã¿ã§ãã
+æå®ããIDã®èŠçŽ ããåŸã®ååŒå±¥æŽãè¿ãããŸãã
+çŽåã®ããŒãžã®æåŸã®èŠçŽ ã®IDãæå®ããããšã§æ¬¡ã®ããŒãžãžé·ç§»ããããšãã§ããŸãã
+ããã§æå®ããIDã®èŠçŽ ããèªäœã¯çµæã«å«ãŸããªãããšã«æ³šæããŠãã ããã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`after`**
+
+
+ããŒãžã³ã°ã®ããã®ãã©ã¡ãŒã¿ã§ãã
+æå®ããIDã®èŠçŽ ããåã®ååŒå±¥æŽãè¿ãããŸãã
+çŽåã®ããŒãžã®æåã®èŠçŽ ã®IDãæå®ããããšã§åã®ããŒãžãžé·ç§»ããããšãã§ããŸãã
+ããã§æå®ããIDã®èŠçŽ ããèªäœã¯çµæã«å«ãŸããªãããšã«æ³šæããŠãã ããã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`per_page`**
+
+
+1ããŒãžãããã«è¡šç€ºããã¯ãŒãã³ã®ä»¶æ°ã§ããããã©ã«ãå€ã¯30ä»¶ã§ãã
+
+```json
+{
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1
+}
+```
+
+
+
+æåãããšãã¯
+[PaginatedAccountCoupons](./responses.md#paginated-account-coupons)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## GetAccountCouponDetail: ã¯ãŒãã³ãååŸãã
+æå®ãããŠã©ã¬ããã®ã¯ãŒãã³ãååŸããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+ãŠã©ã¬ããIDã§ãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`coupon_id`**
+
+
+ã¯ãŒãã³IDã§ãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+æåãããšãã¯
+[CouponDetail](./responses.md#coupon-detail)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## PatchAccountCouponDetail: ã¯ãŒãã³ãåãåã
+æå®ãããŠã©ã¬ããã«ãã¯ãŒãã³ã远å ããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+ãŠã©ã¬ããIDã§ãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`coupon_id`**
+
+
+ã¯ãŒãã³IDã§ãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`is_received`**
+
+
+æå®ããã¯ãŒãã³ãéå»ã«ãŠã©ã¬ãããååŸãããã瀺ãããŒãªã¢ã³å€ã§ããããã©ã«ãå€ã¯çã§ãã
+
+```json
+{
+ "type": "boolean"
+}
+```
+
+**`code`**
+
+
+ã¯ãŒãã³ååŸã«å¿
èŠãªã³ãŒãã衚ãæååã§ãã
+
+```json
+{
+ "type": "string"
+}
+```
+
+
+
+æåãããšãã¯
+[CouponDetail](./responses.md#coupon-detail)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## IdentifyIndividual: ãã€ãã³ããŒç¢ºèªã»ãã·ã§ã³ãäœæãã
+æå®ãããŠã©ã¬ããã®ãã€ãã³ããŒ(å人çªå·)ã確èªããããã®ã»ãã·ã§ã³ãäœæããŸãã
+
+ãã®APIã®ãã©ã¡ãŒã¿ã¯å
šãŠãã€ãã³ããŒã«ãŒãããAndroid/iOSã®eKYCã©ã€ãã©ãªã§ååŸã§ãããã®ã§ãã
+æ°åãæ§å¥ãäœæãçå¹Žææ¥ããã€ãã³ããŒã«ãŒãããå€éšéä¿¡ãªãã§ååŸã§ããŸãã
+APIã®æ°åãæ§å¥ãäœæãçå¹Žææ¥ã¯ãªãã·ã§ãã«ã§ãããããããéãããšã«ããå®éã«ç»é²ãããŠãããã®ãšäžèŽããŠãããã©ãããããããbooleanã§è¿ãããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+ãŠã©ã¬ããIDã§ãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`signature`**
+
+
+ãã€ãã³ããŒã«ãŒãã®é»åçœ²åæ©èœã«ããäœæãããé»å眲åã§ãã
+
+Base64笊å·åãããã®ãæå®ããŠãã ããã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`signing_cert`**
+
+
+é»å眲åã«çšãã眲åçšé»åèšŒææžã§ãã
+
+Base64笊å·åãããã®ãæå®ããŠãã ããã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`expected_hash`**
+
+
+æ¬æããç®åºããã¡ãã»ãŒãžãã€ãžã§ã¹ãã§ãã
+
+ããã·ã¥ã¢ã«ãŽãªãºã ã¯SHA256ã§ãã
+Base64笊å·åãããã®ãæå®ããŠãã ããã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`name`**
+
+
+æ°åã§ãã
+
+ã¹ããŒã¹ã¯ç¡èŠãããŸããå
¬çå人èªèšŒã§è¡šç€ºã§ããªããã®ã¯ãæ£åŒãªæ°åã§ã¯ãªãä»£æ¿æåãšã®æ¯èŒã«ãªããŸãã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`gender`**
+
+
+æ§å¥ã§ãã
+
+male, female, otherã®ãããããéžæã§ããŸãã
+
+```json
+{
+ "type": "string",
+ "enum": [
+ "male",
+ "female",
+ "other"
+ ]
+}
+```
+
+**`address`**
+
+
+äœæã§ãã
+
+ã¹ããŒã¹ã¯ç¡èŠãããŸããå
¬çå人èªèšŒã§è¡šç€ºã§ããªããã®ã¯ãæ£åŒãªäœæã§ã¯ãªãä»£æ¿æåãšã®æ¯èŒã«ãªããŸãã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`date_of_birth`**
+
+
+çå¹Žææ¥ã§ãã
+
+```json
+{
+ "type": "string",
+ "pattern": "^\\w{4}-?\\w{2}-?\\w{2}$"
+}
+```
+
+
+
+æåãããšãã¯
+[IdentificationResult](./responses.md#identification-result)
+ãè¿ããŸã
+
+
+
+---
+
+
+
diff --git a/docs/ios-sdk/bank.md b/docs/ios-sdk/bank.md
new file mode 100644
index 0000000..0238bcf
--- /dev/null
+++ b/docs/ios-sdk/bank.md
@@ -0,0 +1,143 @@
+# Bank
+ãã£ãŒãžã®ããã«å©çšãããéèæ©é¢å£åº§ã衚ãããŒã¿ã§ãã
+å£åº§çªå·ãªã©ã®ããŒã¿ã¯PokepayãµãŒãã§ã¯ç®¡ç察象å€(決æžGWåŽã§ä¿æ)ã§ãã
+å£åº§ç»é²ã¯æ±ºæžGWã®çšæããå°çšwebsiteã«ãŠå®æœãããŸãã
+å©çšå£åº§ãä¿åããŠããããšãå¯èœã§ãããä¿åæžã¿å£åº§ãªã¹ããããšããååŸã§ããŸãã
+ãã£ãŒãžéé¡ã¯ãããŒèšå®ã®ç¯å²å
ã§ãŠãŒã¶ãä»»æã®éé¡ãæå®å¯èœã§ãã
+
+
+
+
+## ListBanks: ç»é²æžã¿ã®éè¡äžèЧã®ååŸ
+ãŠãŒã¶ãç»é²ããéè¡ã®äžèЧãååŸããŸã
+
+private_money_idãæå®ãããšã察象ã®ãããŒã«ç»é²ããéè¡ã®ã¿ååŸã§ããŸã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`user_id`**
+
+
+ãŠãŒã¶ID
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`private_money_id`**
+
+
+ãããŒIDãæå®ããŸã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+æåãããšãã¯
+[UserBanks](./responses.md#user-banks)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## BankTopUp: ç»é²ããéè¡ããã®ãã£ãŒãž
+ãŠãŒã¶ã®ç»é²ããéè¡ããã察象ã®ãããŒã®ã¢ã«ãŠã³ãã«ãã£ãŒãžããŸã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`user_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`account_id`**
+
+
+察象ã®ãããŒã®ã¢ã«ãŠã³ããæå®ããŸã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`bank_id`**
+
+
+ç»é²ããéè¡ã®IDãæå®ããŸã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`amount`**
+
+
+ãã£ãŒãžãããéé¡ãæå®ããŸã
+
+```json
+{
+ "type": "integer",
+ "minimum": 1
+}
+```
+
+**`request_id`**
+
+
+ååŒäœæAPIã®çŸçæ§ãæ
ä¿ããããã®ãªã¯ãšã¹ãåºæã®IDã§ã
+
+åŸãã察象ã®ååŒã `GetTransactionByRequestId` ã䜿ã£ãŠåãåºãããã«çšããããŸã
+
+ãªã¯ãšã¹ãIDãæå®ãããšãããŸã ãã®ãªã¯ãšã¹ãIDã«å¯ŸããååŒããªãå Žåãæ°èŠã«ååŒãäœããã¬ã¹ãã³ã¹ãšããŠè¿ãããŸãããããã®ãªã¯ãšã¹ãIDã«å¯ŸããååŒãæ¢ã«ããå Žåãæ¢åã®ååŒãã¬ã¹ãã³ã¹ãšããŠè¿ãããŸã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+æåãããšãã¯
+[UserTransaction](./responses.md#user-transaction)
+ãè¿ããŸã
+
+
+
+---
+
+
+
diff --git a/docs/ios-sdk/bill.md b/docs/ios-sdk/bill.md
new file mode 100644
index 0000000..624feb4
--- /dev/null
+++ b/docs/ios-sdk/bill.md
@@ -0,0 +1,372 @@
+# Bill
+æ¯æãããŒã¯ã³(URL圢åŒ)ã衚ãããŒã¿ã§ãã
+URLæååã®ãŸãŸå©çšãããã±ãŒã¹ãšQRç»ååããŠå©çšãããã±ãŒã¹ããããŸãã
+ãã°ã€ã³æžã¿ãŠãŒã¶ã¢ããªã§èªèŸŒãããšã§ãæ¯æãååŒãäœæããŸãã
+èšå®ãããæ¯æãéé¡(amount)ã¯ãåºå®å€ãšãŠãŒã¶ã«ããèªç±å
¥åã®2ãã¿ãŒã³ããããŸãã
+amountã空ã®å Žåã¯ããŠãŒã¶ã«ããèªç±å
¥åã§åãä»ããéé¡ã§æ¯æããè¡ããŸãã
+æå¹æéã¯æ¯èŒçé·åœã§å©çšãããäºäŸãå€ãã§ãã
+
+è€æ°ãããŒå¯Ÿå¿æ¯æãã³ãŒãã«ã€ããŠ:
+ãªãã·ã§ãã«ã§è€æ°ã®ãããŒãïŒã€ã®æ¯æãã³ãŒãã«èšå®å¯èœã§ãã
+ãã®å ŽåãŠãŒã¶åŽã§ã©ã®ãããŒã§æ¯æããæå®å¯èœã§ãã
+è€æ°ãããŒå¯Ÿå¿æ¯æãã³ãŒãã«ã¯ããã©ã«ãã®ãããŒãŠã©ã¬ãããèšå®ããå¿
èŠãããããŠãŒã¶ããããŒãæç€ºçã«éžæããªãã£ãå Žåã¯ããã©ã«ãã®ãããŒã«ããæ¯æãã«ãªããŸãã
+
+
+
+
+## GetBill: äœææžã¿Billã®èšå®å
容ãåç
§ãã
+äœææžã¿Billã®èšå®å
容ãåç
§ãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`bill_id`**
+
+
+åç
§ãããBillã®IDãæå®ãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`private_money_id`**
+
+
+ãããŒIDãæå®ããŸã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+æåãããšãã¯
+[BillWithAdditionalPrivateMoneys](./responses.md#bill-with-additional-private-moneys)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## UpdateBill: Billã®èšå®å
å®¹ãæŽæ°
+æ¯æãQRã³ãŒãã®å
å®¹ãæŽæ°ããŸããæ¯æãå
ã®åºèãŠãŒã¶ã¯æå®ãããããŒã®ãŠã©ã¬ãããæã£ãŠããå¿
èŠããããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`bill_id`**
+
+
+åç
§ãããBillã®IDãæå®ãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`amount`**
+
+
+æ¯æãéé¡ãæå®ãã
+
+```json
+{
+ "type": "integer",
+ "minimum": 0
+}
+```
+
+**`description`**
+
+
+æ¯æãQRã«çšéã¡ã¢ãã€ãã
+
+```json
+{
+ "type": "string",
+ "maxLength": 200
+}
+```
+
+**`products`**
+
+
+Billã«ããæ¯æãã®å¯Ÿè±¡ååæ
å ±ãã€ãã
+
+```json
+{
+ "type": "array",
+ "items": {
+ "type": "Product"
+ }
+}
+```
+
+
+
+æåãããšãã¯
+[Bill](./responses.md#bill)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## ListBillTransactions: Billã«ããååŒäžèЧãååŸãã
+ã¯ã³ã¿ã€ã ã§ãªãæ¯æãQRã³ãŒã(Bill)ã®å Žåãè€æ°ã®æ¯æãååŒãçºçãåŸãŸãã
+ãã®APIã§ã¯ãBillã®IDãããã®Billããçºçããæ¯æãååŒã®ãªã¹ããååŸããŸãã
+
+
+```swift
+
+```
+
+
+
+### Parameters
+**`bill_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`before`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`after`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`per_page`**
+
+
+
+```json
+{
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 100
+}
+```
+
+
+
+
+
+
+---
+
+
+
+## GetBillLastTransaction: Get the last transaction of bill
+
+```swift
+
+```
+
+
+
+### Parameters
+**`bill_id`**
+
+
+æ¯æãQRã³ãŒãID
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+æåãããšãã¯
+[UserTransaction](./responses.md#user-transaction)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## CreateBill: æ¯æãçšQR(ããŒã¯ã³)ãæ°èŠç»é²
+æ¯æãQRã³ãŒãã®æ°ãã«äœæããŸããæ¯æãå
ã®åºèãŠãŒã¶ã¯æå®ãããããŒã®ãŠã©ã¬ãããæã£ãŠããå¿
èŠããããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`amount`**
+
+
+æ¯æãQRã³ãŒãã®æ¯æãéé¡ãæå®ãããçç¥ãããnullãæž¡ããšä»»æéé¡ã®æ¯æãQRã³ãŒããšãªãããšã³ããŠãŒã¶ãã¢ããªã§èªã¿åã£ãéã«éé¡ãå
¥åãããŸãã
+
+```json
+{
+ "type": "number",
+ "format": "decimal",
+ "minimum": 1
+}
+```
+
+**`account_id`**
+
+
+æ¯æãå
ãšãªããŠã©ã¬ãã(Account)ãæå®ããŸããæ¯æãå
ãCustomer, Merchantææã®Accountã©ã¡ãã®ã±ãŒã¹ãååšããŸãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`additional_account_ids`**
+
+
+ïŒã€ã®Billã§è€æ°ãããŒå¯Ÿå¿ãããå Žåã«æå®ããŸããaccount_id以å€ã®é»åãããŒã§ãŠãŒã¶æ¯æããåãä»ãããå Žåã«å©çšããŸã
+
+```json
+{
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid"
+ }
+}
+```
+
+**`description`**
+
+
+æ¯æãçšéãªã©ãèšèŒããã¡ã¢æ¬ã§ãã
+ååŒã®descriptionã«ã転åãããã®ã§ãšã³ããŠãŒã¶ã«ãèŠããããŒã¿ãšãªããŸãã
+
+```json
+{
+ "type": "string",
+ "maxLength": 200
+}
+```
+
+**`is_onetime`**
+
+
+1åã®ã¿å©çšå¯èœãªã¯ã³ã¿ã€ã ããŒã¯ã³ãšããå Žåã«trueãæå®ããŸã
+
+```json
+{
+ "type": "boolean"
+}
+```
+
+**`min_amount`**
+
+
+Billãå©çšããŠæ¯æãå¯èœãªæå°éé¡(å«ã)ãæå®ããããšãå¯èœã§ã
+
+```json
+{
+ "type": "number",
+ "format": "decimal",
+ "minimum": 0
+}
+```
+
+**`max_amount`**
+
+
+Billãå©çšããŠæ¯æãå¯èœãªæå€§éé¡(å«ã)ãæå®ããããšãå¯èœã§ã
+
+```json
+{
+ "type": "number",
+ "format": "decimal",
+ "minimum": 0
+}
+```
+
+**`products`**
+
+
+賌å
¥ååæ
å ±ãä»»æã§æãããããšãå¯èœã§ã
+
+```json
+{
+ "type": "array",
+ "items": {
+ "type": "Product"
+ }
+}
+```
+
+**`metadata`**
+
+
+ä»»æã®è£è¶³æ
å ±ãã¡ã¿æ
å ±ãšããŠæãããããšãå¯èœã§ã
+
+```json
+{
+ "type": "string",
+ "format": "json"
+}
+```
+
+
+
+æåãããšãã¯
+[Bill](./responses.md#bill)
+ãè¿ããŸã
+
+
+
+---
+
+
+
diff --git a/docs/ios-sdk/campaign.md b/docs/ios-sdk/campaign.md
new file mode 100644
index 0000000..a6c7764
--- /dev/null
+++ b/docs/ios-sdk/campaign.md
@@ -0,0 +1,55 @@
+# Campaign
+èªåãã€ã³ãéå
ã«ãŒã«ã®èšå®ã衚ãããŒã¿ã§ãã
+Pokepay管çç»é¢ãPartnerSDKçµç±ã§ã«ãŒã«ç»é²ãæŽæ°ãå¯èœã§ãã
+ååŒ(Transaction)ãŸãã¯å€éšæ±ºæžã€ãã³ã(ExternalTransaction)ã®å
容ã«ãã£ãŠéå
ãããã€ã³ãé¡ãèšç®ããèªåã§ä»äžããã«ãŒã«ãèšå®å¯èœã§ãã
+targetãšããŠååŒãŸãã¯å€éšæ±ºæžã€ãã³ããéžæããŠåå¥èšå®ããŸãã
+
+
+
+## GetAccountCampaignPointAmounts: ãã£ã³ããŒã³ã®ãã€ã³ãä»äžç·é¡ååŸ
+察象ã®ãŠã©ã¬ããã«ãããŠãæå®ãã£ã³ããŒã³ã«ããä»äžããããã€ã³ãã®ç·é¡ãååŸããŸãã
+ãã£ã³ããŒã³ã®èšå®ã«ãã£ãŠã¯ãŠãŒã¶æ¯ã«ãã€ã³ãã®çޝç©ã§ã®ä»äžäžéãæ±ºããããŠããå Žåãããã
+çŸæç¹ã§ãŠãŒã¶ãã©ãã ãã®ãã€ã³ããåãåã£ãŠããã®ãã衚瀺ãããšãã«å¿
èŠã«ãªããŸãã
+
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`campaign_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+æåãããšãã¯
+[AccountCampaignPointAmounts](./responses.md#account-campaign-point-amounts)
+ãè¿ããŸã
+
+
+
+---
+
+
+
diff --git a/docs/ios-sdk/cashtray.md b/docs/ios-sdk/cashtray.md
new file mode 100644
index 0000000..d20ea67
--- /dev/null
+++ b/docs/ios-sdk/cashtray.md
@@ -0,0 +1,230 @@
+# Cashtray
+èšå®éé¡(æ£è² )ã«ãã£ãŠãæ¯æã/ãã£ãŒãžããŒã¯ã³ã®åæ¹ã衚ãããŒã¿ã§ãã
+å¯Ÿé¢æ±ºæžã«ãããŠãåºèåŽã¢ããªã±ãŒã·ã§ã³ã«ãã£ãŠåçã«çæããŠãŒã¶ãžæç€ºãããããšãæ³å®ããŠããŸãã
+ãã®ããCashtrayãäœæã§ããã®ã¯åºèãŠãŒã¶ã®ã¿ã§ããŠãŒã¶ã«ãã£ãŠèªã¿åãããããšã«ããååŒãäœæãããŸãã
+åºèãŠãŒã¶ã¯Cashtrayã®ç¶æ
ãç£èŠããããšãã§ããååŒã®æåŠããšã©ãŒäºç±ãç¥ãããšãã§ããŸãã
+
+äœææã«ã¯ãèšå®éé¡ãæ£ã®æŽæ°ã§ããå Žåã¯ãã£ãŒãžãšãªããèšå®éé¡ãè² ã®æŽæ°ã§ããå Žåã¯æ¯æããšãªããŸãã
+èªã¿åãåŸãååŒã®æåŠã«é¢ãããïŒåã®ã¿ããå©çšã§ããªãã¯ã³ã¿ã€ã ããŒã¯ã³ã§ãã
+æå¹æéã¯çåœã§å©çšãããäºäŸãå€ãã§ããããã¯å¯Ÿé¢ã§ããã«èªã¿åãããããšãæ³å®éçšãšããŠããããã§ãã
+
+
+
+
+## GetCashtray: Cashtrayã®èšå®å
容ãåç
§
+äœææžã¿Cashtrayã®èšå®å
容ã確èªãããã±ãŒã¹ã«å©çšããŸã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`cashtray_id`**
+
+
+確èªããCashtrayã®IDïŒããŒã¯ã³äœææã®ã¬ã¹ãã³ã¹ã«å«ãŸããIDïŒ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+æåãããšãã¯
+[CashtrayWithAttemptAndTransaction](./responses.md#cashtray-with-attempt-and-transaction)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## UpdateCashtray: Cashtrayã®èšå®å
å®¹ãæŽæ°
+äœææžã¿Cashtrayã®èšå®å€ã倿Žãããã±ãŒã¹ã«å©çšããŸã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`cashtray_id`**
+
+
+確èªããCashtrayã®IDïŒããŒã¯ã³äœææã®ã¬ã¹ãã³ã¹ã«å«ãŸããIDïŒ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`amount`**
+
+
+決æžéé¡ãæå®ããŸããæ£ã®æŽæ°ãæ¯æããè² ã®æŽæ°ããã£ãŒãžæ±ºæžãæå³ããŸã
+
+```json
+{
+ "type": "integer"
+}
+```
+
+**`description`**
+
+
+決æžçšéã¡ã¢ãæå®ããŸããæ±ºæžå®äºæã®ååŒããŒã¿ã®èª¬ææ¬ã«è»¢åãããŸã
+
+```json
+{
+ "type": "string",
+ "maxLength": 200
+}
+```
+
+**`expires_in`**
+
+
+CashtrayããŒã¯ã³ãæå¹ãªæéãç§æ°ã§æå®ããŸã
+
+```json
+{
+ "type": "integer",
+ "minimum": 0
+}
+```
+
+**`products`**
+
+
+ä»»æã§è³Œå
¥ååæ
å ±ãæå®ããããšãå¯èœã§ã
+
+```json
+{
+ "type": "array",
+ "items": {
+ "type": "Product"
+ }
+}
+```
+
+
+
+æåãããšãã¯
+[Cashtray](./responses.md#cashtray)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## CreateCashtray: Cashtrayãæ°èŠç»é²
+ãšã³ããŠãŒã¶ã«å¯ŸããŠæ¯æããŸãã¯ãã£ãŒãžãè¡ãåºèã®æ
å ±(åºèãŠãŒã¶IDãšãããŒID)ãšãååŒéé¡ãå¿
é é
ç®ã§ãã
+åºèãŠãŒã¶IDãšãããŒIDããåºèãŠã©ã¬ãããç¹å®ããŸãã
+ãã®ä»ã«ãCashtrayããäœãããååŒã«å¯Ÿãã説ææã倱广éãæå®ã§ããŸãã
+
+
+```swift
+
+```
+
+
+
+### Parameters
+**`amount`**
+
+
+Cashtrayã䜿ã£ã決æžéé¡ã衚ããã©ã¡ã¿ã§ãã
+æ£ã®æŽæ°ãæå®ãããšæ¯æãã
+è² ã®æŽæ°ãæå®ãããšãã£ãŒãžãšãªããŸãã
+
+```json
+{
+ "type": "number",
+ "format": "decimal"
+}
+```
+
+**`description`**
+
+
+Cashtrayã®çšéãªã©ãèšèŒããã¡ã¢æ¬ã§ãã
+ååŒã®descriptionã«ã転åãããã®ã§ãšã³ããŠãŒã¶ã«ãèŠããããŒã¿ãšãªããŸãã
+
+```json
+{
+ "type": "string",
+ "maxLength": 200
+}
+```
+
+**`expires_in`**
+
+
+CashtrayããŒã¯ã³ãæå¹ãªæéãç§æ°ã§æå®ããŸã
+
+```json
+{
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0
+}
+```
+
+
+
+æåãããšãã¯
+[Cashtray](./responses.md#cashtray)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## GetCashtrayAttempts: Cashtrayãå©çšããæ±ºæžã®ç¶æ³ã確èª
+Cashtrayã¯MPMæ¹åŒã§å©çšãããããŒã¯ã³ã§ãããæ±ºæžå®è¡ããäž»äœã¯ãŠãŒã¶ã¢ããªãšãªããããåºèåŽ(ã¬ãžãªã©)ãæ±ºæžç¶æ³ã確èªããããã«å©çšããŸãã
+ååŒãæåããå Žåã¯ååŒããŒã¿ãååŸã§ãã倱æããéã¯ãšã©ãŒå
容ãåç
§ã§ããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`cashtray_id`**
+
+
+確èªããCashtrayã®IDãæå®ããŸãïŒããŒã¯ã³äœææã®ã¬ã¹ãã³ã¹ã«å«ãŸããIDïŒ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+æåãããšãã¯
+[CashtrayAttempts](./responses.md#cashtray-attempts)
+ãè¿ããŸã
+
+
+
+---
+
+
+
diff --git a/docs/ios-sdk/check.md b/docs/ios-sdk/check.md
new file mode 100644
index 0000000..9f10920
--- /dev/null
+++ b/docs/ios-sdk/check.md
@@ -0,0 +1,347 @@
+# Check
+ãã£ãŒãžããŒã¯ã³(URL圢åŒ)ã衚ãããŒã¿ã§ãã
+URLæååã®ãŸãŸå©çšãããã±ãŒã¹ãšQRç»ååããŠå©çšãããã±ãŒã¹ããããŸãã
+ãã°ã€ã³æžã¿ãŠãŒã¶ã¢ããªã§èªèŸŒãããšã§ããã£ãŒãžååŒãäœæããŸãã
+èšå®ããããã£ãŒãžéé¡(amount)ã¯åºå®ã§ãããããŒã¿äœææã«æå®å¯èœã§ãã
+ïŒãŠãŒã¶ãããïŒåããèªèŸŒã¿ã§ããªãå¶éããããŸãã
+æå¹æéã¯æ¯èŒçé·åœã§å©çšãããäºäŸãå€ãã§ãã
+
+
+
+
+## GetCheck: ãã£ãŒãžQRã³ãŒããååŸãã
+æå®ããIDã®ãã£ãŒãžQRã³ãŒãã®æ
å ±ãååŸããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`check_id`**
+
+
+ãã£ãŒãžQRã³ãŒãID
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+æåãããšãã¯
+[Check](./responses.md#check)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## UpdateCheck: ãã£ãŒãžQRã³ãŒããä¿®æ£ãã
+æå®ãããã£ãŒãžQRã³ãŒããä¿®æ£ããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`check_id`**
+
+
+ãã£ãŒãžQRã³ãŒãID
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`amount`**
+
+
+ãã£ãŒãžQRã³ãŒãã«ãã£ãŠä»äžããããããŒé¡ã§ãã
+
+
+```json
+{
+ "type": "number",
+ "format": "decimal",
+ "minimum": 1
+}
+```
+
+**`description`**
+
+
+ãã£ãŒãžQRã³ãŒãã®èª¬ææã§ãã
+
+ãã£ãŒãžååŒåŸã¯ãååŒã®èª¬ææã«è»¢èšãããååŒå±¥æŽãªã©ã«è¡šç€ºãããŸãã
+
+
+```json
+{
+ "type": "string",
+ "maxLength": 200
+}
+```
+
+**`expires_at`**
+
+
+ãã£ãŒãžQRã³ãŒãèªäœã®å€±å¹æ¥æãæå®ããŸãã
+
+ãã®æ¥æä»¥éã¯ãã£ãŒãžQRã³ãŒããèªã¿åããªããªããŸãã
+ãã£ãŒãžQRã³ãŒãèªäœã®å€±å¹æ¥æã§ãã£ãŠããã£ãŒãžQRã³ãŒãã«ãã£ãŠä»äžããããããŒæ®é«ã®æå¹æéãšã¯ç°ãªãããšã«æ³šæããŠãã ããããããŒæ®é«ã®æå¹æéã¯ãããŒèšå®ã§æå®ãããŠãããã®ã«ãªããŸãã
+
+
+```json
+{
+ "type": "string",
+ "format": "date-time"
+}
+```
+
+**`point_expires_at`**
+
+
+ãã£ãŒãžQRã³ãŒãã«ãã£ãŠä»äžããããã€ã³ãæ®é«ã®æå¹æéãæå®ããŸãã
+
+ãã£ãŒãžQRã³ãŒãã«ããä»äžããããããŒæ®é«ã®æå¹æéã¯QRã³ãŒãæ¯ã«ã¯æå®ã§ããŸãããããã€ã³ãæ®é«ã®æå¹æéã¯æ¬ãã©ã¡ãŒã¿ã«ãããQRã³ãŒãæ¯ã«åå¥ã«æå®ããããšãã§ããŸãã
+ãããŒæ®é«ã®æå¹æéã¯ãããŒã®èšå®ã«æºããŸãã
+
+
+```json
+{
+ "type": "string",
+ "format": "date-time"
+}
+```
+
+**`point_expires_in_days`**
+
+
+ãã£ãŒãžQRã³ãŒãã«ãã£ãŠä»äžããããã€ã³ãæ®é«ã®æå¹æéãçžå¯Ÿæ¥æ°ã§æå®ããŸãã
+
+1ãæå®ãããšããã£ãŒãžQRã³ãŒãäœææ¥ã®åœæ¥äžã«å€±å¹ããŸã(ç¿æ¥0æã«å€±å¹)ã
+`point_expires_at`ãš`point_expires_in_days`ãäž¡æ¹æå®ãããŠããå Žåã¯ããã£ãŒãžQRã³ãŒãã«ãããã£ãŒãžååŒãã§ããæç¹ããããè¿ãæ¹ãæ¡çšãããŸãã
+`point_expires_at`ãš`point_expires_in_days`ãäž¡æ¹NULLã«èšå®ãããŠããå Žåã¯ããããŒã«èšå®ãããŠããæ®é«ã®æå¹æéãšåãã«ãªããŸãã
+
+
+```json
+{
+ "type": "integer",
+ "minimum": 1
+}
+```
+
+
+
+æåãããšãã¯
+[Check](./responses.md#check)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## CreateCheck: ãã£ãŒãžQRã³ãŒãã®çºè¡ãã
+ãã£ãŒãžQRã³ãŒããçºè¡ããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`amount`**
+
+
+ãã£ãŒãžQRã³ãŒãã«ãã£ãŠä»äžããããããŒé¡ã§ãã
+
+`money_amount`ã`point_amount`ãåæã«æå®ãããå Žåãšã©ãŒã«ãªããŸãã
+
+
+```json
+{
+ "type": "number",
+ "format": "decimal",
+ "minimum": 1
+}
+```
+
+**`money_amount`**
+
+
+ãã£ãŒãžQRã³ãŒãã«ãã£ãŠä»äžããããããŒé¡ã§ãã
+
+`amount`ãåæã«æå®ãããå Žåãšã©ãŒã«ãªããŸãã
+`money_amount`ãš`point_amount`ãäž¡æ¹0ã«ãªããããªæŽæ°ãªã¯ãšã¹ãã¯ãšã©ãŒã«ãªããŸãã
+
+
+```json
+{
+ "type": "number",
+ "format": "decimal",
+ "minimum": 0
+}
+```
+
+**`point_amount`**
+
+
+ãã£ãŒãžQRã³ãŒãã«ãã£ãŠä»äžããããã€ã³ãé¡ã§ãã
+
+`amount`ãåæã«æå®ãããå Žåãšã©ãŒã«ãªããŸãã
+`money_amount`ãš`point_amount`ãäž¡æ¹0ã«ãªããããªæŽæ°ãªã¯ãšã¹ãã¯ãšã©ãŒã«ãªããŸãã
+
+
+```json
+{
+ "type": "number",
+ "format": "decimal",
+ "minimum": 0
+}
+```
+
+**`account_id`**
+
+
+ééå
ã®ãŠã©ã¬ããIDã§ãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`description`**
+
+
+ãã£ãŒãžQRã³ãŒãã®èª¬ææã§ãã
+
+ãã£ãŒãžååŒåŸã¯ãååŒã®èª¬ææã«è»¢èšãããååŒå±¥æŽãªã©ã«è¡šç€ºãããŸãã
+
+
+```json
+{
+ "type": "string",
+ "maxLength": 200
+}
+```
+
+**`is_onetime`**
+
+
+ãã£ãŒãžQRã³ãŒããäžåºŠã®èªã¿åãã§å€±å¹ãããšãã«`true`ã«ããŸããããã©ã«ãå€ã¯`true`ã§ãã
+
+`false`ã®å Žåãè€æ°ãŠãŒã¶ã«ãã£ãŠèªã¿åãå¯èœãªQRã³ãŒãã«ãªããŸãã
+ãã ãããã®å Žåã1ãŠãŒã¶ã«ã€ã1åã®ã¿ããèªã¿åããŸããã
+
+
+```json
+{
+ "type": "boolean"
+}
+```
+
+**`usage_limit`**
+
+
+è€æ°ãŠãŒã¶ã«ãã£ãŠèªã¿åãå¯èœãªãã£ãŒãžQRã³ãŒãã®æå€§èªã¿åãåæ°ãæå®ããŸãã
+
+NULLã«èšå®ãããšç¡å¶éã«èªã¿åãå¯èœãªãã£ãŒãžQRã³ãŒãã«ãªããŸãã
+ããã©ã«ãå€ã¯NULLã§ãã
+ã¯ã³ã¿ã€ã æå®(`is_onetime`)ããããŠãããšãã¯ãæ¬ãã©ã¡ãŒã¿ã¯NULLã§ããå¿
èŠããããŸãã
+
+
+```json
+{
+ "type": "integer",
+ "minimum": 1
+}
+```
+
+**`expires_at`**
+
+
+ãã£ãŒãžQRã³ãŒãèªäœã®å€±å¹æ¥æãæå®ããŸãã
+
+ãã®æ¥æä»¥éã¯ãã£ãŒãžQRã³ãŒããèªã¿åããªããªããŸãã
+ãã£ãŒãžQRã³ãŒãèªäœã®å€±å¹æ¥æã§ãã£ãŠããã£ãŒãžQRã³ãŒãã«ãã£ãŠä»äžããããããŒæ®é«ã®æå¹æéãšã¯ç°ãªãããšã«æ³šæããŠãã ããããããŒæ®é«ã®æå¹æéã¯ãããŒèšå®ã§æå®ãããŠãããã®ã«ãªããŸãã
+
+
+```json
+{
+ "type": "string",
+ "format": "date-time"
+}
+```
+
+**`point_expires_at`**
+
+
+ãã£ãŒãžQRã³ãŒãã«ãã£ãŠä»äžããããã€ã³ãæ®é«ã®æå¹æéãæå®ããŸãã
+
+ãã£ãŒãžQRã³ãŒãã«ããä»äžããããããŒæ®é«ã®æå¹æéã¯QRã³ãŒãæ¯ã«ã¯æå®ã§ããŸãããããã€ã³ãæ®é«ã®æå¹æéã¯æ¬ãã©ã¡ãŒã¿ã«ãããQRã³ãŒãæ¯ã«åå¥ã«æå®ããããšãã§ããŸãã
+
+
+```json
+{
+ "type": "string",
+ "format": "date-time"
+}
+```
+
+**`point_expires_in_days`**
+
+
+ãã£ãŒãžQRã³ãŒãã«ãã£ãŠä»äžããããã€ã³ãæ®é«ã®æå¹æéãçžå¯Ÿæ¥æ°ã§æå®ããŸãã
+
+1ãæå®ãããšããã£ãŒãžQRã³ãŒãäœææ¥ã®åœæ¥äžã«å€±å¹ããŸã(ç¿æ¥0æã«å€±å¹)ã
+`point_expires_at`ãš`point_expires_in_days`ãäž¡æ¹æå®ãããŠããå Žåã¯ããã£ãŒãžQRã³ãŒãã«ãããã£ãŒãžååŒãã§ããæç¹ããããè¿ãæ¹ãæ¡çšãããŸãã
+`point_expires_at`ãš`point_expires_in_days`ãäž¡æ¹NULLã«èšå®ãããŠããå Žåã¯ããããŒã«èšå®ãããŠããæ®é«ã®æå¹æéãšåãã«ãªããŸãã
+
+
+```json
+{
+ "type": "integer",
+ "minimum": 1
+}
+```
+
+**`metadata`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "json"
+}
+```
+
+
+
+æåãããšãã¯
+[Check](./responses.md#check)
+ãè¿ããŸã
+
+
+
+---
+
+
+
diff --git a/docs/ios-sdk/coupon.md b/docs/ios-sdk/coupon.md
new file mode 100644
index 0000000..2fc0e61
--- /dev/null
+++ b/docs/ios-sdk/coupon.md
@@ -0,0 +1,279 @@
+# Coupon
+å²åŒã¯ãŒãã³ã衚ãããŒã¿ã§ãã
+ã¯ãŒãã³ããŠãŒã¶ãæç€ºçã«å©çšããããšã«ãã£ãŠæ¯æãæ±ºæžæã®å²åŒ(åºå®éé¡ or å²åŒç)ãé©çšãããŸãã
+ã¯ãŒãã³åè³ã®è² æ
ããçºè¡åºèãèšå®ããããé
åžå
ãæå®ããããšãå¯èœã§ãã
+
+
+
+## GetAccountCoupons: ã¯ãŒãã³è¡šç€º
+æå®ããã¢ã«ãŠã³ãã察象ã®ã¯ãŒãã³ãååŸããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`is_available`**
+
+
+å©çšå¯èœãªã¯ãŒãã³ã®ã¿ã衚瀺ãããã©ããã®ãã©ã°ã§ãã
+ããã©ã«ãå€ã¯trueã§ãã
+
+```json
+{
+ "type": "string",
+ "enum": [
+ "true",
+ "false"
+ ]
+}
+```
+
+**`before`**
+
+
+ããŒãžã³ã°ã®ããã®ãã©ã¡ãŒã¿ã§ãã
+æå®ããIDã®èŠçŽ ããåŸã®ååŒå±¥æŽãè¿ãããŸãã
+çŽåã®ããŒãžã®æåŸã®èŠçŽ ã®IDãæå®ããããšã§æ¬¡ã®ããŒãžãžé·ç§»ããããšãã§ããŸãã
+ããã§æå®ããIDã®èŠçŽ ããèªäœã¯çµæã«å«ãŸããªãããšã«æ³šæããŠãã ããã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`after`**
+
+
+ããŒãžã³ã°ã®ããã®ãã©ã¡ãŒã¿ã§ãã
+æå®ããIDã®èŠçŽ ããåã®ååŒå±¥æŽãè¿ãããŸãã
+çŽåã®ããŒãžã®æåã®èŠçŽ ã®IDãæå®ããããšã§åã®ããŒãžãžé·ç§»ããããšãã§ããŸãã
+ããã§æå®ããIDã®èŠçŽ ããèªäœã¯çµæã«å«ãŸããªãããšã«æ³šæããŠãã ããã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`per_page`**
+
+
+1ããŒãžãããã«è¡šç€ºããã¯ãŒãã³ã®ä»¶æ°ã§ããããã©ã«ãå€ã¯30ä»¶ã§ãã
+
+```json
+{
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1
+}
+```
+
+
+
+æåãããšãã¯
+[PaginatedAccountCoupons](./responses.md#paginated-account-coupons)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## GetAccountCouponDetail: ã¯ãŒãã³ãååŸãã
+æå®ãããŠã©ã¬ããã®ã¯ãŒãã³ãååŸããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+ãŠã©ã¬ããIDã§ãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`coupon_id`**
+
+
+ã¯ãŒãã³IDã§ãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+æåãããšãã¯
+[CouponDetail](./responses.md#coupon-detail)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## PatchAccountCouponDetail: ã¯ãŒãã³ãåãåã
+æå®ãããŠã©ã¬ããã«ãã¯ãŒãã³ã远å ããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+ãŠã©ã¬ããIDã§ãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`coupon_id`**
+
+
+ã¯ãŒãã³IDã§ãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`is_received`**
+
+
+æå®ããã¯ãŒãã³ãéå»ã«ãŠã©ã¬ãããååŸãããã瀺ãããŒãªã¢ã³å€ã§ããããã©ã«ãå€ã¯çã§ãã
+
+```json
+{
+ "type": "boolean"
+}
+```
+
+**`code`**
+
+
+ã¯ãŒãã³ååŸã«å¿
èŠãªã³ãŒãã衚ãæååã§ãã
+
+```json
+{
+ "type": "string"
+}
+```
+
+
+
+æåãããšãã¯
+[CouponDetail](./responses.md#coupon-detail)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## GetPrivateMoneyCoupons: ãããŒã®ã¯ãŒãã³æ
å ±ãååŸ
+æå®ãããããŒã®å©çšå¯èœãªã¯ãŒãã³ã®äžèЧãè¿ããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`private_money_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`before`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`after`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`per_page`**
+
+
+
+```json
+{
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 100
+}
+```
+
+
+
+æåãããšãã¯
+[PaginatedPrivateMoneyCoupons](./responses.md#paginated-private-money-coupons)
+ãè¿ããŸã
+
+
+
+---
+
+
+
diff --git a/docs/ios-sdk/cpm.md b/docs/ios-sdk/cpm.md
new file mode 100644
index 0000000..4ff2716
--- /dev/null
+++ b/docs/ios-sdk/cpm.md
@@ -0,0 +1,150 @@
+# Cpm
+QRãCustomeråŽãæç€ºããæ¹åŒãŸãã¯æç€ºããCPMããŒã¯ã³ãã®ãã®ã衚ãããŒã¿ã§ãã
+CPMããŒã¯ã³ã¯äž»ã«QRã³ãŒããšããŠã¬ãžåŽã«æç€ºãããå©ç𿹿³ãäžè¬çã§ãã
+ãŸã顧客åŽãQRã³ãŒããæç€ºãããæ±ºæžæ¹åŒãMpmãšåŒã³ãŸãã
+
+
+
+## CreateAccountCpmToken: CPMããŒã¯ã³äœæ
+ãŠãŒã¶ã®ãŠã©ã¬ããID (account_id) ãæå®ããŠCPMããŒã¯ã³ãäœæããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`scopes`**
+
+
+
+```json
+{
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "payment",
+ "topup",
+ "external-transaction"
+ ]
+ }
+}
+```
+
+**`expires_in`**
+
+
+CPMããŒã¯ã³ã®æå¹æéã§ããåäœã¯ç§ã§ãããã©ã«ãã®å€ã¯300ç§(5å)ã§ãã
+æå€§å€ã¯2592000ç§(30æ¥)ã§ãããã»ãã¥ãªãã£ã®èгç¹ã§ã¯çãæéãæãŸãããšãããŠããŸãã
+
+```json
+{
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 2592000
+}
+```
+
+**`metadata`**
+
+
+CPMããŒã¯ã³ã«ã¡ã¿ããŒã¿ãèšå®ããŸãã
+ããã§æå®ããã¡ã¿ããŒã¿ã¯ååŒäœææã«åŒãç¶ããããã£ã³ããŒã³ã®çºç«æ¡ä»¶ãªã©ã«äœ¿çšãããŸãã
+
+```json
+{
+ "type": "string",
+ "format": "json"
+}
+```
+
+**`keep_alive`**
+
+
+éåžžãæ°ããCPMããŒã¯ã³ãçæããããšããããŸã§ã«äœãããCPMããŒã¯ã³ã¯ããšãæå¹æéå
ã§ãã£ãŠã倱å¹ããŸãã
+keep_aliveãã©ã°ã true ã«ãããšãåŸã®CPMããŒã¯ã³çææã«ã倱å¹ãããããªãCPMããŒã¯ã³ãäœãããšãã§ããŸãã
+ãã¹ãæãªã©ã«é·å¯¿åœã®CPMããŒã¯ã³ãäœãéã«ãåæã«æå®ããããšãå€ãã§ãã
+ããã©ã«ãã§ã¯ false ã«ãªããŸãã
+
+```json
+{
+ "type": "boolean"
+}
+```
+
+**`is_short_token`**
+
+
+ãã®ãã©ã¡ãŒã¿ã true ã«èšå®ãããŠãããšãã20æ¡ã«ççž®ãããCPMããŒã¯ã³ãçæãããŸãã
+éåžžã¯22æ¡ã§ãäžäœ8æ¡ãã©ã³ãã éšåã§ãããis_short_tokenã true ã«ãããšäžäœ6æ¡ãã©ã³ãã éšåã«ãªããŸãã
+ããã©ã«ãã§ã¯falseã§ã22æ¡ã®CPMããŒã¯ã³ãçæãããŸãã
+
+```json
+{
+ "type": "boolean"
+}
+```
+
+
+
+æåãããšãã¯
+[CpmToken](./responses.md#cpm-token)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## GetCpmToken: CPMããŒã¯ã³ã®æ
å ±ãååŸ
+CPMããŒã¯ã³ã®æ
å ±ãååŸããŸãã
+å
容ã«ã¯ãŠãŒã¶ã®å£åº§ãå©çšã¹ã³ãŒã(æ¯æãããã£ãŒãžã®äž¡æ¹ãŸãã¯ãããã)ãããŒã¯ã³ã®æå¹æéãååŒæ
å ± (ååŒãå®äºããŠããå Žå) ãå«ãŸããŸãã
+
+
+```swift
+
+```
+
+
+
+### Parameters
+**`cpm_token`**
+
+
+CPMããŒã¯ã³ãæå®ããŸãã
+
+```json
+{
+ "type": "string",
+ "minLength": 20,
+ "maxLength": 22
+}
+```
+
+
+
+æåãããšãã¯
+[CpmToken](./responses.md#cpm-token)
+ãè¿ããŸã
+
+
+
+---
+
+
+
diff --git a/docs/ios-sdk/credit_card.md b/docs/ios-sdk/credit_card.md
new file mode 100644
index 0000000..0644b57
--- /dev/null
+++ b/docs/ios-sdk/credit_card.md
@@ -0,0 +1,148 @@
+# Credit Card
+ãã£ãŒãžã®ããã«å©çšãããã¯ã¬ãžããã«ãŒãã衚ãããŒã¿ã§ãã
+ã«ãŒãçªå·ãªã©ã®ããŒã¿ã¯PokepayãµãŒãã§ã¯ç®¡ç察象å€(決æžGWåŽã§ä¿æ)ã§ãã
+å©çšã«ãŒããä¿åããŠããããšãå¯èœã§ãããä¿åæžã¿ã«ãŒããªã¹ããããšããååŸã§ããŸãã
+ãã£ãŒãžéé¡ã¯ãããŒèšå®ã®ç¯å²å
ã§ãŠãŒã¶ãä»»æã®éé¡ãæå®å¯èœã§ãã
+
+
+
+## GetCreditCards: Get user credit cards
+
+```swift
+
+```
+
+
+
+### Parameters
+**`user_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`before`**
+
+
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`after`**
+
+
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`per_page`**
+
+
+
+```json
+{
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 100
+}
+```
+
+**`organization_code`**
+
+
+
+```json
+{
+ "type": "string"
+}
+```
+
+
+
+æåãããšãã¯
+[PaginatedCreditCards](./responses.md#paginated-credit-cards)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## CreateCreditCard: Create user credit card
+
+```swift
+
+```
+
+
+
+### Parameters
+**`user_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`token`**
+
+
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`is_cardholder_name_specified`**
+
+
+
+```json
+{
+ "type": "boolean"
+}
+```
+
+**`organization_code`**
+
+
+
+```json
+{
+ "type": "string"
+}
+```
+
+
+
+æåãããšãã¯
+[CreditCard](./responses.md#credit-card)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+
+
+
diff --git a/docs/ios-sdk/individual_number_identification.md b/docs/ios-sdk/individual_number_identification.md
new file mode 100644
index 0000000..4f132af
--- /dev/null
+++ b/docs/ios-sdk/individual_number_identification.md
@@ -0,0 +1,141 @@
+# Individual Number Identification
+ãã€ãã³ããŒã衚ãããŒã¿ã§ãã
+ãã€ãã³ããŒã«ãŒãèªèšŒã®æ©èœãæäŸããŠããŸãã
+ã«ãŒãæ
å ±ã¯ãµãŒãã§ã¯ä¿æãããã«ãŒãèªã¿åã(æœåº)ãèªã¿åãæ
å ±ã®æ£åœæ§ç¢ºèªãå€éšãµãŒãã¹ã§å®æœããŠããŸãã
+
+
+
+## IdentifyIndividual: ãã€ãã³ããŒç¢ºèªã»ãã·ã§ã³ãäœæãã
+æå®ãããŠã©ã¬ããã®ãã€ãã³ããŒ(å人çªå·)ã確èªããããã®ã»ãã·ã§ã³ãäœæããŸãã
+
+ãã®APIã®ãã©ã¡ãŒã¿ã¯å
šãŠãã€ãã³ããŒã«ãŒãããAndroid/iOSã®eKYCã©ã€ãã©ãªã§ååŸã§ãããã®ã§ãã
+æ°åãæ§å¥ãäœæãçå¹Žææ¥ããã€ãã³ããŒã«ãŒãããå€éšéä¿¡ãªãã§ååŸã§ããŸãã
+APIã®æ°åãæ§å¥ãäœæãçå¹Žææ¥ã¯ãªãã·ã§ãã«ã§ãããããããéãããšã«ããå®éã«ç»é²ãããŠãããã®ãšäžèŽããŠãããã©ãããããããbooleanã§è¿ãããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+ãŠã©ã¬ããIDã§ãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`signature`**
+
+
+ãã€ãã³ããŒã«ãŒãã®é»åçœ²åæ©èœã«ããäœæãããé»å眲åã§ãã
+
+Base64笊å·åãããã®ãæå®ããŠãã ããã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`signing_cert`**
+
+
+é»å眲åã«çšãã眲åçšé»åèšŒææžã§ãã
+
+Base64笊å·åãããã®ãæå®ããŠãã ããã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`expected_hash`**
+
+
+æ¬æããç®åºããã¡ãã»ãŒãžãã€ãžã§ã¹ãã§ãã
+
+ããã·ã¥ã¢ã«ãŽãªãºã ã¯SHA256ã§ãã
+Base64笊å·åãããã®ãæå®ããŠãã ããã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`name`**
+
+
+æ°åã§ãã
+
+ã¹ããŒã¹ã¯ç¡èŠãããŸããå
¬çå人èªèšŒã§è¡šç€ºã§ããªããã®ã¯ãæ£åŒãªæ°åã§ã¯ãªãä»£æ¿æåãšã®æ¯èŒã«ãªããŸãã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`gender`**
+
+
+æ§å¥ã§ãã
+
+male, female, otherã®ãããããéžæã§ããŸãã
+
+```json
+{
+ "type": "string",
+ "enum": [
+ "male",
+ "female",
+ "other"
+ ]
+}
+```
+
+**`address`**
+
+
+äœæã§ãã
+
+ã¹ããŒã¹ã¯ç¡èŠãããŸããå
¬çå人èªèšŒã§è¡šç€ºã§ããªããã®ã¯ãæ£åŒãªäœæã§ã¯ãªãä»£æ¿æåãšã®æ¯èŒã«ãªããŸãã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`date_of_birth`**
+
+
+çå¹Žææ¥ã§ãã
+
+```json
+{
+ "type": "string",
+ "pattern": "^\\w{4}-?\\w{2}-?\\w{2}$"
+}
+```
+
+
+
+æåãããšãã¯
+[IdentificationResult](./responses.md#identification-result)
+ãè¿ããŸã
+
+
+
+---
+
+
+
diff --git a/docs/ios-sdk/internal.md b/docs/ios-sdk/internal.md
new file mode 100644
index 0000000..42a082f
--- /dev/null
+++ b/docs/ios-sdk/internal.md
@@ -0,0 +1,36 @@
+# Internal
+ãã±ãããã§ã³ãžå
éšçš
+
+
+
+## GetUserAttributeSchema: ãŠãŒã¶ã¢ã³ã±ãŒãé
ç®
+ãããŒã«èšå®ããããŠãŒã¶ã¢ã³ã±ãŒãã®èãåãé
ç®ãJSON圢åŒã§ååŸããŸãã
+
+
+```swift
+
+```
+
+
+
+### Parameters
+**`private_money_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+
+
+
+---
+
+
+
diff --git a/docs/ios-sdk/merchants.md b/docs/ios-sdk/merchants.md
new file mode 100644
index 0000000..1dd33c5
--- /dev/null
+++ b/docs/ios-sdk/merchants.md
@@ -0,0 +1,39 @@
+# Merchants
+åºèãŠãŒã¶ã衚ãããŒã¿ã§ãã
+çºè¡äœçŽå¶åºãšå ççµç¹çŽå¶åº(å çåº)ã®2çš®é¡ãååšããŸãã
+åºèæ¯ã«ææãããŠã©ã¬ããã«ãã£ãŠååŒå¯èœãªãããŒã決å®ãããŸãã
+
+
+
+## ListMerchantTransactions: Show the merchant's transaction
+
+```swift
+
+```
+
+
+
+### Parameters
+**`transaction_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+æåãããšãã¯
+[UserTransactionWithCustomerBalance](./responses.md#user-transaction-with-customer-balance)
+ãè¿ããŸã
+
+
+
+---
+
+
+
diff --git a/docs/ios-sdk/open_exchange_rates.md b/docs/ios-sdk/open_exchange_rates.md
new file mode 100644
index 0000000..f1dc9f3
--- /dev/null
+++ b/docs/ios-sdk/open_exchange_rates.md
@@ -0,0 +1,5 @@
+# Open Exchange Rates
+å€åœçºæ¿ã¬ãŒããååŸå¯èœãªwebãµãŒãã¹ã§ãã
+
+
+
diff --git a/docs/ios-sdk/payspot.md b/docs/ios-sdk/payspot.md
new file mode 100644
index 0000000..dbf51dd
--- /dev/null
+++ b/docs/ios-sdk/payspot.md
@@ -0,0 +1,8 @@
+# Payspot
+ãã±ãããã§ã³ãžç€Ÿã§éçºã»è£œé ããŠãããã£ãŒãžæ©ãPayspotãã衚ãããŒã¿ã§ãã
+çŽå¹£ã®ã¿å¯Ÿå¿ãããã£ãŒãžæ©ã§ãããçŸéãæå
¥ãããšãããŒãã£ãŒãžçšã®QRãç»é¢äžã«è¡šç€ºãããŸãã
+ãŸãçŽå¹£ã¯æ¥æ¬åãå€è²šã®äž¡æ¹ã«å¯Ÿå¿ããŠãããŸãã
+ïŒç«¯æ«ïŒãããŒã®ã¿èšå®å¯èœã§ãã
+
+
+
diff --git a/docs/ios-sdk/private_money.md b/docs/ios-sdk/private_money.md
new file mode 100644
index 0000000..88d6856
--- /dev/null
+++ b/docs/ios-sdk/private_money.md
@@ -0,0 +1,279 @@
+# Private Money
+Pokepayäžã§çºè¡ããé»åãããŒã衚ãããŒã¿ã§ãã
+é»åãããŒã¯ïŒã€ã®çºè¡äœ(Organization)ã«ãã£ãŠçºè¡ãããŸãã
+é»åãããŒã¯CustomerãMerchantãææãããŠã©ã¬ããéãééãããŸãã
+é»åãããŒæ®é«ã¯ãŠãŒã¶ãæåã§è³Œå
¥ãããããŒãšç¡åã§ä»äžããããã€ã³ãã®2çš®é¡ã®ããªã¥ãŒã§æ§æããã
+ããããæå¹æé決å®ããžãã¯ã¯é»åãããŒã®èšå®ã«äŸåããŸãã
+
+
+
+## GetPrivateMoney: ãããŒæ
å ±ãååŸ
+ãããŒã®è©³çްæ
å ±ãè¿ããŸãããããŒã«å¯ŸããŠèš±å¯ãããŠãããã£ãŒãžææ®µãªã©ãå«ãŸããŸãã
+
+
+```swift
+
+```
+
+
+
+### Parameters
+**`private_money_id`**
+
+
+ãããŒID
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+æåãããšãã¯
+[PrivateMoneyDetail](./responses.md#private-money-detail)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## GetPrivateMoneyTerms: Get the private money terms
+
+```swift
+
+```
+
+
+
+### Parameters
+**`private_money_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+
+
+
+---
+
+
+
+## GetPrivateMoneyPrivacyPolicy: Get the private money pricvacy-policy
+
+```swift
+
+```
+
+
+
+### Parameters
+**`private_money_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+
+
+
+---
+
+
+
+## GetPrivateMoneyPaymentAct: Get the private money payment-act
+
+```swift
+
+```
+
+
+
+### Parameters
+**`private_money_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+
+
+
+---
+
+
+
+## GetPrivateMoneyCommercialAct: Get the private money commercial-act
+
+```swift
+
+```
+
+
+
+### Parameters
+**`private_money_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+
+
+
+---
+
+
+
+## GetUserAttributeSchema: ãŠãŒã¶ã¢ã³ã±ãŒãé
ç®
+ãããŒã«èšå®ããããŠãŒã¶ã¢ã³ã±ãŒãã®èãåãé
ç®ãJSON圢åŒã§ååŸããŸãã
+
+
+```swift
+
+```
+
+
+
+### Parameters
+**`private_money_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+
+
+
+---
+
+
+
+## ListPrivateMoneys: ãããŒäžèЧãååŸãã
+ãŠãŒã¶ãå©çšå¯èœãªãããŒã®äžèЧãååŸããŸãã
+
+OAuthèªèšŒãçµãŠååŸããã¢ã¯ã»ã¹ããŒã¯ã³ã®å Žåãèªå¯ããçµç¹ã«å±ãããããŒã®ã¿ååŸã§ããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`name`**
+
+
+æ€çŽ¢ãããããŒåã§ãã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`include_exclusive`**
+
+
+éšåäžèŽã§è¡šç€ºãããããŒã®æå®ã§ãã
+
+trueã®å ŽåãéšåäžèŽã§è¡šç€ºãããããŒãäžèЧã«å«ããŸãã
+ããã©ã«ãã¯falseã§ãã
+OAuthã«ããååŸããã¢ã¯ã»ã¹ããŒã¯ã³ã®å Žåããã®æ©èœã¯ç¡å¹ã§ãã
+
+```json
+{
+ "type": "boolean"
+}
+```
+
+**`before`**
+
+
+åã®ããŒãžãžã®ãããŒIDã§ãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`after`**
+
+
+åŸã®ããŒãžãžã®ãããŒIDã§ãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`per_page`**
+
+
+1ããŒãžåã®ååŸãããããŒæ°ã§ããããã©ã«ãã¯30ã§ãã
+
+```json
+{
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 100
+}
+```
+
+
+
+æåãããšãã¯
+[PaginatedPrivateMoneys](./responses.md#paginated-private-moneys)
+ãè¿ããŸã
+
+
+
+---
+
+
+
diff --git a/docs/ios-sdk/responses.md b/docs/ios-sdk/responses.md
new file mode 100644
index 0000000..f723fdb
--- /dev/null
+++ b/docs/ios-sdk/responses.md
@@ -0,0 +1,427 @@
+# Responses
+
+## UserWithDetails
+* `id`:
+* `name`:
+* `is-merchant`:
+* `tel`:
+* `email`:
+
+
+## UserWithAuthFactors
+* `id`:
+* `name`:
+* `is-merchant`:
+* `tel`:
+* `email`:
+* `is-password-registered`:
+
+
+## AccountDetail
+* `id`:
+* `name`:
+* `balance`:
+* `money-balance`:
+* `point-balance`:
+* `is-suspended`:
+* `private_money`:
+* `nearest-expires-at`:
+
+`private_money`㯠[PrivateMoneyDetail](#private-money-detail) ãªããžã§ã¯ããè¿ããŸãã
+
+
+## AccountCampaignPointAmounts
+* `max-total-point-amount`:
+* `total-point-amount`:
+* `remain-point-amount`:
+
+
+## PaginatedPrivateMoneys
+* `per-page`:
+* `count`:
+* `next`:
+* `prev`:
+* `items`:
+
+`items`㯠[PrivateMoney](#private-money) ãªããžã§ã¯ãã®é
åãè¿ããŸãã
+
+
+## PrivateMoneyDetail
+
+
+## Terminal
+* `id`:
+* `name`:
+* `hardware-id`:
+* `push-service`:
+* `push-token`:
+* `user`:
+* `account`:
+
+`user`㯠[UserWithDetails](#user-with-details) ãªããžã§ã¯ããè¿ããŸãã
+
+
+## UserTransaction
+* `id`: ååŒID
+* `user`: ãŠãŒã¶
+* `balance`:
+* `amount`:
+* `money-amount`: ååŒãããŒé¡
+* `point-amount`: ååŒãã€ã³ãé¡
+* `account`: ãŠã©ã¬ãã
+* `description`: ååŒèª¬ææ
+* `done-at`: ååŒå®äºæå»
+* `type`: ååŒã¿ã€ã
+* `is-modified`: ååŒãã£ã³ã»ã«ã®æç¡
+
+`user`㯠[User](#user) ãªããžã§ã¯ããè¿ããŸãã
+
+`account`㯠[Account](#account) ãªããžã§ã¯ããè¿ããŸãã
+
+
+## UserTransactionWithCustomerBalance
+* `id`:
+* `user`: ãŠãŒã¶
+* `balance`:
+* `customer-balance`:
+* `amount`:
+* `money-amount`:
+* `point-amount`:
+* `account`: ãŠã©ã¬ãã
+* `description`:
+* `done-at`:
+* `type`:
+* `is-modified`:
+
+`user`㯠[User](#user) ãªããžã§ã¯ããè¿ããŸãã
+
+`account`㯠[Account](#account) ãªããžã§ã¯ããè¿ããŸãã
+
+
+## CreditCard
+* `card-number`:
+* `registered-at`:
+
+
+## PaginatedCreditCards
+* `per-page`:
+* `count`:
+* `next`:
+* `prev`:
+* `items`:
+
+`items`㯠[CreditCard](#credit-card) ãªããžã§ã¯ãã®é
åãè¿ããŸãã
+
+
+## UserBanks
+
+
+## Check
+* `id`:
+* `amount`:
+* `money-amount`:
+* `point-amount`:
+* `description`:
+* `user`: ãŠãŒã¶
+* `is-onetime`:
+* `is-disabled`:
+* `expires-at`:
+* `private_money`:
+* `token`:
+
+`user`㯠[User](#user) ãªããžã§ã¯ããè¿ããŸãã
+
+`private_money`㯠[PrivateMoney](#private-money) ãªããžã§ã¯ããè¿ããŸãã
+
+
+## Bill
+* `id`:
+* `amount`:
+* `description`:
+* `user`: ãŠãŒã¶
+* `is-onetime`:
+* `is-disabled`:
+* `private_money`:
+* `token`:
+* `max-amount`:
+* `min-amount`:
+
+`user`㯠[User](#user) ãªããžã§ã¯ããè¿ããŸãã
+
+`private_money`㯠[PrivateMoney](#private-money) ãªããžã§ã¯ããè¿ããŸãã
+
+
+## BillWithAdditionalPrivateMoneys
+* `id`:
+* `amount`:
+* `description`:
+* `user`: ãŠãŒã¶
+* `is-onetime`:
+* `is-disabled`:
+* `private_money`:
+* `token`:
+* `max-amount`:
+* `min-amount`:
+* `additional-private-moneys`:
+
+`user`㯠[User](#user) ãªããžã§ã¯ããè¿ããŸãã
+
+`private_money`㯠[PrivateMoney](#private-money) ãªããžã§ã¯ããè¿ããŸãã
+
+`additional-private-moneys`㯠[PrivateMoney](#private-money) ãªããžã§ã¯ãã®é
åãè¿ããŸãã
+
+
+## Cashtray
+* `id`:
+* `amount`:
+* `description`:
+* `user`: ãŠãŒã¶
+* `private_money`:
+* `expires-at`:
+* `canceled-at`:
+* `token`:
+
+`user`㯠[User](#user) ãªããžã§ã¯ããè¿ããŸãã
+
+`private_money`㯠[PrivateMoney](#private-money) ãªããžã§ã¯ããè¿ããŸãã
+
+
+## CashtrayAttempts
+* `rows`:
+
+`rows`㯠[CashtrayAttempt](#cashtray-attempt) ãªããžã§ã¯ãã®é
åãè¿ããŸãã
+
+
+## CashtrayWithAttemptAndTransaction
+
+
+## CpmToken
+* `cpm-token`: CPMããŒã¯ã³æåå
+* `account`: ãŠã©ã¬ãã
+* `transaction`:
+* `scopes`: ååŒã¹ã³ãŒã
+* `expires-at`: æå¹æé
+* `metadata`: ååŒã¡ã¿ããŒã¿
+
+`account`㯠[Account](#account) ãªããžã§ã¯ããè¿ããŸãã
+
+`transaction`㯠[UserTransaction](#user-transaction) ãªããžã§ã¯ããè¿ããŸãã
+
+
+## TerminalServerKey
+* `server-key`:
+
+
+## CouponDetail
+* `id`:
+* `name`:
+* `description`:
+* `discount-amount`:
+* `discount-percentage`:
+* `starts-at`:
+* `ends-at`:
+* `display-starts-at`:
+* `display-ends-at`:
+* `usage-limit`:
+* `min-amount`:
+* `is-shop-specified`:
+* `is-disabled`:
+* `is-hidden`:
+* `coupon-image`:
+* `received-at`:
+* `usage-count`:
+* `available-shops`:
+
+`available-shops`㯠[User](#user) ãªããžã§ã¯ãã®é
åãè¿ããŸãã
+
+
+## IdentificationResult
+* `is-valid`:
+* `identified-at`:
+* `match`:
+
+
+## PaginatedAccountBalances
+* `per-page`:
+* `count`:
+* `next`:
+* `prev`:
+* `items`:
+
+`items`㯠[AccountBalance](#account-balance) ãªããžã§ã¯ãã®é
åãè¿ããŸãã
+
+
+## PaginatedAccountCoupons
+* `per-page`:
+* `count`:
+* `next`:
+* `prev`:
+* `items`:
+
+`items`㯠[Coupon](#coupon) ãªããžã§ã¯ãã®é
åãè¿ããŸãã
+
+
+## PaginatedAccountTransactions
+* `per-page`:
+* `count`:
+* `next`:
+* `prev`:
+* `items`:
+
+`items`㯠[UserTransaction](#user-transaction) ãªããžã§ã¯ãã®é
åãè¿ããŸãã
+
+
+## PaginatedAccountTransfers
+* `per-page`:
+* `count`:
+* `next`:
+* `prev`:
+* `items`:
+
+`items`㯠[UserTransfer](#user-transfer) ãªããžã§ã¯ãã®é
åãè¿ããŸãã
+
+
+## PaginatedPrivateMoneyCoupons
+* `per-page`:
+* `count`:
+* `next`:
+* `prev`:
+* `items`:
+
+`items`㯠[Coupon](#coupon) ãªããžã§ã¯ãã®é
åãè¿ããŸãã
+
+
+## PaginatedUserAccounts
+* `per-page`:
+* `count`:
+* `next`:
+* `prev`:
+* `items`:
+
+`items`㯠[Account](#account) ãªããžã§ã¯ãã®é
åãè¿ããŸãã
+
+
+## PaginatedUserTransactions
+* `per-page`:
+* `count`:
+* `next`:
+* `prev`:
+* `items`:
+
+`items`㯠[UserTransaction](#user-transaction) ãªããžã§ã¯ãã®é
åãè¿ããŸãã
+
+
+## PrivateMoney
+* `id`:
+* `name`:
+* `type`:
+* `unit`:
+* `description`:
+* `oneline-message`:
+* `display-money-and-point`:
+* `account-image`:
+* `images`:
+* `organization`:
+* `max-balance`:
+* `transfer-limit`:
+* `expiration-type`:
+* `is-exclusive`:
+* `terms-url`:
+* `privacy-policy-url`:
+* `payment-act-url`:
+* `commercial-act-url`:
+
+`images`㯠[PrivateMoneyImages](#private-money-images) ãªããžã§ã¯ããè¿ããŸãã
+
+`organization`㯠[Organization](#organization) ãªããžã§ã¯ããè¿ããŸãã
+
+
+## User
+* `id`: ãŠãŒã¶ID
+* `name`: ãŠãŒã¶å(ããã¯ããŒã )
+* `is-merchant`: ãŠãŒã¶ãåºèãŠãŒã¶ãã©ãã
+
+
+## Account
+* `id`: ãŠã©ã¬ããID
+* `name`: ãŠã©ã¬ããå
+* `balance`: ãŠã©ã¬ããæ®é«(ãããŒé¡ + ãã€ã³ãé¡)
+* `money-balance`: ãŠã©ã¬ããæ®é«(ãããŒé¡)
+* `point-balance`: ãŠã©ã¬ããæ®é«(ãã€ã³ãé¡)
+* `point-debt`: ãã€ã³ãè² åµ
+* `is-suspended`: ãŠã©ã¬ãããåçµç¶æ
ãã©ãã
+* `private_money`:
+
+`private_money`㯠[PrivateMoney](#private-money) ãªããžã§ã¯ããè¿ããŸãã
+
+
+## CashtrayAttempt
+* `user`: ãŠãŒã¶
+* `account`: ãŠã©ã¬ãã
+* `status-code`:
+* `error-type`:
+* `error-message`:
+* `created-at`:
+* `strategy`:
+
+`user`㯠[User](#user) ãªããžã§ã¯ããè¿ããŸãã
+
+`account`㯠[Account](#account) ãªããžã§ã¯ããè¿ããŸãã
+
+`strategy`㯠[TransactionStrategy](#transaction-strategy) ãªããžã§ã¯ããè¿ããŸãã
+
+
+## AccountBalance
+* `expires-at`:
+* `money-amount`:
+* `point-amount`:
+
+
+## Coupon
+* `id`:
+* `name`:
+* `description`:
+* `discount-amount`:
+* `discount-percentage`:
+* `starts-at`:
+* `ends-at`:
+* `display-starts-at`:
+* `display-ends-at`:
+* `usage-limit`:
+* `min-amount`:
+* `is-shop-specified`:
+* `is-disabled`:
+* `is-hidden`:
+* `coupon-image`:
+
+
+## UserTransfer
+* `id`:
+* `transaction-id`:
+* `user`: ãŠãŒã¶
+* `balance`:
+* `amount`:
+* `money-amount`:
+* `point-amount`:
+* `account`: ãŠã©ã¬ãã
+* `description`:
+* `done-at`:
+* `type`:
+
+`user`㯠[User](#user) ãªããžã§ã¯ããè¿ããŸãã
+
+`account`㯠[Account](#account) ãªããžã§ã¯ããè¿ããŸãã
+
+
+## PrivateMoneyImages
+* `card`:
+* `300x300`:
+* `600x600`:
+
+
+## Organization
+* `code`:
+* `name`:
+
+
+## TransactionStrategy
diff --git a/docs/ios-sdk/sevenbankatm.md b/docs/ios-sdk/sevenbankatm.md
new file mode 100644
index 0000000..98c87c7
--- /dev/null
+++ b/docs/ios-sdk/sevenbankatm.md
@@ -0,0 +1,7 @@
+# Sevenbankatm
+ã»ãã³éè¡ATMã衚ãããŒã¿ã§ãã
+ã»ãã³éè¡ATMçµç±ã§ã®ãããŒãã£ãŒãžããããšãå¯èœã§ãã
+ãããŒåäœã§ã®ç³è«ãèšå®ãå¿
èŠãšãªããŸãã
+
+
+
diff --git a/docs/ios-sdk/terminal.md b/docs/ios-sdk/terminal.md
new file mode 100644
index 0000000..0a9a96b
--- /dev/null
+++ b/docs/ios-sdk/terminal.md
@@ -0,0 +1,138 @@
+# Terminal
+端æ«ã衚ãããŒã¿ã§ãã
+端æ«ã®åäœã¯ã¯ã©ã€ã¢ã³ãã¢ããªã®å®è£
ã«ãã£ãŠæ±ºå®ãããŸãã
+èªèšŒæã®HardwareIDã®åäœã§ç«¯æ«èå¥ããããµãŒããµã€ãã«ååšããªãHardwareIDãéãããéã«ã¯æ°èŠäœæãããŸãã
+HardwareIDã¯ã¯ã©ã€ã¢ã³ãã¢ããªåŽã§æ¡çªãããããšãæ³å®ããŠããŸãã
+
+
+
+## GetTerminal: 端æ«ã®æ
å ±ãååŸ
+ã¢ã¯ã»ã¹ããŠãã端æ«ã®æ
å ±ãè¿ããŸãã
+
+```swift
+
+```
+
+
+
+
+
+
+æåãããšãã¯
+[Terminal](./responses.md#terminal)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## UpdateTerminal: 端æ«ã®æ
å ±ã倿Ž
+ã¢ã¯ã»ã¹ããŠãã端æ«ã®æ
å ±ã倿ŽããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`name`**
+
+
+èå¥ã®ããã«ç«¯æ«ã«ååãã€ããŸãã
+
+```json
+{
+ "type": "string",
+ "maxLength": 256
+}
+```
+
+**`account_id`**
+
+
+ååŒã®ãšãã«ããã©ã«ãã§å©çšããå£åº§ãèšå®ããŸãã
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`push_service`**
+
+
+ããã·ã¥éç¥ã«äœ¿ããµãŒãã¹ãéžæããŸãã
+- apns: APNsã¯AppleãæäŸããŠããPushéç¥åºç€ã§ããiOS端æ«ã®ãšãã«éžæããŸãã
+- fcm: FCM(Firebase Cloud Messaging)ã¯GoogleãæäŸããã¡ãã»ãŒãžã³ã°ãã©ãããã©ãŒã ã§ããAndroid端æ«ã®ãšãã«éžæããŸãã
+
+```json
+{
+ "type": "string",
+ "enum": [
+ "apns",
+ "fcm"
+ ]
+}
+```
+
+**`push_token`**
+
+
+ããã·ã¥éç¥ã«äœ¿ãããã€ã¹ããŒã¯ã³ãèšå®ããŸãã
+
+```json
+{
+ "type": "string",
+ "maxLength": 256
+}
+```
+
+
+
+æåãããšãã¯
+[Terminal](./responses.md#terminal)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## AddTerminalPublicKey: 端æ«ã«æ°ããªå
¬ééµã远å
+ã¢ã¯ã»ã¹ããŠãã端æ«ã«æ°ãã«å
¬ééµã远å ããŸãããã®éµã¯ãããã¯ãŒã¯ãä»ããªã端æ«éã®çŽæ¥ååŒã«å©çšããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`key`**
+
+
+æ°ããªå
¬ééµã®æåå衚çŸã§ãã
+
+```json
+{
+ "type": "string"
+}
+```
+
+
+
+æåãããšãã¯
+[TerminalServerKey](./responses.md#terminal-server-key)
+ãè¿ããŸã
+
+
+
+---
+
+
+
diff --git a/docs/ios-sdk/transaction.md b/docs/ios-sdk/transaction.md
new file mode 100644
index 0000000..c192052
--- /dev/null
+++ b/docs/ios-sdk/transaction.md
@@ -0,0 +1,494 @@
+# Transaction
+ååŒã衚ãããŒã¿ã§ãã
+åäžãããŒã®ãŠã©ã¬ããéã®ééãèšé²ãããã£ã³ã»ã«ãªã©ã§ç¶æ
ãæŽæ°ãããããšããããŸãã
+ååŒçš®é¡ãšããŠä»¥äžãååšããŸãã
+topup: ãã£ãŒãžãMerchant => Customeréé
+payment: æ¯æããCustomer => Merchantéé
+transfer: å人éè²æž¡ãCustomer => Customeréé
+exchange: ãããŒé亀æãïŒãŠãŒã¶ã®ãŠã©ã¬ããéã®ééïŒäº€æïŒã
+expire: éäŒæå€±å¹ãéäŒæã®ææ»ã䌎ããªãæ®é«å€±å¹å±¥æŽã
+cashback: éäŒæææ»ãéäŒæã®ææ»éé¡å±¥æŽã
+
+
+
+## GetTransaction: ååŒæ
å ±ååŸ
+ååŒID(transaaction_id)ããååŒæ
å ±ãååŸããŸãã
+
+
+```swift
+
+```
+
+
+
+### Parameters
+**`transaction_id`**
+
+
+ãã±ãã€ã®ååŒIDã§ãã
+
+UUIDã®åœ¢åŒã§ããå¿
èŠããããŸã(36æå)
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+æåãããšãã¯
+[UserTransaction](./responses.md#user-transaction)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## RefundTransaction: ååŒãã£ã³ã»ã«
+ååŒIDããååŒããã£ã³ã»ã«ããŸãã
+ãã®APIã¯åºèãŠãŒã¶ããã®ã¿å©çšå¯èœã§ãã
+éšåãã£ã³ã»ã«ã¯ã§ããŸãããå
šé¡æãæ»ãã«ã®ã¿å¯Ÿå¿ããŠããŸãã
+
+
+```swift
+
+```
+
+
+
+### Parameters
+**`transaction_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`amount`**
+
+
+
+```json
+{
+ "type": "number",
+ "minimum": 1
+}
+```
+
+
+
+æåãããšãã¯
+[UserTransaction](./responses.md#user-transaction)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## ListBillTransactions: Billã«ããååŒäžèЧãååŸãã
+ã¯ã³ã¿ã€ã ã§ãªãæ¯æãQRã³ãŒã(Bill)ã®å Žåãè€æ°ã®æ¯æãååŒãçºçãåŸãŸãã
+ãã®APIã§ã¯ãBillã®IDãããã®Billããçºçããæ¯æãååŒã®ãªã¹ããååŸããŸãã
+
+
+```swift
+
+```
+
+
+
+### Parameters
+**`bill_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`before`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`after`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`per_page`**
+
+
+
+```json
+{
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 100
+}
+```
+
+
+
+
+
+
+---
+
+
+
+## GetBillLastTransaction: Get the last transaction of bill
+
+```swift
+
+```
+
+
+
+### Parameters
+**`bill_id`**
+
+
+æ¯æãQRã³ãŒãID
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+æåãããšãã¯
+[UserTransaction](./responses.md#user-transaction)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## GetUserTransactions: ååŒæ
å ±ã®ååŸ
+ãŠãŒã¶ã®ååŒäžèЧãååŸããŸã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`user_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`before`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`after`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`per_page`**
+
+
+
+```json
+{
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 100
+}
+```
+
+
+
+æåãããšãã¯
+[PaginatedUserTransactions](./responses.md#paginated-user-transactions)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## GetAccountTransactions: ååŒå±¥æŽååŸ
+æå®ããIDã®ãŠã©ã¬ããã®ååŒå±¥æŽãååŸããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`before`**
+
+
+ããŒãžã³ã°ã®ããã®ãã©ã¡ãŒã¿ã§ãã
+æå®ããIDã®èŠçŽ ããåŸã®ååŒå±¥æŽãè¿ãããŸãã
+çŽåã®ããŒãžã®æåŸã®èŠçŽ ã®IDãæå®ããããšã§æ¬¡ã®ããŒãžãžé·ç§»ããããšãã§ããŸãã
+ããã§æå®ããIDã®èŠçŽ ããèªäœã¯çµæã«å«ãŸããªãããšã«æ³šæããŠãã ããã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`after`**
+
+
+ããŒãžã³ã°ã®ããã®ãã©ã¡ãŒã¿ã§ãã
+æå®ããIDã®èŠçŽ ããåã®ååŒå±¥æŽãè¿ãããŸãã
+çŽåã®ããŒãžã®æåã®èŠçŽ ã®IDãæå®ããããšã§åã®ããŒãžãžé·ç§»ããããšãã§ããŸãã
+ããã§æå®ããIDã®èŠçŽ ããèªäœã¯çµæã«å«ãŸããªãããšã«æ³šæããŠãã ããã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`per_page`**
+
+
+1ããŒãžãããã«è¡šç€ºããååŒå±¥æŽã®ä»¶æ°ã§ããããã©ã«ãå€ã¯30ä»¶ã§ãã
+
+```json
+{
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 100
+}
+```
+
+
+
+æåãããšãã¯
+[PaginatedAccountTransactions](./responses.md#paginated-account-transactions)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## SendToAccount: Send money to an account
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`receiver_terminal_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`sender_account_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`amount`**
+
+
+
+```json
+{
+ "type": "number",
+ "format": "decimal",
+ "minimum": 0
+}
+```
+
+**`description`**
+
+
+
+```json
+{
+ "type": "string",
+ "maxLength": 200
+}
+```
+
+
+
+æåãããšãã¯
+[UserTransaction](./responses.md#user-transaction)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## GetAccountTransfers: ååŒæçŽ°äžèЧ
+æå®ãããŠã©ã¬ããIDã®ååŒå±¥æŽãæçްã¬ãã«ã§ååŸããŸãã
+ååŒæçŽ°ã«ã¯è¿éããã£ã³ããŒã³ã«ãããã€ã³ãä»äžãªã©ãå«ãŸããŸãã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`account_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`before`**
+
+
+ããŒãžã³ã°ã®ããã®ãã©ã¡ãŒã¿ã§ãã
+æå®ããIDã®èŠçŽ ããåŸã®ååŒå±¥æŽãè¿ãããŸãã
+çŽåã®ããŒãžã®æåŸã®èŠçŽ ã®IDãæå®ããããšã§æ¬¡ã®ããŒãžãžé·ç§»ããããšãã§ããŸãã
+ããã§æå®ããIDã®èŠçŽ ããèªäœã¯çµæã«å«ãŸããªãããšã«æ³šæããŠãã ããã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`after`**
+
+
+ããŒãžã³ã°ã®ããã®ãã©ã¡ãŒã¿ã§ãã
+æå®ããIDã®èŠçŽ ããåã®ååŒå±¥æŽãè¿ãããŸãã
+çŽåã®ããŒãžã®æåã®èŠçŽ ã®IDãæå®ããããšã§åã®ããŒãžãžé·ç§»ããããšãã§ããŸãã
+ããã§æå®ããIDã®èŠçŽ ããèªäœã¯çµæã«å«ãŸããªãããšã«æ³šæããŠãã ããã
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`per_page`**
+
+
+1ããŒãžãããã«è¡šç€ºããååŒå±¥æŽã®ä»¶æ°ã§ããããã©ã«ãå€ã¯30ä»¶ã§ãã
+
+```json
+{
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 100
+}
+```
+
+
+
+æåãããšãã¯
+[PaginatedAccountTransfers](./responses.md#paginated-account-transfers)
+ãè¿ããŸã
+
+
+
+---
+
+
+
diff --git a/docs/ios-sdk/user.md b/docs/ios-sdk/user.md
new file mode 100644
index 0000000..4906487
--- /dev/null
+++ b/docs/ios-sdk/user.md
@@ -0,0 +1,275 @@
+# User
+ãŠãŒã¶ã衚ãããŒã¿ã§ãã
+ãšã³ããŠãŒã¶(Customer)ãšåºèãŠãŒã¶(Merchant)ã®2çš®é¡ãååšããŸãã
+ãšã³ããŠãŒã¶ã¯èªèšŒã®äž»äœã§ããããããŒæ¯ã«ãŠã©ã¬ãããæã¡ãŸãã
+åºèãŠãŒã¶ã¯çµç¹ã«æå±ããåãããããŒæ¯ã«ãŠã©ã¬ãããæã¡ãŸãã
+
+
+
+## GetUser: Show the user information
+
+```swift
+
+```
+
+
+
+### Parameters
+**`user_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+æåãããšãã¯
+[UserWithDetails](./responses.md#user-with-details)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## UpdateUser: ãŠãŒã¶æ
å ±ã®æŽæ°
+ãŠãŒã¶æ
å ±ãæŽæ°ããŸã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`user_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`name`**
+
+
+ãŠãŒã¶ã®ããã¯ããŒã ãæå®ããŸã
+
+```json
+{
+ "type": "string",
+ "maxLength": 256
+}
+```
+
+
+
+æåãããšãã¯
+[UserWithDetails](./responses.md#user-with-details)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## GetUserWithAuthFactors: ãŠãŒã¶ã®èªèšŒæ
å ±ã®ååŸ
+ãŠãŒã¶ã®èªèšŒæ
å ±ãååŸããŸã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`user_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+æåãããšãã¯
+[UserWithAuthFactors](./responses.md#user-with-auth-factors)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## GetUserTransactions: ååŒæ
å ±ã®ååŸ
+ãŠãŒã¶ã®ååŒäžèЧãååŸããŸã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`user_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`before`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`after`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`per_page`**
+
+
+
+```json
+{
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 100
+}
+```
+
+
+
+æåãããšãã¯
+[PaginatedUserTransactions](./responses.md#paginated-user-transactions)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## GetUserAccounts: ãŠãŒã¶ã®ã¢ã«ãŠã³ãäžèЧååŸ
+ãŠãŒã¶ã®ã¢ã«ãŠã³ãäžèЧãååŸããŸã
+
+```swift
+
+```
+
+
+
+### Parameters
+**`user_id`**
+
+
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+**`before`**
+
+
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`after`**
+
+
+
+```json
+{
+ "type": "string"
+}
+```
+
+**`per_page`**
+
+
+
+```json
+{
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 100
+}
+```
+
+
+
+æåãããšãã¯
+[PaginatedUserAccounts](./responses.md#paginated-user-accounts)
+ãè¿ããŸã
+
+
+
+---
+
+
+
+## GetUserSettingUrl: äžæçãªãã«ã¢ã¯ã»ã¹ãèš±å¯ããèªèšŒã®ããã®URLãååŸ
+OAuthã䜿ã£ãŠäžæçãªãã«ã¢ã¯ã»ã¹ãèš±å¯ããããã®èªèšŒããŒãžURLãååŸããŸãã
+
+éåžžã®OAuthèªèšŒã§ã¯ãç¹å®ã®çºè¡äœã®ã¹ã³ãŒãã§ã®æäœãèš±å¯ãããŠããŸãã
+äžæ¹ã§ããã°ã€ã³æã®é»è©±çªå·ãEmailããã¹ã¯ãŒãã®å€æŽã¯ãã®ãŠãŒã¶ã®ãã±ãã€ãã©ãããã©ãŒã äžã®å
šãŠã®ãããŒã«åœ±é¿ããããããã±ãã€ãæäŸããWeb UIäžã§ã®åèªèšŒãšèªèšŒèŠçŽ ã®å€æŽæäœãå¿
èŠã«ãªããŸãã
+ãã®APIã§ã¯ãã±ãã€ãã©ãããã©ãŒã ã®èªèšŒæ
å ±å€æŽããŒãžãžã®ã¯ã³ã¿ã€ã URLãè¿ããŸãã
+
+```swift
+
+```
+
+
+
+
+
+
+
+
+
+---
+
+
+
diff --git a/docs/ios-sdk/voucher.md b/docs/ios-sdk/voucher.md
new file mode 100644
index 0000000..cf7f44c
--- /dev/null
+++ b/docs/ios-sdk/voucher.md
@@ -0,0 +1,7 @@
+# Voucher
+å€éšé»åãããŒãšåŒãæãå¯èœãªåªäœã衚ãããŒã¿ã§ãã
+Pokepayäžã®é»åãããŒããå€éšé»åãããŒã«äº€æããããšãå¯èœã§ãã
+亀æå¯èœãšããã«ã¯å€éšé»åãããŒçºè¡äœãšã®å¥çŽãå¿
èŠã§ãã
+
+
+