@zinn-digital/sdk 0.1.1941 → 0.1.1944
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 +67 -0
- package/package.json +1 -1
|
@@ -41855,6 +41855,29 @@ export interface paths {
|
|
|
41855
41855
|
patch?: never;
|
|
41856
41856
|
trace?: never;
|
|
41857
41857
|
};
|
|
41858
|
+
"/v1/orders/{orderId}/cancel": {
|
|
41859
|
+
parameters: {
|
|
41860
|
+
query?: never;
|
|
41861
|
+
header?: never;
|
|
41862
|
+
path: {
|
|
41863
|
+
/** @description The order's id. */
|
|
41864
|
+
orderId: components["parameters"]["OrderId"];
|
|
41865
|
+
};
|
|
41866
|
+
cookie?: never;
|
|
41867
|
+
};
|
|
41868
|
+
get?: never;
|
|
41869
|
+
put?: never;
|
|
41870
|
+
/**
|
|
41871
|
+
* Cancel your own unpaid order.
|
|
41872
|
+
* @description DAY-0296. Cancels an order that is still `pending_payment` or `payment_failed` and has no payment captured, refunded or still being confirmed (our record first, then the payment provider is asked). Nothing is charged. Cancelling an order that is already `canceled` returns it unchanged. A payment taken or still confirming is a `409` (`refusal.commerce.orderPaymentConfirmingCancel`); an order in any other state is a `409` (`refusal.commerce.orderNotUnpaidCancel`); another organization's order is a `404`. Requires `billing.payment.manage`. When the platform's unpaid-order expiry is switched on, an unpaid order is also cancelled automatically 7 days after placing, at least 48 hours after the reminder that named that date.
|
|
41873
|
+
*/
|
|
41874
|
+
post: operations["cancelUnpaidOrder"];
|
|
41875
|
+
delete?: never;
|
|
41876
|
+
options?: never;
|
|
41877
|
+
head?: never;
|
|
41878
|
+
patch?: never;
|
|
41879
|
+
trace?: never;
|
|
41880
|
+
};
|
|
41858
41881
|
"/v1/orders/{orderId}/customer-action": {
|
|
41859
41882
|
parameters: {
|
|
41860
41883
|
query?: never;
|
|
@@ -105745,6 +105768,20 @@ export interface components {
|
|
|
105745
105768
|
ResellerTermsResponse: {
|
|
105746
105769
|
data: components["schemas"]["ResellerTerms"];
|
|
105747
105770
|
};
|
|
105771
|
+
ResellerTrialBilling: {
|
|
105772
|
+
/** @description What the client lines come to at the prices that apply to the reseller today, per currency (one period of each live client subscription). During an unpaid trial that is LIST price (X93 B3); a paid reseller plan unlocks wholesale. Shown, never billed during the trial. */
|
|
105773
|
+
accruing: {
|
|
105774
|
+
/** @description Integer minor units of `currency`. */
|
|
105775
|
+
amount_minor: number;
|
|
105776
|
+
currency: string;
|
|
105777
|
+
line_count: number;
|
|
105778
|
+
}[];
|
|
105779
|
+
/**
|
|
105780
|
+
* Format: date-time
|
|
105781
|
+
* @description When the trial ends. Client lines are billed only once a paid reseller plan is chosen, from the day it is chosen (which may be before this date); nothing from the trial is billed back.
|
|
105782
|
+
*/
|
|
105783
|
+
billing_starts_at: string;
|
|
105784
|
+
};
|
|
105748
105785
|
ResellerVendorPolicy: {
|
|
105749
105786
|
/** @description Basis points of the pool at which you are warned. 8000 = 80%. */
|
|
105750
105787
|
alert_at_bps: number;
|
|
@@ -121074,6 +121111,8 @@ export interface components {
|
|
|
121074
121111
|
};
|
|
121075
121112
|
WholesaleStatementList: {
|
|
121076
121113
|
data: components["schemas"]["WholesaleStatement"][];
|
|
121114
|
+
/** @description Set while the reseller is on its free 14-day trial and holds no paid reseller plan: client lines are NOT billed during the trial (owner, 2026-11-20). No statement is invoiced, no payment reminder is sent and nothing is frozen for non-payment. Choosing a paid reseller plan starts billing from that day, never back-billing the trial. `null` when client lines are billed as usual. */
|
|
121115
|
+
trial_billing: null | components["schemas"]["ResellerTrialBilling"];
|
|
121077
121116
|
};
|
|
121078
121117
|
WholesaleStatementRun: {
|
|
121079
121118
|
/** Format: date */
|
|
@@ -193203,6 +193242,34 @@ export interface operations {
|
|
|
193203
193242
|
429: components["responses"]["TooManyRequests"];
|
|
193204
193243
|
};
|
|
193205
193244
|
};
|
|
193245
|
+
cancelUnpaidOrder: {
|
|
193246
|
+
parameters: {
|
|
193247
|
+
query?: never;
|
|
193248
|
+
header?: never;
|
|
193249
|
+
path: {
|
|
193250
|
+
/** @description The order's id. */
|
|
193251
|
+
orderId: components["parameters"]["OrderId"];
|
|
193252
|
+
};
|
|
193253
|
+
cookie?: never;
|
|
193254
|
+
};
|
|
193255
|
+
requestBody?: never;
|
|
193256
|
+
responses: {
|
|
193257
|
+
/** @description The order, now canceled. */
|
|
193258
|
+
200: {
|
|
193259
|
+
headers: {
|
|
193260
|
+
[name: string]: unknown;
|
|
193261
|
+
};
|
|
193262
|
+
content: {
|
|
193263
|
+
"application/json": components["schemas"]["Order"];
|
|
193264
|
+
};
|
|
193265
|
+
};
|
|
193266
|
+
401: components["responses"]["Unauthorized"];
|
|
193267
|
+
403: components["responses"]["Forbidden"];
|
|
193268
|
+
404: components["responses"]["NotFound"];
|
|
193269
|
+
409: components["responses"]["Conflict"];
|
|
193270
|
+
429: components["responses"]["TooManyRequests"];
|
|
193271
|
+
};
|
|
193272
|
+
};
|
|
193206
193273
|
openOrderCustomerAction: {
|
|
193207
193274
|
parameters: {
|
|
193208
193275
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1944",
|
|
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>",
|