Adds support for return shipping methods and changes returns to have a request/receive flow. Store operators should now first request a return, noting the line items that will be returned. When the inventory is received the return will be registered triggering the refund. Return shipping methods can now be created for all regions.
17 lines
459 B
JavaScript
17 lines
459 B
JavaScript
import mongoose from "mongoose"
|
|
import { BaseModel } from "medusa-interfaces"
|
|
|
|
class DocumentModel extends BaseModel {
|
|
static modelName = "Document"
|
|
|
|
static schema = {
|
|
base_64: { type: String, required: true },
|
|
name: { type: String, required: true },
|
|
type: { type: String, required: true },
|
|
created: { type: String, default: Date.now },
|
|
metadata: { type: mongoose.Schema.Types.Mixed, default: {} },
|
|
}
|
|
}
|
|
|
|
export default DocumentModel
|