@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 +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -5
- package/dist/index.d.ts +14 -5
- package/dist/index.js.map +1 -1
- package/docs/api-reference.md +15 -18
- package/package.json +1 -1
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:
|
|
377
|
-
// notifySubscription* / notifyChargeback /
|
|
378
|
-
//
|
|
379
|
-
//
|
|
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
|
|