mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
12 lines
271 B
Ruby
12 lines
271 B
Ruby
# frozen_string_literal: true
|
|
|
|
class OrderBuilder < DfcBuilder
|
|
def self.new_order(ofn_order, id = nil)
|
|
DataFoodConsortium::Connector::Order.new(
|
|
id,
|
|
client: urls.enterprise_url(ofn_order.distributor_id),
|
|
orderStatus: "dfc-v:Held",
|
|
)
|
|
end
|
|
end
|