@zinn-digital/sdk 0.1.1849 → 0.1.1853
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/generated/schema.d.ts +15 -3
- package/package.json +1 -1
|
@@ -48547,7 +48547,7 @@ export interface paths {
|
|
|
48547
48547
|
};
|
|
48548
48548
|
/**
|
|
48549
48549
|
* The Pro-plugin affiliate programmes a reseller can earn commission from.
|
|
48550
|
-
* @description Every active, visible Freemius affiliation programme across our Pro plugins, with the commission Freemius holds today (never a typed figure) and where to apply. Licences sold through these programmes are sold under the Zinn® brand; the reseller earns the commission (owner ruling 2026-11-13, "A: affiliate link"). `complete` is false when
|
|
48550
|
+
* @description Every active, visible Freemius affiliation programme across our Pro plugins, with the commission Freemius holds today (never a typed figure) and where to apply. Licences sold through these programmes are sold under the Zinn® brand; the reseller earns the commission (owner ruling 2026-11-13, "A: affiliate link"). `complete` is false only when Freemius was asked and could not answer, so a short list is never read as "none". A product Freemius says has no programme is in `without_programme`; one that cannot be checked (no key pair, e.g. a bundle) is in `skipped` with its reason. Neither makes the list incomplete. Cached for an hour. 404 when the org has no reseller programme. Requires `reseller.view`.
|
|
48551
48551
|
*/
|
|
48552
48552
|
get: operations["listResellerPluginAffiliates"];
|
|
48553
48553
|
put?: never;
|
|
@@ -55844,7 +55844,7 @@ export interface paths {
|
|
|
55844
55844
|
* Buy more disk or file allowance for one site.
|
|
55845
55845
|
* @description Raises this site's ceiling by `steps` purchasable steps (1 GB of disk, 50,000 inodes) and applies it to the box. Recorded as an open-ended grant rather than by editing the base, so *what the site started with* and *what the customer bought* stay separately revocable.
|
|
55846
55846
|
*
|
|
55847
|
-
* ⛔⛔ **The charge is created BEFORE the ceiling is raised, and an upgrade that cannot be charged for is refused with `422` — no grant, nothing on the box.** Both refusals answer `422` and the body distinguishes them: no published price in the caller's currency, or no way to take the payment. Free capacity on a real box is the failure no customer reports, because they received what they asked for. An org with no way to pay at all (no usable stored payment method and no crypto election) is refused with `422` `refusal.siteQuota.noPaymentMethod` before anything is created: the upgrade renews monthly through the unattended ad-hoc sweep, which could never collect it.
|
|
55847
|
+
* ⛔⛔ **The charge is created BEFORE the ceiling is raised, and an upgrade that cannot be charged for is refused with `422` — no grant, nothing on the box.** Both refusals answer `422` and the body distinguishes them: no published price in the caller's currency, or no way to take the payment. Free capacity on a real box is the failure no customer reports, because they received what they asked for. An org with no way to pay at all (no usable stored payment method and no crypto election) is refused with `422` `refusal.siteQuota.noPaymentMethod` before anything is created: the upgrade renews monthly through the unattended ad-hoc sweep, which could never collect it. Spendable account credit that pays the first period INCLUDING tax (taxed exactly as the sweep will tax it) is a way to pay; credit covering only the pre-tax price is not. Credit must also cover everything it is already promised to: this upgrade is taxed together with the org's other ad-hoc items due in that currency, and every unpaid order the billing sweeps settle from that credit in that currency (ad-hoc orders, subscription renewals and final overage invoices) is added, so a second upgrade, or an upgrade beside a pending renewal, on credit that pays only one of them is refused. The check and the charge are serialised per organisation.
|
|
55848
55848
|
*
|
|
55849
55849
|
* Charge-then-apply is deliberate: a charged-but-unapplied upgrade is repaired by the ten-minute reconciler, and free capacity is repaired by nobody. An upgrade also **lifts a quota freeze immediately**, because paying is the remedy and waiting for a sweep would be the worst minute of the product to leave to a schedule.
|
|
55850
55850
|
*
|
|
@@ -104950,11 +104950,23 @@ export interface components {
|
|
|
104950
104950
|
product_title: string;
|
|
104951
104951
|
};
|
|
104952
104952
|
ResellerPluginAffiliates: {
|
|
104953
|
-
/** @description False when
|
|
104953
|
+
/** @description False only when Freemius was asked about a product and could not answer (an HTTP error or no connection); the list may be short and a retry may help. No programme, or a product that cannot be checked, never makes it false. */
|
|
104954
104954
|
complete: boolean;
|
|
104955
104955
|
/** @description False when Zinn® staff turned the Pro-plugin affiliate programmes off for this reseller (then `programmes` is empty). Commission already earned is never clawed back. */
|
|
104956
104956
|
enabled: boolean;
|
|
104957
104957
|
programmes: components["schemas"]["ResellerPluginAffiliateProgramme"][];
|
|
104958
|
+
/** @description Products that were not asked, with why (`no_keys`, no key pair on the platform, e.g. a bundle). */
|
|
104959
|
+
skipped: {
|
|
104960
|
+
product_slug: string;
|
|
104961
|
+
product_title: string;
|
|
104962
|
+
/** @enum {string} */
|
|
104963
|
+
reason: "no_keys";
|
|
104964
|
+
}[];
|
|
104965
|
+
/** @description Products Freemius answered for with no active, visible affiliate programme. */
|
|
104966
|
+
without_programme: {
|
|
104967
|
+
product_slug: string;
|
|
104968
|
+
product_title: string;
|
|
104969
|
+
}[];
|
|
104958
104970
|
};
|
|
104959
104971
|
ResellerPrice: {
|
|
104960
104972
|
/** @description What YOUR client pays, in minor units. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1853",
|
|
4
4
|
"description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",
|