Model fulfillmenttasks


Permissions

User GroupCreate?Read?Update?Delete?
adminxxxx
apixxxx
all

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?Required?
__vNumber
_deletedBooleanfalsex
_idObjectID[Function]
_owner_idObjectIDUser_ownerx
_updated_by_idObjectIDUser_updated_byx
actionStringx
attempt_countNumber0
createdAtDate
created_atDate[Function]x
invoice_idObjectIDInvoicexx
invoice_loggedBooleanfalse
last_errorString
last_error_atDate
line_keyStringxx
partner_referenceStringx
resultMixed
statusStringpendingx
updatedAtDate
updated_atDate[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

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

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

updatedAt

{
  "path": "updatedAt",
  "instance": "Date",
  "options": {},
  "validators": []
}

updated_at

{
  "path": "updated_at",
  "instance": "Date",
  "options": {
    "index": true
  },
  "validators": [],
  "defaultValue": "[Function]"
}