Model xeropayments
Permissions
User Group | Create? | Read? | Update? | Delete? |
---|
admin | x | x | x | x |
owner | x | x | x | x |
user | | | | |
all | | | | |
Fields
Name | Type | Link | Maps To | Default | Indexed? | Unique? |
---|
__v | Number | | | | | |
_deleted | Boolean | | | false | x | |
_id | ObjectID | | | function defaultId() {
return new oid();
} | | |
_owner_id | ObjectID | | | | | |
_updated_by_id | ObjectID | User | _updated_by | | x | |
account | Mixed | | | | | |
amount | Number | | | | | |
bank_amount | Number | | | | | |
createdAt | Date | | | | | |
currency_rate | Number | | | | | |
date | Date | | | | x | |
has_account | Boolean | | | | | |
invoice | Mixed | | | | | |
invoice_id | ObjectID | Invoice | local_invoice | | x | |
is_reconciled | Boolean | | | | | |
location_id | ObjectID | Location | | | x | |
organisation_id | ObjectID | Organisation | | | x | |
payment_id | String | | | | | |
payment_type | String | | | | | |
reference | String | | | | | |
status | String | | | | | |
updatedAt | Date | | | | | |
updated_date_utc | Date | | | | x | |
xero_tenant_id | String | | | | | |
Raw definition
{
"path": "__v",
"instance": "Number",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"__v"
],
"options": {},
"_index": null
}
{
"path": "_deleted",
"instance": "Boolean",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"_deleted"
],
"options": {
"default": false,
"index": true
},
"_index": true,
"defaultValue": false
}
{
"path": "_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [
null
],
"_presplitPath": [
"_id"
],
"options": {
"auto": true,
"type": "ObjectId"
},
"_index": null
}
{
"path": "_owner_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"_owner_id"
],
"options": {},
"_index": null
}
{
"path": "_updated_by_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"_updated_by_id"
],
"options": {
"link": "User",
"map_to": "_updated_by",
"index": true
},
"_index": true
}
{
"path": "account",
"instance": "Mixed",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"account"
],
"options": {},
"_index": null
}
{
"path": "amount",
"instance": "Number",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"amount"
],
"options": {},
"_index": null
}
{
"path": "bank_amount",
"instance": "Number",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"bank_amount"
],
"options": {},
"_index": null
}
{
"path": "createdAt",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [
null,
null
],
"_presplitPath": [
"createdAt"
],
"options": {
"immutable": true
},
"_index": null,
"$immutable": true
}
{
"path": "currency_rate",
"instance": "Number",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"currency_rate"
],
"options": {},
"_index": null
}
{
"path": "date",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"date"
],
"options": {
"index": true
},
"_index": true
}
{
"path": "has_account",
"instance": "Boolean",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"has_account"
],
"options": {},
"_index": null
}
{
"path": "invoice",
"instance": "Mixed",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"invoice"
],
"options": {},
"_index": null
}
{
"path": "invoice_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"invoice_id"
],
"options": {
"link": "Invoice",
"index": true,
"map_to": "local_invoice"
},
"_index": true
}
{
"path": "is_reconciled",
"instance": "Boolean",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"is_reconciled"
],
"options": {},
"_index": null
}
{
"path": "location_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"location_id"
],
"options": {
"link": "Location",
"index": true
},
"_index": true
}
{
"path": "organisation_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"organisation_id"
],
"options": {
"link": "Organisation",
"index": true
},
"_index": true
}
{
"enumValues": [],
"regExp": null,
"path": "payment_id",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"payment_id"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "payment_type",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"payment_type"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "reference",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"reference"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "status",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"status"
],
"options": {},
"_index": null
}
{
"path": "updatedAt",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"updatedAt"
],
"options": {},
"_index": null
}
{
"path": "updated_date_utc",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"updated_date_utc"
],
"options": {
"index": true
},
"_index": true
}
{
"enumValues": [],
"regExp": null,
"path": "xero_tenant_id",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"xero_tenant_id"
],
"options": {},
"_index": null
}