Packages

Oneflow SDK that manages authentication and includes several structs for order management

Current section

Files

Jump to
oneflow lib oneflow models order.ex
Raw

lib/oneflow/models/order.ex

defmodule Oneflow.Models.Order do
alias Oneflow.Models.{Destination, OrderData}
defstruct [
destination: %Destination{
name: ""
},
orderData: %OrderData{
sourceOrderId: "",
email: ""
}
]
def create_order(%Destination{} = destination) do
%__MODULE__{
destination: destination
}
end
end