Model woocommerce_subscriptions


Permissions

User GroupCreate?Read?Update?Delete?
adminxxxx
ownerxxxx
userx
all

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?Required?
__vNumber
_deletedBooleanfalsex
_idObjectID[Function]
_owner_idObjectIDUser_ownerx
_updated_by_idObjectIDUser_updated_byx
billing_intervalNumber
billing_periodString
createdAtDate
created_viaString
customer_idNumberx
customer_ip_addressString
customer_noteString
customer_user_agentString
date_completedDate
date_createdDate
date_modifiedDatex
date_paidDate
device_typeString
idNumberx
meta_dataArray of Mixed[Function]
payment_methodString
productsArray of Mixed[Function]
referralString
referral_urlString
schedule_endDate
schedule_next_paymentDate
schedule_startDate
statusString
suspension_countNumber
totalNumber
updatedAtDate
utm_campaignString
utm_mediumString
utm_sourceString
utm_termString

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": []
}

billing_interval

{
  "path": "billing_interval",
  "instance": "Number",
  "options": {},
  "validators": []
}

billing_period

{
  "path": "billing_period",
  "instance": "String",
  "options": {},
  "validators": []
}

createdAt

{
  "path": "createdAt",
  "instance": "Date",
  "options": {
    "immutable": true
  },
  "validators": []
}

created_via

{
  "path": "created_via",
  "instance": "String",
  "options": {},
  "validators": []
}

customer_id

{
  "path": "customer_id",
  "instance": "Number",
  "options": {
    "index": true
  },
  "validators": []
}

customer_ip_address

{
  "path": "customer_ip_address",
  "instance": "String",
  "options": {},
  "validators": []
}

customer_note

{
  "path": "customer_note",
  "instance": "String",
  "options": {},
  "validators": []
}

customer_user_agent

{
  "path": "customer_user_agent",
  "instance": "String",
  "options": {},
  "validators": []
}

date_completed

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

date_created

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

date_modified

{
  "path": "date_modified",
  "instance": "Date",
  "options": {
    "index": true
  },
  "validators": []
}

date_paid

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

device_type

{
  "path": "device_type",
  "instance": "String",
  "options": {},
  "validators": []
}

id

{
  "path": "id",
  "instance": "Number",
  "options": {
    "index": true
  },
  "validators": []
}

meta_data

{
  "path": "meta_data",
  "instance": "Array",
  "options": {
    "type": [
      null
    ]
  },
  "validators": [],
  "defaultValue": "[Function]",
  "arrayType": "Mixed"
}

payment_method

{
  "path": "payment_method",
  "instance": "String",
  "options": {},
  "validators": []
}

products

{
  "path": "products",
  "instance": "Array",
  "options": {
    "type": [
      null
    ]
  },
  "validators": [],
  "defaultValue": "[Function]",
  "arrayType": "Mixed"
}

referral

{
  "path": "referral",
  "instance": "String",
  "options": {},
  "validators": []
}

referral_url

{
  "path": "referral_url",
  "instance": "String",
  "options": {},
  "validators": []
}

schedule_end

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

schedule_next_payment

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

schedule_start

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

status

{
  "path": "status",
  "instance": "String",
  "options": {},
  "validators": []
}

suspension_count

{
  "path": "suspension_count",
  "instance": "Number",
  "options": {},
  "validators": []
}

total

{
  "path": "total",
  "instance": "Number",
  "options": {},
  "validators": []
}

updatedAt

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

utm_campaign

{
  "path": "utm_campaign",
  "instance": "String",
  "options": {},
  "validators": []
}

utm_medium

{
  "path": "utm_medium",
  "instance": "String",
  "options": {},
  "validators": []
}

utm_source

{
  "path": "utm_source",
  "instance": "String",
  "options": {},
  "validators": []
}

utm_term

{
  "path": "utm_term",
  "instance": "String",
  "options": {},
  "validators": []
}