Model woocommerce_subscriptions
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| admin | x | x | x | x |
| owner | x | x | x | x |
| user | | 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 | | |
| billing_interval | Number | | | | | | |
| billing_period | String | | | | | | |
| createdAt | Date | | | | | | |
| created_via | String | | | | | | |
| customer_id | Number | | | | x | | |
| customer_ip_address | String | | | | | | |
| customer_note | String | | | | | | |
| customer_user_agent | String | | | | | | |
| date_completed | Date | | | | | | |
| date_created | Date | | | | | | |
| date_modified | Date | | | | x | | |
| date_paid | Date | | | | | | |
| device_type | String | | | | | | |
| id | Number | | | | x | | |
| meta_data | Array of Mixed | | | [Function] | | | |
| payment_method | String | | | | | | |
| products | Array of Mixed | | | [Function] | | | |
| referral | String | | | | | | |
| referral_url | String | | | | | | |
| schedule_end | Date | | | | | | |
| schedule_next_payment | Date | | | | | | |
| schedule_start | Date | | | | | | |
| status | String | | | | | | |
| suspension_count | Number | | | | | | |
| total | Number | | | | | | |
| updatedAt | Date | | | | | | |
| utm_campaign | String | | | | | | |
| utm_medium | String | | | | | | |
| utm_source | String | | | | | | |
| utm_term | String | | | | | | |
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": []
}