@vindentech/api-client 0.3.0-next.83 → 0.3.0-next.85
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/_all.d.ts +1 -0
- package/dist/generated/_all.d.ts.map +1 -1
- package/dist/generated/_all.js +1 -0
- package/dist/generated/_all.js.map +1 -1
- package/dist/generated/_permissions.d.ts +21 -1
- package/dist/generated/_permissions.d.ts.map +1 -1
- package/dist/generated/_permissions.js +5 -0
- package/dist/generated/_permissions.js.map +1 -1
- package/dist/generated/coupons/coupons.d.ts +2 -2
- package/dist/generated/coupons/coupons.js +2 -2
- package/dist/generated/index.schemas.d.ts +289 -1
- package/dist/generated/index.schemas.d.ts.map +1 -1
- package/dist/generated/index.schemas.js +43 -0
- package/dist/generated/index.schemas.js.map +1 -1
- package/dist/generated/invoices/invoices.d.ts +59 -1
- package/dist/generated/invoices/invoices.d.ts.map +1 -1
- package/dist/generated/invoices/invoices.js +48 -0
- package/dist/generated/invoices/invoices.js.map +1 -1
- package/dist/generated/me/me.d.ts +30 -1
- package/dist/generated/me/me.d.ts.map +1 -1
- package/dist/generated/me/me.js +13 -0
- package/dist/generated/me/me.js.map +1 -1
- package/dist/generated/order-audit/order-audit.d.ts +24 -0
- package/dist/generated/order-audit/order-audit.d.ts.map +1 -0
- package/dist/generated/order-audit/order-audit.js +23 -0
- package/dist/generated/order-audit/order-audit.js.map +1 -0
- package/dist/generated/organizations/organizations.d.ts +9 -2
- package/dist/generated/organizations/organizations.d.ts.map +1 -1
- package/dist/generated/organizations/organizations.js +1 -2
- package/dist/generated/organizations/organizations.js.map +1 -1
- package/dist/generated/posti-oma-posti-pro-ops/posti-oma-posti-pro-ops.d.ts +28 -3
- package/dist/generated/posti-oma-posti-pro-ops/posti-oma-posti-pro-ops.d.ts.map +1 -1
- package/dist/generated/posti-oma-posti-pro-ops/posti-oma-posti-pro-ops.js +26 -2
- package/dist/generated/posti-oma-posti-pro-ops/posti-oma-posti-pro-ops.js.map +1 -1
- package/package.json +1 -1
|
@@ -512,6 +512,11 @@ export interface OrderTimelineEventDto {
|
|
|
512
512
|
/** @nullable */
|
|
513
513
|
oldStatus?: string | null;
|
|
514
514
|
newStatus?: string;
|
|
515
|
+
/**
|
|
516
|
+
* Keycloak `sub` of the user who made the status change, for tenant-wide staff and platform admins; absent for every other caller. Null when no user was in context, e.g. a Worker transition.
|
|
517
|
+
* @nullable
|
|
518
|
+
*/
|
|
519
|
+
changedBySub?: string | null;
|
|
515
520
|
orderTransportLegId?: string;
|
|
516
521
|
legType?: string;
|
|
517
522
|
sequence?: number;
|
|
@@ -1220,6 +1225,76 @@ export interface PickingRouteDto {
|
|
|
1220
1225
|
/** Stops in walk order */
|
|
1221
1226
|
stops: PickingStopDto[];
|
|
1222
1227
|
}
|
|
1228
|
+
/**
|
|
1229
|
+
* The value before the write. Absent on INSERT and when redacted.
|
|
1230
|
+
*/
|
|
1231
|
+
export type OrderAuditChangeDtoBefore = string | null | number | boolean | {
|
|
1232
|
+
[key: string]: unknown;
|
|
1233
|
+
} | unknown[];
|
|
1234
|
+
/**
|
|
1235
|
+
* The value after the write. Absent on DELETE and when redacted.
|
|
1236
|
+
*/
|
|
1237
|
+
export type OrderAuditChangeDtoAfter = string | null | number | boolean | {
|
|
1238
|
+
[key: string]: unknown;
|
|
1239
|
+
} | unknown[];
|
|
1240
|
+
export interface OrderAuditChangeDto {
|
|
1241
|
+
/** The database column name, e.g. `status`, `planned_window_start`. */
|
|
1242
|
+
column: string;
|
|
1243
|
+
/** The column is outside its table's audit allowlist, so the values were never stored. `before` and `after` are then absent: the entry says only that the column changed. */
|
|
1244
|
+
redacted: boolean;
|
|
1245
|
+
/** The value before the write. Absent on INSERT and when redacted. */
|
|
1246
|
+
before?: OrderAuditChangeDtoBefore;
|
|
1247
|
+
/** The value after the write. Absent on DELETE and when redacted. */
|
|
1248
|
+
after?: OrderAuditChangeDtoAfter;
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* Which record was written.
|
|
1252
|
+
*/
|
|
1253
|
+
export type OrderAuditEntryDtoEntityType = typeof OrderAuditEntryDtoEntityType[keyof typeof OrderAuditEntryDtoEntityType];
|
|
1254
|
+
export declare const OrderAuditEntryDtoEntityType: {
|
|
1255
|
+
readonly ORDER: "ORDER";
|
|
1256
|
+
readonly TRANSPORT_LEG: "TRANSPORT_LEG";
|
|
1257
|
+
readonly MERCHANDISE_LINE: "MERCHANDISE_LINE";
|
|
1258
|
+
readonly POD: "POD";
|
|
1259
|
+
};
|
|
1260
|
+
export type OrderAuditEntryDtoEventType = typeof OrderAuditEntryDtoEventType[keyof typeof OrderAuditEntryDtoEventType];
|
|
1261
|
+
export declare const OrderAuditEntryDtoEventType: {
|
|
1262
|
+
readonly INSERT: "INSERT";
|
|
1263
|
+
readonly UPDATE: "UPDATE";
|
|
1264
|
+
readonly DELETE: "DELETE";
|
|
1265
|
+
};
|
|
1266
|
+
export interface OrderAuditEntryDto {
|
|
1267
|
+
rowChangeId: string;
|
|
1268
|
+
/** When the write's transaction started. Every write of one transaction shares it, so entries are ordered by this and then by `rowChangeId`. */
|
|
1269
|
+
changedAt: string;
|
|
1270
|
+
/** Which record was written. */
|
|
1271
|
+
entityType: OrderAuditEntryDtoEntityType;
|
|
1272
|
+
/** The written record's id. */
|
|
1273
|
+
entityId: string;
|
|
1274
|
+
eventType: OrderAuditEntryDtoEventType;
|
|
1275
|
+
/**
|
|
1276
|
+
* Keycloak `sub` of the user whose request made the write. Null when no user was in context, which includes every Worker write.
|
|
1277
|
+
* @nullable
|
|
1278
|
+
*/
|
|
1279
|
+
changedBySub: string | null;
|
|
1280
|
+
/**
|
|
1281
|
+
* The writer's application role, where one was recorded. Null when none was.
|
|
1282
|
+
* @nullable
|
|
1283
|
+
*/
|
|
1284
|
+
changedByRole: string | null;
|
|
1285
|
+
/** On UPDATE, every column whose value changed, sorted by name. On INSERT and DELETE, the allowlisted columns holding a value; redacted columns are left out there, because the stored row cannot say whether they held one. */
|
|
1286
|
+
changes: OrderAuditChangeDto[];
|
|
1287
|
+
}
|
|
1288
|
+
export interface PaginatedOrderAuditEntriesDto {
|
|
1289
|
+
/** The page of rows. */
|
|
1290
|
+
items: OrderAuditEntryDto[];
|
|
1291
|
+
/** Exact count of all rows matching the filter, pre-pagination (RLS-scoped). */
|
|
1292
|
+
total: number;
|
|
1293
|
+
/** Effective max rows applied (after defaults/clamp). */
|
|
1294
|
+
limit: number;
|
|
1295
|
+
/** Effective rows skipped applied. */
|
|
1296
|
+
offset: number;
|
|
1297
|
+
}
|
|
1223
1298
|
export interface AddressDto {
|
|
1224
1299
|
addressId: string;
|
|
1225
1300
|
organizationId: string;
|
|
@@ -2300,6 +2375,23 @@ export interface UpdateMeOrganizationDto {
|
|
|
2300
2375
|
*/
|
|
2301
2376
|
preferredLocale?: UpdateMeOrganizationDtoPreferredLocale;
|
|
2302
2377
|
}
|
|
2378
|
+
/**
|
|
2379
|
+
* Outcome of the best-effort Keycloak push made after the database commit. `synced` — the Keycloak side was updated by this call. `failed` — the push was attempted and failed; the database change stands, and re-running the command re-attempts the push. `not_configured` — no push was attempted because no Keycloak sync client is provisioned for the tenant.
|
|
2380
|
+
*/
|
|
2381
|
+
export type CloseAccountResultDtoKeycloakSyncStatus = typeof CloseAccountResultDtoKeycloakSyncStatus[keyof typeof CloseAccountResultDtoKeycloakSyncStatus];
|
|
2382
|
+
export declare const CloseAccountResultDtoKeycloakSyncStatus: {
|
|
2383
|
+
readonly synced: "synced";
|
|
2384
|
+
readonly failed: "failed";
|
|
2385
|
+
readonly not_configured: "not_configured";
|
|
2386
|
+
};
|
|
2387
|
+
export interface CloseAccountResultDto {
|
|
2388
|
+
/** The caller's personal organization. It is kept, not deleted, so storage still owed is billed. */
|
|
2389
|
+
organizationId: string;
|
|
2390
|
+
/** When the account was closed. */
|
|
2391
|
+
closedAt: string;
|
|
2392
|
+
/** Outcome of the best-effort Keycloak push made after the database commit. `synced` — the Keycloak side was updated by this call. `failed` — the push was attempted and failed; the database change stands, and re-running the command re-attempts the push. `not_configured` — no push was attempted because no Keycloak sync client is provisioned for the tenant. */
|
|
2393
|
+
keycloakSyncStatus: CloseAccountResultDtoKeycloakSyncStatus;
|
|
2394
|
+
}
|
|
2303
2395
|
export interface UpdateIdentityNumberDto {
|
|
2304
2396
|
/** Swedish personal identity number — YYMMDDNNNN, YYMMDD-NNNN, YYMMDD+NNNN, YYYYMMDDNNNN or YYYYMMDD-NNNN, with a valid Luhn check digit. Stored digits-only. Never returned by any endpoint. */
|
|
2305
2397
|
personalIdentityNumber: string;
|
|
@@ -2480,6 +2572,8 @@ export interface CartLocationDto {
|
|
|
2480
2572
|
stairwell: string | null;
|
|
2481
2573
|
/** @nullable */
|
|
2482
2574
|
apartmentNumber: string | null;
|
|
2575
|
+
/** @nullable */
|
|
2576
|
+
transportInstructions: string | null;
|
|
2483
2577
|
}
|
|
2484
2578
|
/**
|
|
2485
2579
|
* @nullable
|
|
@@ -2522,6 +2616,8 @@ export interface CartDeliveryLocationDto {
|
|
|
2522
2616
|
/** @nullable */
|
|
2523
2617
|
apartmentNumber: string | null;
|
|
2524
2618
|
/** @nullable */
|
|
2619
|
+
transportInstructions: string | null;
|
|
2620
|
+
/** @nullable */
|
|
2525
2621
|
servicePointId: string | null;
|
|
2526
2622
|
/** @nullable */
|
|
2527
2623
|
servicePointProvider: CartDeliveryLocationDtoServicePointProvider;
|
|
@@ -2965,6 +3061,12 @@ export interface CartLocationInputDto {
|
|
|
2965
3061
|
* @nullable
|
|
2966
3062
|
*/
|
|
2967
3063
|
apartmentNumber?: string | null;
|
|
3064
|
+
/**
|
|
3065
|
+
* The customer's message to the driver (e.g. call when outside). Copied onto this side's transport legs at placement.
|
|
3066
|
+
* @maxLength 500
|
|
3067
|
+
* @nullable
|
|
3068
|
+
*/
|
|
3069
|
+
transportInstructions?: string | null;
|
|
2968
3070
|
}
|
|
2969
3071
|
/**
|
|
2970
3072
|
* Required alongside servicePointId.
|
|
@@ -3035,6 +3137,12 @@ export interface CartDeliveryLocationInputDto {
|
|
|
3035
3137
|
* @nullable
|
|
3036
3138
|
*/
|
|
3037
3139
|
apartmentNumber?: string | null;
|
|
3140
|
+
/**
|
|
3141
|
+
* The customer's message to the driver (e.g. call when outside). Copied onto this side's transport legs at placement.
|
|
3142
|
+
* @maxLength 500
|
|
3143
|
+
* @nullable
|
|
3144
|
+
*/
|
|
3145
|
+
transportInstructions?: string | null;
|
|
3038
3146
|
/**
|
|
3039
3147
|
* Opaque provider-specific id; requires servicePointProvider alongside it. Placement still requires the delivery address (addressLine1, zipCode, city) and a contact phone: the provider puts the receiver's own address and mobile on the parcel and sends the arrival notice to that phone.
|
|
3040
3148
|
* @nullable
|
|
@@ -7682,6 +7790,14 @@ export declare const PostiOmaPostiProFailureDtoState: {
|
|
|
7682
7790
|
readonly PARKED: "PARKED";
|
|
7683
7791
|
readonly RETRYING: "RETRYING";
|
|
7684
7792
|
};
|
|
7793
|
+
/**
|
|
7794
|
+
* What the provider said when the unanswered send was reconciled with them. NOT_CREATED — they hold no order for it. Null unless `reconciledAt` is set.
|
|
7795
|
+
* @nullable
|
|
7796
|
+
*/
|
|
7797
|
+
export type PostiOmaPostiProFailureDtoReconciledOutcome = typeof PostiOmaPostiProFailureDtoReconciledOutcome[keyof typeof PostiOmaPostiProFailureDtoReconciledOutcome] | null;
|
|
7798
|
+
export declare const PostiOmaPostiProFailureDtoReconciledOutcome: {
|
|
7799
|
+
readonly NOT_CREATED: "NOT_CREATED";
|
|
7800
|
+
};
|
|
7685
7801
|
export interface PostiOmaPostiProFailureDto {
|
|
7686
7802
|
outboxId: string;
|
|
7687
7803
|
/** When the sweep emitted the row. Also the partition key. */
|
|
@@ -7729,8 +7845,18 @@ export interface PostiOmaPostiProFailureDto {
|
|
|
7729
7845
|
* @nullable
|
|
7730
7846
|
*/
|
|
7731
7847
|
inFlightSince: string | null;
|
|
7732
|
-
/** Whether the booking was also cancelled locally after being sent. Cancelling our record does not cancel the provider's order, so this changes nothing about the phone call — it only explains why the leg looks free. */
|
|
7848
|
+
/** Whether the booking was also cancelled locally after being sent. Cancelling our record does not cancel the provider's order, so this changes nothing about the phone call — it only explains why the leg looks free. Also true once the reconcile command has run (`reconciledAt` set), which cancels the booking because the provider confirmed it holds nothing. */
|
|
7733
7849
|
cancelledLocally: boolean;
|
|
7850
|
+
/**
|
|
7851
|
+
* When a person reconciled this row's unanswered send with the provider and recorded the outcome. Set only on a PARKED row the reconcile command took out of IN_FLIGHT_UNKNOWN, and the one field that tells it apart from a row whose document the provider refused: both carry a booking with no stamp and a PENDING status, and `lastError` still describes the unanswered send.
|
|
7852
|
+
* @nullable
|
|
7853
|
+
*/
|
|
7854
|
+
reconciledAt: string | null;
|
|
7855
|
+
/**
|
|
7856
|
+
* What the provider said when the unanswered send was reconciled with them. NOT_CREATED — they hold no order for it. Null unless `reconciledAt` is set.
|
|
7857
|
+
* @nullable
|
|
7858
|
+
*/
|
|
7859
|
+
reconciledOutcome: PostiOmaPostiProFailureDtoReconciledOutcome;
|
|
7734
7860
|
}
|
|
7735
7861
|
export interface PostiOmaPostiProFailuresDto {
|
|
7736
7862
|
failures: PostiOmaPostiProFailureDto[];
|
|
@@ -7789,6 +7915,45 @@ export interface PostiOmaPostiProSettleResultDto {
|
|
|
7789
7915
|
*/
|
|
7790
7916
|
externalBookingId: string | null;
|
|
7791
7917
|
}
|
|
7918
|
+
/**
|
|
7919
|
+
* NOT_CREATED — the provider confirmed they hold no freight order for this row. The only outcome this command records.
|
|
7920
|
+
*/
|
|
7921
|
+
export type ReconcilePostiOmaPostiProFailureDtoOutcome = typeof ReconcilePostiOmaPostiProFailureDtoOutcome[keyof typeof ReconcilePostiOmaPostiProFailureDtoOutcome];
|
|
7922
|
+
export declare const ReconcilePostiOmaPostiProFailureDtoOutcome: {
|
|
7923
|
+
readonly NOT_CREATED: "NOT_CREATED";
|
|
7924
|
+
};
|
|
7925
|
+
export interface ReconcilePostiOmaPostiProFailureDto {
|
|
7926
|
+
/** NOT_CREATED — the provider confirmed they hold no freight order for this row. The only outcome this command records. */
|
|
7927
|
+
outcome: ReconcilePostiOmaPostiProFailureDtoOutcome;
|
|
7928
|
+
/** Who at the provider confirmed it, when, and any reference they gave. Recorded in audit_logs.admin_action — this decides that a freight order the platform cannot cancel does not exist, so it is not anonymous. */
|
|
7929
|
+
reason: string;
|
|
7930
|
+
}
|
|
7931
|
+
export type PostiOmaPostiProReconcileResultDtoDirection = typeof PostiOmaPostiProReconcileResultDtoDirection[keyof typeof PostiOmaPostiProReconcileResultDtoDirection];
|
|
7932
|
+
export declare const PostiOmaPostiProReconcileResultDtoDirection: {
|
|
7933
|
+
readonly PICKUP: "PICKUP";
|
|
7934
|
+
readonly MERCHANDISE_DELIVERY: "MERCHANDISE_DELIVERY";
|
|
7935
|
+
readonly DELIVERY: "DELIVERY";
|
|
7936
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
7937
|
+
};
|
|
7938
|
+
export type PostiOmaPostiProReconcileResultDtoOutcome = typeof PostiOmaPostiProReconcileResultDtoOutcome[keyof typeof PostiOmaPostiProReconcileResultDtoOutcome];
|
|
7939
|
+
export declare const PostiOmaPostiProReconcileResultDtoOutcome: {
|
|
7940
|
+
readonly NOT_CREATED: "NOT_CREATED";
|
|
7941
|
+
};
|
|
7942
|
+
export interface PostiOmaPostiProReconcileResultDto {
|
|
7943
|
+
outboxId: string;
|
|
7944
|
+
/** The sweep's idempotency key, unchanged by the reconcile. */
|
|
7945
|
+
eventKey: string;
|
|
7946
|
+
direction: PostiOmaPostiProReconcileResultDtoDirection;
|
|
7947
|
+
/** The order the freight order was sent for. */
|
|
7948
|
+
aggregateId: string;
|
|
7949
|
+
outcome: PostiOmaPostiProReconcileResultDtoOutcome;
|
|
7950
|
+
/** When the outcome was recorded. */
|
|
7951
|
+
reconciledAt: string;
|
|
7952
|
+
/** The booking the unanswered send was recorded on. It is now cancelled, so the leg is free: a replay books it again on a fresh booking. */
|
|
7953
|
+
carrierBookingId: string;
|
|
7954
|
+
/** When the send that was never answered left the platform — the in-flight stamp this command took off the booking. */
|
|
7955
|
+
inFlightSince: string;
|
|
7956
|
+
}
|
|
7792
7957
|
/**
|
|
7793
7958
|
* The mode in force. `shadow` when nothing has been configured — the gate's fail-closed default, not a stored value.
|
|
7794
7959
|
*/
|
|
@@ -8133,6 +8298,16 @@ export interface AppliedCouponSummaryDto {
|
|
|
8133
8298
|
/** What the benefit took off, in minor currency units, measured on the whole part of the invoice line it applied to — not on this row alone. A line billed as several rows (one per constant-volume span) repeats the entry on each row of that part, so do not sum it across rows; the rows' own amounts are already net of it. */
|
|
8134
8299
|
discountAmountMinor: number;
|
|
8135
8300
|
}
|
|
8301
|
+
/**
|
|
8302
|
+
* What kind of row this is: charge = an ordinary charge; carried = a correction of an earlier month; clawback = a campaign benefit charged back; manual = a row staff added by hand, billed as entered. A credit note row has the kind of the row it credits.
|
|
8303
|
+
*/
|
|
8304
|
+
export type InvoiceRowDtoRowKind = typeof InvoiceRowDtoRowKind[keyof typeof InvoiceRowDtoRowKind];
|
|
8305
|
+
export declare const InvoiceRowDtoRowKind: {
|
|
8306
|
+
readonly charge: "charge";
|
|
8307
|
+
readonly carried: "carried";
|
|
8308
|
+
readonly clawback: "clawback";
|
|
8309
|
+
readonly manual: "manual";
|
|
8310
|
+
};
|
|
8136
8311
|
export interface InvoiceRowDto {
|
|
8137
8312
|
invoiceRowId: string;
|
|
8138
8313
|
/** @nullable */
|
|
@@ -8156,6 +8331,8 @@ export interface InvoiceRowDto {
|
|
|
8156
8331
|
freeText: string | null;
|
|
8157
8332
|
/** Coupon benefits that reduced this row. Empty when none did. */
|
|
8158
8333
|
appliedCoupons: AppliedCouponSummaryDto[];
|
|
8334
|
+
/** What kind of row this is: charge = an ordinary charge; carried = a correction of an earlier month; clawback = a campaign benefit charged back; manual = a row staff added by hand, billed as entered. A credit note row has the kind of the row it credits. */
|
|
8335
|
+
rowKind: InvoiceRowDtoRowKind;
|
|
8159
8336
|
/**
|
|
8160
8337
|
* Billing period start, for a row priced from a real period (e.g. a subscription month). Null for a point-in-time row (see servicedAt) or a correction row (credit_note/adjustment), which carries no period.
|
|
8161
8338
|
* @nullable
|
|
@@ -8244,6 +8421,49 @@ export interface ReprocessInvoiceFromBasisResponseDto {
|
|
|
8244
8421
|
/** Explains that the replacement invoice is produced asynchronously by the next scheduled aggregation run, not by this call. */
|
|
8245
8422
|
note: string;
|
|
8246
8423
|
}
|
|
8424
|
+
export interface AddInvoiceRowDto {
|
|
8425
|
+
/** The article the row is posted on. */
|
|
8426
|
+
articleId: string;
|
|
8427
|
+
/** Quantity, greater than 0, at most 4 decimals (e.g. "1", "2.5"). */
|
|
8428
|
+
quantity: string;
|
|
8429
|
+
/** The unit the quantity is in. Defaults to `each`. */
|
|
8430
|
+
unitOfMeasureId?: string;
|
|
8431
|
+
/** Price per unit excl. VAT in minor units, greater than 0. The row bills it times the quantity, rounded to the minor unit. Give this or amountExVatMinor, not both. */
|
|
8432
|
+
unitPriceExVatMinor?: number;
|
|
8433
|
+
/** The row's amount excl. VAT in minor units, greater than 0. Give this or unitPriceExVatMinor, not both. */
|
|
8434
|
+
amountExVatMinor?: number;
|
|
8435
|
+
/** VAT rate as a percentage 0–99.9999. Defaults to the article's VAT rate. */
|
|
8436
|
+
vatRate?: string;
|
|
8437
|
+
/**
|
|
8438
|
+
* Text printed on the invoice line after the article name, as entered.
|
|
8439
|
+
* @maxLength 150
|
|
8440
|
+
*/
|
|
8441
|
+
freeText?: string;
|
|
8442
|
+
/** First day the row bills for (YYYY-MM-DD). With periodEnd, or neither: both default to the draft's own invoice period, and a period that would put the row on another invoice is refused. */
|
|
8443
|
+
periodStart?: string;
|
|
8444
|
+
/** Last day the row bills for (YYYY-MM-DD). */
|
|
8445
|
+
periodEnd?: string;
|
|
8446
|
+
/**
|
|
8447
|
+
* Why the row is added (recorded with the edit; never shown to the customer).
|
|
8448
|
+
* @minLength 1
|
|
8449
|
+
* @maxLength 500
|
|
8450
|
+
*/
|
|
8451
|
+
reason: string;
|
|
8452
|
+
}
|
|
8453
|
+
export interface InvoiceEditResponseDto {
|
|
8454
|
+
/** The draft that replaces the edited one (status CREATED), with its rows. Discounts, the minimum monthly fee and RUT hours are computed again over its rows. */
|
|
8455
|
+
invoice: InvoiceDetailDto;
|
|
8456
|
+
/** The edited draft, now CANCELLED. Any further edit of it is refused. */
|
|
8457
|
+
replacedInvoiceId: string;
|
|
8458
|
+
}
|
|
8459
|
+
export interface RemoveInvoiceRowDto {
|
|
8460
|
+
/**
|
|
8461
|
+
* Why the row is removed (recorded with the edit; never shown to the customer).
|
|
8462
|
+
* @minLength 1
|
|
8463
|
+
* @maxLength 500
|
|
8464
|
+
*/
|
|
8465
|
+
reason: string;
|
|
8466
|
+
}
|
|
8247
8467
|
export interface CreditNoteRowDto {
|
|
8248
8468
|
invoiceRowId: string;
|
|
8249
8469
|
/** Amount (excl. VAT, minor units, POSITIVE magnitude) to refund off this row. The service writes it as a negative credit-note row. */
|
|
@@ -12234,6 +12454,19 @@ export interface SimulationResultDto {
|
|
|
12234
12454
|
/** This event's cutover mode for this tenant (05 §12 steps 4-5). `live` — the pipeline sends. `shadow` — it fans out and renders, then settles `skipped_shadow` without sending; the legacy message-service is still the system of record. `off` — Phase A discards the event and none of the verdicts above are written at all. Defaults to `shadow` when nobody has ruled on the event. */
|
|
12235
12455
|
eventMode: SimulationResultDtoEventMode;
|
|
12236
12456
|
}
|
|
12457
|
+
export interface TenantGoodsTranslationDto {
|
|
12458
|
+
name: string;
|
|
12459
|
+
/**
|
|
12460
|
+
* Null when this locale has no description of its own: show the SKU's `description`.
|
|
12461
|
+
* @nullable
|
|
12462
|
+
*/
|
|
12463
|
+
description: string | null;
|
|
12464
|
+
}
|
|
12465
|
+
export interface TenantGoodsTranslationsDto {
|
|
12466
|
+
'sv-SE'?: TenantGoodsTranslationDto;
|
|
12467
|
+
'en-GB'?: TenantGoodsTranslationDto;
|
|
12468
|
+
'fi-FI'?: TenantGoodsTranslationDto;
|
|
12469
|
+
}
|
|
12237
12470
|
/**
|
|
12238
12471
|
* @nullable
|
|
12239
12472
|
*/
|
|
@@ -12248,6 +12481,8 @@ export interface TenantGoodsDto {
|
|
|
12248
12481
|
name: string;
|
|
12249
12482
|
/** @nullable */
|
|
12250
12483
|
description?: string | null;
|
|
12484
|
+
/** The SKU's text per locale, keyed by BCP-47 tag (sv-SE, en-GB, fi-FI). `name` and `description` are the default: show `translations[locale]?.name ?? name` and `translations[locale]?.description ?? description`, each field on its own. `{}` when the SKU has no translations. */
|
|
12485
|
+
translations: TenantGoodsTranslationsDto;
|
|
12251
12486
|
/**
|
|
12252
12487
|
* The SKU's price ex VAT as a decimal string, read from its pricing rule: the open-ended rule, which is the latest price set even when it starts in the future. Null when the SKU has no open-ended price.
|
|
12253
12488
|
* @nullable
|
|
@@ -12286,6 +12521,23 @@ export interface TenantGoodsDto {
|
|
|
12286
12521
|
createdAt: string;
|
|
12287
12522
|
updatedAt: string;
|
|
12288
12523
|
}
|
|
12524
|
+
export interface TenantGoodsTranslationInputDto {
|
|
12525
|
+
/** The SKU's name in this locale. */
|
|
12526
|
+
name: string;
|
|
12527
|
+
/**
|
|
12528
|
+
* The SKU's description in this locale. Omitted, null or blank stores none, so the SKU's own `description` is shown.
|
|
12529
|
+
* @nullable
|
|
12530
|
+
*/
|
|
12531
|
+
description?: string | null;
|
|
12532
|
+
}
|
|
12533
|
+
export interface TenantGoodsTranslationsInputDto {
|
|
12534
|
+
/** @nullable */
|
|
12535
|
+
'sv-SE'?: TenantGoodsTranslationInputDto | null;
|
|
12536
|
+
/** @nullable */
|
|
12537
|
+
'en-GB'?: TenantGoodsTranslationInputDto | null;
|
|
12538
|
+
/** @nullable */
|
|
12539
|
+
'fi-FI'?: TenantGoodsTranslationInputDto | null;
|
|
12540
|
+
}
|
|
12289
12541
|
/**
|
|
12290
12542
|
* Operational hints only.
|
|
12291
12543
|
*/
|
|
@@ -12297,6 +12549,8 @@ export interface CreateTenantGoodsDto {
|
|
|
12297
12549
|
code: string;
|
|
12298
12550
|
name: string;
|
|
12299
12551
|
description?: string;
|
|
12552
|
+
/** The name and description per locale (sv-SE, en-GB, fi-FI); `name` and `description` above stay the default for a locale with none. Defaults to none. */
|
|
12553
|
+
translations?: TenantGoodsTranslationsInputDto;
|
|
12300
12554
|
/**
|
|
12301
12555
|
* Price per unit ex VAT, in minor units (öre/cent). 0 is allowed — a free item still needs a rule so the sale produces an invoice line.
|
|
12302
12556
|
* @minimum 0
|
|
@@ -12340,6 +12594,8 @@ export type UpdateTenantGoodsDtoMetadata = {
|
|
|
12340
12594
|
export interface UpdateTenantGoodsDto {
|
|
12341
12595
|
name?: string;
|
|
12342
12596
|
description?: string;
|
|
12597
|
+
/** Replaces the SKU's per-locale texts WHOLE: a locale left out loses its entry, and `{}` removes them all. Omitted leaves them alone. */
|
|
12598
|
+
translations?: TenantGoodsTranslationsInputDto;
|
|
12343
12599
|
/**
|
|
12344
12600
|
* New price per unit ex VAT in minor units. Equal to the current price is a no-op; different closes the live rule's window and opens a new one.
|
|
12345
12601
|
* @minimum 0
|
|
@@ -12493,6 +12749,8 @@ export interface CheckoutMerchandiseDto {
|
|
|
12493
12749
|
name: string;
|
|
12494
12750
|
/** @nullable */
|
|
12495
12751
|
description?: string | null;
|
|
12752
|
+
/** The SKU's text per locale, keyed by BCP-47 tag (sv-SE, en-GB, fi-FI). `name` and `description` are the default: show `translations[locale]?.name ?? name` and `translations[locale]?.description ?? description`, each field on its own. `{}` when the SKU has no translations. */
|
|
12753
|
+
translations: TenantGoodsTranslationsDto;
|
|
12496
12754
|
/**
|
|
12497
12755
|
* Price ex VAT as a decimal string: what the SKU's pricing rule charges today, in currencyCode. Null when no price is in force today.
|
|
12498
12756
|
* @nullable
|
|
@@ -12529,6 +12787,8 @@ export interface MerchandiseEstimateLineDto {
|
|
|
12529
12787
|
name: string;
|
|
12530
12788
|
/** @nullable */
|
|
12531
12789
|
description?: string | null;
|
|
12790
|
+
/** The SKU's text per locale, keyed by BCP-47 tag (sv-SE, en-GB, fi-FI). `name` and `description` are the default: show `translations[locale]?.name ?? name` and `translations[locale]?.description ?? description`, each field on its own. `{}` when the SKU has no translations. */
|
|
12791
|
+
translations: TenantGoodsTranslationsDto;
|
|
12532
12792
|
/**
|
|
12533
12793
|
* Price ex VAT as a decimal string: what the SKU's pricing rule charges today, in currencyCode. Null when no price is in force today.
|
|
12534
12794
|
* @nullable
|
|
@@ -12915,6 +13175,19 @@ export type SalesOrdersControllerGetPickingRouteV1Params = {
|
|
|
12915
13175
|
*/
|
|
12916
13176
|
includeHandled?: string;
|
|
12917
13177
|
};
|
|
13178
|
+
export type OrderAuditControllerListV1Params = {
|
|
13179
|
+
/**
|
|
13180
|
+
* Max rows to return (1–100).
|
|
13181
|
+
* @minimum 1
|
|
13182
|
+
* @maximum 100
|
|
13183
|
+
*/
|
|
13184
|
+
limit?: number;
|
|
13185
|
+
/**
|
|
13186
|
+
* Rows to skip.
|
|
13187
|
+
* @minimum 0
|
|
13188
|
+
*/
|
|
13189
|
+
offset?: number;
|
|
13190
|
+
};
|
|
12918
13191
|
export type AddressesControllerListV1Params = {
|
|
12919
13192
|
/**
|
|
12920
13193
|
* Max rows to return (1–100).
|
|
@@ -13987,6 +14260,21 @@ export type CouponsControllerListRedemptionsV1Params = {
|
|
|
13987
14260
|
* Restrict the list to one billing account's redemptions.
|
|
13988
14261
|
*/
|
|
13989
14262
|
billingAccountId?: string;
|
|
14263
|
+
/**
|
|
14264
|
+
* Restrict the list to one coupon's redemptions.
|
|
14265
|
+
*/
|
|
14266
|
+
couponId?: string;
|
|
14267
|
+
/**
|
|
14268
|
+
* Restrict the list to redemptions in this status. A coupon's redemption caps count every status except `cancelled`, so for one `couponId` the usage a cap enforces is `total` without `status` minus `total` with `status=cancelled`.
|
|
14269
|
+
*/
|
|
14270
|
+
status?: CouponsControllerListRedemptionsV1Status;
|
|
14271
|
+
};
|
|
14272
|
+
export type CouponsControllerListRedemptionsV1Status = typeof CouponsControllerListRedemptionsV1Status[keyof typeof CouponsControllerListRedemptionsV1Status];
|
|
14273
|
+
export declare const CouponsControllerListRedemptionsV1Status: {
|
|
14274
|
+
readonly active: "active";
|
|
14275
|
+
readonly consumed: "consumed";
|
|
14276
|
+
readonly expired: "expired";
|
|
14277
|
+
readonly cancelled: "cancelled";
|
|
13990
14278
|
};
|
|
13991
14279
|
export type UnitsOfMeasureControllerListUnitsOfMeasureV1Params = {
|
|
13992
14280
|
/**
|