Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Sources/FunicoERP/Backend/Protocols/OrderDemandModel.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// OrderDemandModel.swift
// funico-core
//
// Created by Damian Van de Kauter on 10/06/2026.
//

import Foundation

public protocol OrderDemandModel: OrderModel, Articlable {

var quantity: Demand { get set }
var remaining: Demand { get }

var shippingDate: Date { get }
var createdDate: Date { get }

var countryCode: String? { get }
}
15 changes: 15 additions & 0 deletions Sources/FunicoERP/Backend/Protocols/OrderModel.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// OrderModel.swift
// funico-core
//
// Created by Damian Van de Kauter on 10/06/2026.
//

import Foundation

public protocol OrderModel: Codable, Identifiable {

var quantity: Float { get set }

var createdDate: Date { get }
}
15 changes: 15 additions & 0 deletions Sources/FunicoERP/Backend/Protocols/OrderSupplyModel.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// OrderSupplyModel.swift
// funico-core
//
// Created by Damian Van de Kauter on 10/06/2026.
//

import Foundation

public protocol OrderSupplyModel: OrderModel, Articlable {

var quantity: Supply { get set }

var createdDate: Date { get }
}
11 changes: 11 additions & 0 deletions Sources/FunicoERP/Backend/Types/Supply.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//
// Supply.swift
// funico-core
//
// Created by Damian Van de Kauter on 10/06/2026.
//

extension OrderSupplyModel {

public typealias Supply = Float
}
Loading