캔 내역, 캔 충전 페이지 추가

This commit is contained in:
Yu Sung
2023-08-11 03:57:39 +09:00
parent c91301e658
commit cb644f745e
23 changed files with 2013 additions and 4 deletions

View 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"
}
}