Model fulfillmenttasks
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| admin | x | x | x | x |
| api | x | x | x | x |
| all | | | | |
Fields
| Name | Type | Link | Maps To | Default | Indexed? | Unique? | Required? |
|---|
| __v | Number | | | | | | |
| _deleted | Boolean | | | false | x | | |
| _id | ObjectID | | | [Function] | | | |
| _owner_id | ObjectID | User | _owner | | x | | |
| _updated_by_id | ObjectID | User | _updated_by | | x | | |
| action | String | | | | x | | |
| attempt_count | Number | | | 0 | | | |
| createdAt | Date | | | | | | |
| created_at | Date | | | [Function] | x | | |
| invoice_id | ObjectID | Invoice | | | x | | x |
| invoice_logged | Boolean | | | false | | | |
| last_error | String | | | | | | |
| last_error_at | Date | | | | | | |
| line_key | String | | | | x | | x |
| partner_reference | String | | | | x | | |
| result | Mixed | | | | | | |
| status | String | | | pending | x | | |
| updatedAt | Date | | | | | | |
| updated_at | Date | | | [Function] | x | | |
Field Details
__v
{
"path": "__v",
"instance": "Number",
"options": {},
"validators": []
}_deleted
{
"path": "_deleted",
"instance": "Boolean",
"options": {
"default": false,
"index": true
},
"validators": [],
"defaultValue": false
}_id
{
"path": "_id",
"instance": "ObjectID",
"options": {
"auto": true,
"type": "ObjectId"
},
"validators": [],
"defaultValue": "[Function]"
}_owner_id
{
"path": "_owner_id",
"instance": "ObjectID",
"options": {
"link": "User",
"map_to": "_owner",
"index": true
},
"validators": []
}_updated_by_id
{
"path": "_updated_by_id",
"instance": "ObjectID",
"options": {
"link": "User",
"map_to": "_updated_by",
"index": true
},
"validators": []
}action
{
"path": "action",
"instance": "String",
"options": {
"index": true
},
"validators": []
}attempt_count
{
"path": "attempt_count",
"instance": "Number",
"options": {
"default": 0
},
"validators": [],
"defaultValue": 0
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}created_at
{
"path": "created_at",
"instance": "Date",
"options": {
"index": true
},
"validators": [],
"defaultValue": "[Function]"
}invoice_id
{
"path": "invoice_id",
"instance": "ObjectID",
"options": {
"index": true,
"link": "Invoice",
"required": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
invoice_logged
{
"path": "invoice_logged",
"instance": "Boolean",
"options": {
"default": false
},
"validators": [],
"defaultValue": false
}last_error
{
"path": "last_error",
"instance": "String",
"options": {
"default": null
},
"validators": [],
"defaultValue": null
}last_error_at
{
"path": "last_error_at",
"instance": "Date",
"options": {
"default": null
},
"validators": [],
"defaultValue": null
}line_key
{
"path": "line_key",
"instance": "String",
"options": {
"index": true,
"required": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
partner_reference
{
"path": "partner_reference",
"instance": "String",
"options": {
"index": true
},
"validators": []
}result
{
"path": "result",
"instance": "Mixed",
"options": {},
"validators": []
}status
{
"path": "status",
"instance": "String",
"options": {
"index": true,
"enum": [
"pending",
"processing",
"done",
"error"
],
"default": "pending"
},
"validators": [
{
"message": "`{VALUE}` is not a valid enum value for path `{PATH}`."
}
],
"defaultValue": "pending"
}Validators
- : `{VALUE}` is not a valid enum value for path `{PATH}`.
updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}updated_at
{
"path": "updated_at",
"instance": "Date",
"options": {
"index": true
},
"validators": [],
"defaultValue": "[Function]"
}