@shoppexio/storefront 1.0.76 → 1.0.77

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
@@ -2417,6 +2417,18 @@ var publicInvoiceWireSchema = external_exports.object({
2417
2417
  * the reader: this schema is not it.
2418
2418
  */
2419
2419
  coupon_applied: external_exports.boolean().optional(),
2420
+ /**
2421
+ * How much of the order the applied coupon reaches, in lines — null when it
2422
+ * covers every line or no coupon is on the order. Counts only, so nothing
2423
+ * about which products the merchant scoped the code to leaves the server.
2424
+ * The discount line already shows the reduced amount; this is what lets the
2425
+ * checkout say "applied to 1 of 3 items" instead of leaving a smaller-than-
2426
+ * advertised discount to read as a broken code.
2427
+ */
2428
+ coupon_scope: external_exports.object({
2429
+ eligible_line_count: external_exports.number(),
2430
+ line_count: external_exports.number()
2431
+ }).nullable().optional(),
2420
2432
  crypto_mode: external_exports.string().nullable().optional(),
2421
2433
  crypto_transactions: external_exports.array(cryptoTransactionSchema).optional(),
2422
2434
  currency: external_exports.string().nullable(),