feat: return shipping and flow (#125)

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.
This commit is contained in:
Sebastian Rindom
2020-10-14 17:58:23 +02:00
committed by GitHub
parent 128351a8f0
commit c1e821d9d4
31 changed files with 1745 additions and 208 deletions
+16
View File
@@ -0,0 +1,16 @@
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