@zinn-digital/sdk 0.1.1640 → 0.1.1641
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.
|
@@ -56458,7 +56458,7 @@ export interface paths {
|
|
|
56458
56458
|
*
|
|
56459
56459
|
* ⛔⛔ **Switching to PayPal returns an `approval_url` and grants nothing.** Until the buyer approves in PayPal's own interface and PayPal sends us a **signed** `BILLING.SUBSCRIPTION.ACTIVATED` webhook, the agreement cannot charge and the subscription's clock has not started. `active` is `false` for exactly that reason. The browser's return from the approval URL is an attacker-supplied claim and is never treated as approval.
|
|
56460
56460
|
*
|
|
56461
|
-
* Switching **away** cancels the agreement at PayPal first and unbinds second. The reverse order would hand the subscription back to the engine's renewal sweep while PayPal was still entitled to charge it — a double charge for the window between the two calls.
|
|
56461
|
+
* Switching **away** cancels the agreement at PayPal first and unbinds second. The reverse order would hand the subscription back to the engine's renewal sweep while PayPal was still entitled to charge it — a double charge for the window between the two calls. A 404 from PayPal on that cancel is success when a re-read shows the agreement cannot charge (never approved, cancelled, expired or gone); otherwise the subscription stays on PayPal and the answer is `422 PAYPAL_REFUSED`. A PayPal timeout or 5xx is `503` with `PAYPAL_REFUSED` (billing unchanged, safe to retry). No PayPal answer is ever a `500`.
|
|
56462
56462
|
*
|
|
56463
56463
|
* Requires `billing.payment.manage`. `422` carries a `code`: `ALREADY_ON_RAIL`, `NO_CATALOGUE_PRICE`, `PRICE_WOULD_CHANGE` (the subscription is on a price that differs from the published one, so switching would change what the customer pays — refused rather than done quietly), `NOT_SWITCHABLE`, `PAYPAL_REFUSED`, or `RENEWAL_UNPAID` (pay first: a renewal of this subscription is unpaid, so the switch onto PayPal is refused before PayPal is called; pay it on the billing page, then switch).
|
|
56464
56464
|
*/
|
|
@@ -209446,6 +209446,7 @@ export interface operations {
|
|
|
209446
209446
|
404: components["responses"]["NotFound"];
|
|
209447
209447
|
422: components["responses"]["UnprocessableEntity"];
|
|
209448
209448
|
429: components["responses"]["TooManyRequests"];
|
|
209449
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
209449
209450
|
};
|
|
209450
209451
|
};
|
|
209451
209452
|
getSubscriptionCryptoAutoRenew: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1641",
|
|
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>",
|