Add condition for payment methods

This commit is contained in:
Robin van der Linde 2023-09-02 12:52:13 +02:00
parent 08acb27a27
commit 816c302e20
No known key found for this signature in database
GPG key ID: 53956B3252478F0D

View file

@ -84,7 +84,50 @@
}
]
},
"payment-options-split",
{
"id": "fee",
"question": {
"en": "Does it cost money to press a penny?"
},
"mappings": [
{
"if": "fee=",
"then": {
"en": "It costs money to press a penny."
}
},
{
"if": "fee=yes",
"then": {
"en": "It costs money to press a penny."
}
},
{
"if": "fee=no",
"then": {
"en": "It is free to press a penny."
},
"addExtraTags": [
"payment:qr_code=",
"payment:coins=",
"payment:notes=",
"payment:debit_cards=",
"payment:credit_cards="
]
}
]
},
{
"builtin": "payment-options-split",
"override": {
"condition": {
"or": [
"fee=yes",
"fee="
]
}
}
},
{
"id": "coin",
"question": {
@ -184,32 +227,6 @@
}
},
"website",
{
"id": "fee",
"question": {
"en": "Does it cost money to press a penny?"
},
"mappings": [
{
"if": "fee=",
"then": {
"en": "It costs money to press a penny."
}
},
{
"if": "fee=yes",
"then": {
"en": "It costs money to press a penny."
}
},
{
"if": "fee=no",
"then": {
"en": "It is free to press a penny."
}
}
]
},
{
"id": "charge",
"condition": {