@waffo/pancake-ts 0.20.0 → 0.21.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/README.md CHANGED
@@ -373,10 +373,13 @@ const { store } = await client.stores.create({ name: "My Store" });
373
373
 
374
374
  // Update settings (notification, checkout theme).
375
375
  // NOTE: webhook configuration moved to client.webhooks (see Webhooks section below).
376
- // NOTE: only merchant-facing `notify*` toggles (notifyNewOrders / notifyNewSubscriptions /
377
- // notifySubscription* / notifyChargeback / notifyPayout*) are writable here;
378
- // consumer email toggles (emailOrderConfirmation, emailSubscription*, emailTrial*) are
379
- // managed by the PANCAKE platform and silently dropped if passed.
376
+ // NOTE: writable here are all the merchant-facing `notify*` toggles (notifyNewOrders /
377
+ // notifyNewSubscriptions / notifySubscription* / notifyChargeback /
378
+ // notifyRefundSucceeded) plus emailUpcomingCharge, the buyer-facing renewal
379
+ // reminder. Every other consumer email toggle (emailOrderConfirmation,
380
+ // emailSubscription*, emailTrial*, emailRefundSucceeded) is managed by the
381
+ // PANCAKE platform and silently dropped if passed. Payout result emails are
382
+ // always delivered and have no toggle.
380
383
  // NOTE: supportEmail and website are not writable here — they are set by
381
384
  // ownership verification (email code / domain) or KYB approval.
382
385
  const { store: updated } = await client.stores.update({
@@ -384,6 +387,8 @@ const { store: updated } = await client.stores.update({
384
387
  notificationSettings: {
385
388
  notifyNewOrders: true,
386
389
  notifyNewSubscriptions: false,
390
+ // Stop reminding this store's buyers before a renewal is charged.
391
+ emailUpcomingCharge: false,
387
392
  },
388
393
  });
389
394