@zinn-digital/sdk 0.1.2044 → 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 +66 -0
- 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. */
|
|
@@ -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>",
|