캔 내역, 캔 충전 페이지 추가
This commit is contained in:
40
SodaLive/Sources/MyPage/Can/Charge/CanChargeRequest.swift
Normal file
40
SodaLive/Sources/MyPage/Can/Charge/CanChargeRequest.swift
Normal file
@@ -0,0 +1,40 @@
|
||||
//
|
||||
// CanChargeRequest.swift
|
||||
// SodaLive
|
||||
//
|
||||
// Created by klaus on 2023/08/11.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
struct CanChargeRequest: Encodable {
|
||||
let title: String
|
||||
let chargeCan: Int
|
||||
let paymentGateway: PaymentGateway
|
||||
let price: Double
|
||||
let locale: String
|
||||
}
|
||||
|
||||
struct PgChargeRequest: Encodable {
|
||||
let canId: Int
|
||||
let paymentGateway: PaymentGateway
|
||||
}
|
||||
|
||||
struct CanChargeResponse: Decodable {
|
||||
let chargeId: Int
|
||||
}
|
||||
|
||||
struct CanVerifyRequest: Encodable {
|
||||
let receiptString: String
|
||||
let chargeId: Int
|
||||
}
|
||||
|
||||
struct PgVerifyRequest: Encodable {
|
||||
let receiptId: String
|
||||
let orderId: String
|
||||
|
||||
enum CodingKeys : String, CodingKey {
|
||||
case receiptId = "receipt_id"
|
||||
case orderId = "order_id"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user