@fayz-ai/plugin-shop 0.33.1 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -2232,6 +2232,19 @@ function buildShopDiscountEntity() {
|
|
|
2232
2232
|
hint: "Valor m\xEDnimo do pedido para o cupom valer. Deixe vazio para n\xE3o exigir m\xEDnimo.",
|
|
2233
2233
|
showInTable: false
|
|
2234
2234
|
},
|
|
2235
|
+
{
|
|
2236
|
+
key: "maxDiscount",
|
|
2237
|
+
label: "Desconto m\xE1ximo",
|
|
2238
|
+
type: "currency",
|
|
2239
|
+
group: "limits",
|
|
2240
|
+
min: 0,
|
|
2241
|
+
currency: "BRL",
|
|
2242
|
+
currencySymbol: "R$",
|
|
2243
|
+
currencyLocale: "pt-BR",
|
|
2244
|
+
placeholder: "sem teto",
|
|
2245
|
+
hint: "S\xF3 para percentual: o desconto nunca passa deste valor (10% at\xE9 R$ 50). Deixe vazio para n\xE3o limitar.",
|
|
2246
|
+
showInTable: false
|
|
2247
|
+
},
|
|
2235
2248
|
{
|
|
2236
2249
|
key: "usageLimit",
|
|
2237
2250
|
label: "Limite de usos",
|
|
@@ -2466,6 +2479,7 @@ A regra:
|
|
|
2466
2479
|
\xB7 "10%", "10 por cento" \u2192 \`type: percentage\`, \`value: 10\`.
|
|
2467
2480
|
\xB7 "R$ 50", "50 reais de desconto" \u2192 \`type: fixed_amount\`, \`value: 50\`.
|
|
2468
2481
|
\xB7 "acima de R$ 200", "a partir de 200" \u2192 \`minSubtotal: 200\`.
|
|
2482
|
+
\xB7 "10% at\xE9 R$ 50", "limite de 50 reais", "no m\xE1ximo 50 de desconto" num percentual \u2192 \`maxDiscount: 50\`.
|
|
2469
2483
|
\xB7 "s\xF3 a primeira compra", "uma vez por cliente" \u2192 \`oncePerCustomer: true\`.
|
|
2470
2484
|
\xB7 "os 100 primeiros" \u2192 \`usageLimit: 100\`.
|
|
2471
2485
|
\xB7 Prazo vira data em \`endsAt\`: "at\xE9 o fim dessa semana" \xE9 o domingo desta semana, "at\xE9 o fim do m\xEAs" \xE9 o \xFAltimo dia do m\xEAs. Sem prazo dito, deixe vazio \u2014 cupom sem fim \xE9 uma escolha, n\xE3o um esquecimento.
|