oms-Billing/Admin/Install/Workflow.install.json
Dennis Eichhorn 0722a5dea0
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled
fix permissions
2025-04-02 14:15:04 +00:00

159 lines
5.4 KiB
JSON

{
"templates": [
{
"name": "Billing workflow",
"path": "/Modules/Billing/Admin/Install/Workflow/bill"
}
],
"triggers": [
"PRE:Billing:bill-create",
"POST:Billing:bill-create",
"PRE:Billing:bill-update",
"POST:Billing:bill-update",
"PRE:Billing:bill-delete",
"POST:Billing:bill-delete",
"PRE:Billing:bill_element-create",
"POST:Billing:bill_element-create",
"PRE:Billing:bill_element-update",
"POST:Billing:bill_element-update",
"PRE:Billing:bill_element-delete",
"POST:Billing:bill_element-delete",
"PRE:Billing:bill_media-create",
"POST:Billing:bill_media-create",
"PRE:Billing:bill_media-update",
"POST:Billing:bill_media-update",
"PRE:Billing:bill_media-delete",
"POST:Billing:bill_media-delete",
"PRE:Billing:bill_note-create",
"POST:Billing:bill_note-create",
"PRE:Billing:bill_note-update",
"POST:Billing:bill_note-update",
"PRE:Billing:bill_note-delete",
"POST:Billing:bill_note-delete"
],
"actions": {
"1005100001": {
"name": "Find Subscripctions",
"description": {
"en": "Finds subscriptions",
"de": "Findet Abonnements"
},
"function_type": "Api",
"function": "apiSubscriptionFind",
"module": "Billing",
"inputs": [
"date_start",
"date_end",
"client[]",
"payment_type",
"{*}"
],
"outputs": [
"subscription[]",
"{*}"
],
"settings": {
"date_start": {
"type": "input",
"subtype": "datetime",
"default": "now",
"required": true,
"title": {
"en": "Start",
"de": "Start"
}
},
"date_end": {
"type": "input",
"subtype": "datetime",
"default": null,
"required": false,
"title": {
"en": "End",
"de": "End"
}
},
"client": {
"type": "input",
"subtype": "text",
"default": "*",
"pattern": "/(^\\*$)|(^(\\d+)(,\\s*\\d+)*$)/",
"examples": [
"*",
"12,654,789"
],
"required": true,
"title": {
"en": "Client ID",
"de": "Kundennummer"
},
"description": {
"en": "The client IDs of the clients. Use * to get all clients or a comma separated list to specify specific clients.",
"de": "Die Kundennummern. Benutzen Sie * um alle Kunden auszuwählen oder eine durch Kommas getrennte Liste von mehreren Kundennummern."
}
},
"payment_type": {
"type": "select",
"subtype": null,
"default": "cc",
"required": true,
"title": {
"en": "Payment type",
"de": "Zahlungsart"
},
"options": [
{
"value": "cc",
"text": {
"en": "Credit Card",
"de": "Kreditkarte"
}
}
]
}
}
},
"1005100002": {
"name": "Invoice for Subscription",
"description": {
"en": "Creates invoices for subscriptions",
"de": "Erstellt Rechnungen für Abonnements"
},
"function_type": "Api",
"function": "apiInvoiceFromSubscriptionCreate",
"module": "Billing",
"inputs": [
"subscription[]",
"{*}"
],
"outputs": [
"invoice[]",
"{*}"
],
"settings": {
"subscription": {
"type": "input",
"subtype": "text",
"default": "*",
"pattern": "/(^\\*$)|(^(\\d+)(,\\s*\\d+)*$)/",
"examples": [
"*",
"12,654,789"
],
"required": true,
"title": {
"en": "Subscription ID",
"de": "Abonnement ID"
},
"description": {
"en": "The subscription IDs of the subscriptions. Use * to get all subscriptions or a comma separated list to specify specific subscriptions.",
"de": "Die Abonnement ID. Benutzen Sie * um alle Abonnements auszuwählen oder eine durch Kommas getrennte Liste von mehreren Abonnement IDs."
}
}
}
}
}
}