@zinn-digital/sdk 0.1.2042 → 0.1.2046
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 +70 -4
- package/package.json +1 -1
|
@@ -45257,6 +45257,28 @@ export interface paths {
|
|
|
45257
45257
|
patch?: never;
|
|
45258
45258
|
trace?: never;
|
|
45259
45259
|
};
|
|
45260
|
+
"/v1/payment-methods/stripe/confirm": {
|
|
45261
|
+
parameters: {
|
|
45262
|
+
query?: never;
|
|
45263
|
+
header?: never;
|
|
45264
|
+
path?: never;
|
|
45265
|
+
cookie?: never;
|
|
45266
|
+
};
|
|
45267
|
+
get?: never;
|
|
45268
|
+
put?: never;
|
|
45269
|
+
/**
|
|
45270
|
+
* Save a confirmed card now, without waiting for Stripe's webhook.
|
|
45271
|
+
* @description Re-reads the SetupIntent from **Stripe** and stores the mandate it confirmed. The browser only names the intent: an intent that has not succeeded, that belongs to another organization, or that was opened on a public door is refused with a 422 and nothing is stored.
|
|
45272
|
+
*
|
|
45273
|
+
* Idempotent, and it deliberately races Stripe's `setup_intent.succeeded` webhook: whichever arrives first writes the mandate and the other converges on it. The dashboard calls it when its wait for the webhook runs out, so a lost or late webhook still saves the card while the customer is on the page.
|
|
45274
|
+
*/
|
|
45275
|
+
post: operations["confirmStripeMandateSetup"];
|
|
45276
|
+
delete?: never;
|
|
45277
|
+
options?: never;
|
|
45278
|
+
head?: never;
|
|
45279
|
+
patch?: never;
|
|
45280
|
+
trace?: never;
|
|
45281
|
+
};
|
|
45260
45282
|
"/v1/payment-options": {
|
|
45261
45283
|
parameters: {
|
|
45262
45284
|
query?: never;
|
|
@@ -84353,6 +84375,11 @@ export interface components {
|
|
|
84353
84375
|
gateway?: string;
|
|
84354
84376
|
/** @description Your own replay key. Optional; when absent the server mints one, so a double-submit is at worst a second deliberate-looking top-up rather than a silent double charge. */
|
|
84355
84377
|
idempotency_key?: string;
|
|
84378
|
+
/**
|
|
84379
|
+
* Format: uuid
|
|
84380
|
+
* @description The saved card to charge: the `id` `POST /v1/payment-methods/stripe/confirm` returned for the card the customer just added (TOPUPCAP r10). That card is charged and nothing else. A 422 `refusal.commerce.paymentMethodCannotUsed` before anything is written or charged when it is not one of your chargeable Stripe cards, when `gateway` is not the card rail, or on a reseller's client wallet (the provider's gateway cannot charge a card saved with Zinn®). Omit it to charge your primary card.
|
|
84381
|
+
*/
|
|
84382
|
+
payment_method_id?: string | null;
|
|
84356
84383
|
};
|
|
84357
84384
|
ClientWalletTopUpList: components["schemas"]["ClientWalletTopUp"][];
|
|
84358
84385
|
/** @description What closing an organization would do, computed **before** anything is done and by the same function the closure runs. */
|
|
@@ -85363,7 +85390,7 @@ export interface components {
|
|
|
85363
85390
|
provider: string;
|
|
85364
85391
|
/** @description Our identifier for the city, e.g. `nuremberg`. The client translates it. */
|
|
85365
85392
|
slug: string;
|
|
85366
|
-
/** @description The Zinn location id an order sends back (e.g. `falkenstein`), never a supplier zone code. */
|
|
85393
|
+
/** @description The Zinn® location id an order sends back (e.g. `falkenstein`), never a supplier zone code. */
|
|
85367
85394
|
zone: string;
|
|
85368
85395
|
};
|
|
85369
85396
|
ComputeRegionList: {
|
|
@@ -85579,7 +85606,7 @@ export interface components {
|
|
|
85579
85606
|
terminated_at?: string | null;
|
|
85580
85607
|
/** @description The provider's own word, verbatim and unrounded. Staff-facing detail; a customer client renders `status` and never this. */
|
|
85581
85608
|
vendor_status: string;
|
|
85582
|
-
/** @description The data centre it runs in, as the Zinn location id (e.g. `falkenstein`); staff tools keep the supplier zone. */
|
|
85609
|
+
/** @description The data centre it runs in, as the Zinn® location id (e.g. `falkenstein`); staff tools keep the supplier zone. */
|
|
85583
85610
|
zone: string;
|
|
85584
85611
|
};
|
|
85585
85612
|
/**
|
|
@@ -86116,7 +86143,7 @@ export interface components {
|
|
|
86116
86143
|
* @enum {string}
|
|
86117
86144
|
*/
|
|
86118
86145
|
kind?: "vm" | "gpu" | "metal";
|
|
86119
|
-
/** @description The size's display name: on a customer response the Zinn plan name that sells this size, else `""` — never the supplier's product name. */
|
|
86146
|
+
/** @description The size's display name: on a customer response the Zinn® plan name that sells this size, else `""` — never the supplier's product name. */
|
|
86120
86147
|
label: string;
|
|
86121
86148
|
/**
|
|
86122
86149
|
* @description `windows` for a licence-included Windows size, else `""`, read server-side from the real size. A resize keeps the licence.
|
|
@@ -86461,7 +86488,7 @@ export interface components {
|
|
|
86461
86488
|
};
|
|
86462
86489
|
/** @description One data centre a machine can be placed in. */
|
|
86463
86490
|
ComputeZone: {
|
|
86464
|
-
/** @description The Zinn location id (a city, e.g. `falkenstein`; a dedicated pool `falkenstein-dedi`), never the supplier's zone code; an order sends it back as given. */
|
|
86491
|
+
/** @description The Zinn® location id (a city, e.g. `falkenstein`; a dedicated pool `falkenstein-dedi`), never the supplier's zone code; an order sends it back as given. */
|
|
86465
86492
|
id: string;
|
|
86466
86493
|
/** @description The place's display name (city and country); never a supplier zone code. */
|
|
86467
86494
|
label: string;
|
|
@@ -119179,6 +119206,15 @@ export interface components {
|
|
|
119179
119206
|
items: components["schemas"]["StoreSupportTicket"][];
|
|
119180
119207
|
next_before: string | null;
|
|
119181
119208
|
};
|
|
119209
|
+
StripeMandateConfirmRequest: {
|
|
119210
|
+
/**
|
|
119211
|
+
* Format: uuid
|
|
119212
|
+
* @description Organization to attach the mandate to. The caller must hold `billing.payment.manage` in **that** organization, and Stripe's own answer must name the same organization.
|
|
119213
|
+
*/
|
|
119214
|
+
org_id?: string;
|
|
119215
|
+
/** @description The `setup_intent_id` returned by `POST /v1/payment-methods`. */
|
|
119216
|
+
setup_intent_id: string;
|
|
119217
|
+
};
|
|
119182
119218
|
/** @description An organization's subscription to a plan version. It pins the exact version and carries the **captured** price + entitlements — a purchase-time snapshot that later catalog or FX changes never alter (docs/05 §1). */
|
|
119183
119219
|
Subscription: {
|
|
119184
119220
|
/** @description What is still owed and what the last payment covered; `null` when nothing is owed. */
|
|
@@ -201387,6 +201423,36 @@ export interface operations {
|
|
|
201387
201423
|
503: components["responses"]["ServiceUnavailable"];
|
|
201388
201424
|
};
|
|
201389
201425
|
};
|
|
201426
|
+
confirmStripeMandateSetup: {
|
|
201427
|
+
parameters: {
|
|
201428
|
+
query?: never;
|
|
201429
|
+
header?: never;
|
|
201430
|
+
path?: never;
|
|
201431
|
+
cookie?: never;
|
|
201432
|
+
};
|
|
201433
|
+
requestBody: {
|
|
201434
|
+
content: {
|
|
201435
|
+
"application/json": components["schemas"]["StripeMandateConfirmRequest"];
|
|
201436
|
+
};
|
|
201437
|
+
};
|
|
201438
|
+
responses: {
|
|
201439
|
+
/** @description The stored payment method. */
|
|
201440
|
+
201: {
|
|
201441
|
+
headers: {
|
|
201442
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
201443
|
+
[name: string]: unknown;
|
|
201444
|
+
};
|
|
201445
|
+
content: {
|
|
201446
|
+
"application/json": components["schemas"]["PaymentMethod"];
|
|
201447
|
+
};
|
|
201448
|
+
};
|
|
201449
|
+
401: components["responses"]["Unauthorized"];
|
|
201450
|
+
403: components["responses"]["Forbidden"];
|
|
201451
|
+
409: components["responses"]["Conflict"];
|
|
201452
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
201453
|
+
429: components["responses"]["TooManyRequests"];
|
|
201454
|
+
};
|
|
201455
|
+
};
|
|
201390
201456
|
getPaymentOptions: {
|
|
201391
201457
|
parameters: {
|
|
201392
201458
|
query: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2046",
|
|
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>",
|