30 lines
539 B
Swift
30 lines
539 B
Swift
|
//
|
||
|
// CustomerData.swift
|
||
|
//
|
||
|
//
|
||
|
// Created by Antonov Ilia on 12.10.2020.
|
||
|
//
|
||
|
|
||
|
import Foundation
|
||
|
|
||
|
/// A costumer data to present in PaymentData
|
||
|
public struct CustomerData: Codable {
|
||
|
|
||
|
/// Unique costumer ID
|
||
|
let account: String
|
||
|
|
||
|
let comment: String?
|
||
|
|
||
|
let email: String?
|
||
|
|
||
|
let phone: String?
|
||
|
|
||
|
enum CodingKeys: String, CodingKey {
|
||
|
case account = "customerAccount"
|
||
|
case comment = "customerComment"
|
||
|
case email = "customerEmail"
|
||
|
case phone = "customerPhone"
|
||
|
}
|
||
|
|
||
|
}
|