@vindentech/api-client 0.3.0-next.82 → 0.3.0-next.84
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/_permissions.d.ts +25 -1
- package/dist/generated/_permissions.d.ts.map +1 -1
- package/dist/generated/_permissions.js +6 -0
- package/dist/generated/_permissions.js.map +1 -1
- package/dist/generated/billing-accounts/billing-accounts.d.ts +30 -1
- package/dist/generated/billing-accounts/billing-accounts.d.ts.map +1 -1
- package/dist/generated/billing-accounts/billing-accounts.js +24 -0
- package/dist/generated/billing-accounts/billing-accounts.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 +219 -3
- package/dist/generated/index.schemas.d.ts.map +1 -1
- package/dist/generated/index.schemas.js +42 -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 +55 -1
- package/dist/generated/me/me.d.ts.map +1 -1
- package/dist/generated/me/me.js +37 -0
- package/dist/generated/me/me.js.map +1 -1
- 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
|
@@ -2097,6 +2097,11 @@ export interface MeOrganizationDto {
|
|
|
2097
2097
|
* @nullable
|
|
2098
2098
|
*/
|
|
2099
2099
|
countryCode: string | null;
|
|
2100
|
+
/**
|
|
2101
|
+
* The language this account's order emails and invoices are written in. null = not stated: the language follows the billing account's country (SE → sv-SE, FI → fi-FI, otherwise en-GB).
|
|
2102
|
+
* @nullable
|
|
2103
|
+
*/
|
|
2104
|
+
preferredLocale: string | null;
|
|
2100
2105
|
/** Service tier of the account. PRO is the 3PL / Receive & Distribute tier; CORE is the default. A display hint for client-side feature gating only — no endpoint enforces it server-side, so a CORE account can still reach PRO-tier routes it otherwise has permission for. */
|
|
2101
2106
|
serviceTier: MeOrganizationDtoServiceTier;
|
|
2102
2107
|
/**
|
|
@@ -2214,6 +2219,15 @@ export interface OnboardingStatusDto {
|
|
|
2214
2219
|
/** When status is token_refresh_required, the client must perform an OIDC refresh, replace both tokens, and call status again. A page reload is not a refresh. */
|
|
2215
2220
|
tokenRefreshRequired: boolean;
|
|
2216
2221
|
}
|
|
2222
|
+
/**
|
|
2223
|
+
* The language the customer chose: stored as the new organization's preferredLocale, the language of its order emails and invoices. Omitted means not stated, and the language follows the billing country. Applied only when the organization is created; change it later with PATCH /v1/me/organization.
|
|
2224
|
+
*/
|
|
2225
|
+
export type OnboardMeDtoPreferredLocale = typeof OnboardMeDtoPreferredLocale[keyof typeof OnboardMeDtoPreferredLocale];
|
|
2226
|
+
export declare const OnboardMeDtoPreferredLocale: {
|
|
2227
|
+
readonly 'sv-SE': "sv-SE";
|
|
2228
|
+
readonly 'en-GB': "en-GB";
|
|
2229
|
+
readonly 'fi-FI': "fi-FI";
|
|
2230
|
+
};
|
|
2217
2231
|
export interface OnboardMeDto {
|
|
2218
2232
|
/** Terms-of-service version the caller accepted. */
|
|
2219
2233
|
termsVersion: string;
|
|
@@ -2224,6 +2238,13 @@ export interface OnboardMeDto {
|
|
|
2224
2238
|
* @maxLength 200
|
|
2225
2239
|
*/
|
|
2226
2240
|
displayName?: string;
|
|
2241
|
+
/** The language the customer chose: stored as the new organization's preferredLocale, the language of its order emails and invoices. Omitted means not stated, and the language follows the billing country. Applied only when the organization is created; change it later with PATCH /v1/me/organization. */
|
|
2242
|
+
preferredLocale?: OnboardMeDtoPreferredLocale;
|
|
2243
|
+
/**
|
|
2244
|
+
* The customer's billing country, ISO-3166-1 alpha-2 in uppercase: stored as the new organization's invoice country and its billing account's country. Omitted means the tenant's own country. Applied only when the organization is created; change it later with PATCH /v1/billing/invoice-details.
|
|
2245
|
+
* @pattern ^[A-Z]{2}$
|
|
2246
|
+
*/
|
|
2247
|
+
countryCode?: string;
|
|
2227
2248
|
}
|
|
2228
2249
|
/**
|
|
2229
2250
|
* Opaque per-user preferences object (JSON object, ≤ 16 KB serialized); null clears it.
|
|
@@ -2262,6 +2283,40 @@ export interface UpdateMeDto {
|
|
|
2262
2283
|
*/
|
|
2263
2284
|
preferences?: UpdateMeDtoPreferences;
|
|
2264
2285
|
}
|
|
2286
|
+
/**
|
|
2287
|
+
* The language this account's order emails and invoices are written in. null = not stated: the language follows the billing account's country (SE → sv-SE, FI → fi-FI, otherwise en-GB).
|
|
2288
|
+
* @nullable
|
|
2289
|
+
*/
|
|
2290
|
+
export type UpdateMeOrganizationDtoPreferredLocale = typeof UpdateMeOrganizationDtoPreferredLocale[keyof typeof UpdateMeOrganizationDtoPreferredLocale] | null;
|
|
2291
|
+
export declare const UpdateMeOrganizationDtoPreferredLocale: {
|
|
2292
|
+
readonly 'sv-SE': "sv-SE";
|
|
2293
|
+
readonly 'en-GB': "en-GB";
|
|
2294
|
+
readonly 'fi-FI': "fi-FI";
|
|
2295
|
+
};
|
|
2296
|
+
export interface UpdateMeOrganizationDto {
|
|
2297
|
+
/**
|
|
2298
|
+
* The language this account's order emails and invoices are written in. null = not stated: the language follows the billing account's country (SE → sv-SE, FI → fi-FI, otherwise en-GB).
|
|
2299
|
+
* @nullable
|
|
2300
|
+
*/
|
|
2301
|
+
preferredLocale?: UpdateMeOrganizationDtoPreferredLocale;
|
|
2302
|
+
}
|
|
2303
|
+
/**
|
|
2304
|
+
* 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.
|
|
2305
|
+
*/
|
|
2306
|
+
export type CloseAccountResultDtoKeycloakSyncStatus = typeof CloseAccountResultDtoKeycloakSyncStatus[keyof typeof CloseAccountResultDtoKeycloakSyncStatus];
|
|
2307
|
+
export declare const CloseAccountResultDtoKeycloakSyncStatus: {
|
|
2308
|
+
readonly synced: "synced";
|
|
2309
|
+
readonly failed: "failed";
|
|
2310
|
+
readonly not_configured: "not_configured";
|
|
2311
|
+
};
|
|
2312
|
+
export interface CloseAccountResultDto {
|
|
2313
|
+
/** The caller's personal organization. It is kept, not deleted, so storage still owed is billed. */
|
|
2314
|
+
organizationId: string;
|
|
2315
|
+
/** When the account was closed. */
|
|
2316
|
+
closedAt: string;
|
|
2317
|
+
/** 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. */
|
|
2318
|
+
keycloakSyncStatus: CloseAccountResultDtoKeycloakSyncStatus;
|
|
2319
|
+
}
|
|
2265
2320
|
export interface UpdateIdentityNumberDto {
|
|
2266
2321
|
/** 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. */
|
|
2267
2322
|
personalIdentityNumber: string;
|
|
@@ -2442,6 +2497,8 @@ export interface CartLocationDto {
|
|
|
2442
2497
|
stairwell: string | null;
|
|
2443
2498
|
/** @nullable */
|
|
2444
2499
|
apartmentNumber: string | null;
|
|
2500
|
+
/** @nullable */
|
|
2501
|
+
transportInstructions: string | null;
|
|
2445
2502
|
}
|
|
2446
2503
|
/**
|
|
2447
2504
|
* @nullable
|
|
@@ -2484,6 +2541,8 @@ export interface CartDeliveryLocationDto {
|
|
|
2484
2541
|
/** @nullable */
|
|
2485
2542
|
apartmentNumber: string | null;
|
|
2486
2543
|
/** @nullable */
|
|
2544
|
+
transportInstructions: string | null;
|
|
2545
|
+
/** @nullable */
|
|
2487
2546
|
servicePointId: string | null;
|
|
2488
2547
|
/** @nullable */
|
|
2489
2548
|
servicePointProvider: CartDeliveryLocationDtoServicePointProvider;
|
|
@@ -2927,6 +2986,12 @@ export interface CartLocationInputDto {
|
|
|
2927
2986
|
* @nullable
|
|
2928
2987
|
*/
|
|
2929
2988
|
apartmentNumber?: string | null;
|
|
2989
|
+
/**
|
|
2990
|
+
* The customer's message to the driver (e.g. call when outside). Copied onto this side's transport legs at placement.
|
|
2991
|
+
* @maxLength 500
|
|
2992
|
+
* @nullable
|
|
2993
|
+
*/
|
|
2994
|
+
transportInstructions?: string | null;
|
|
2930
2995
|
}
|
|
2931
2996
|
/**
|
|
2932
2997
|
* Required alongside servicePointId.
|
|
@@ -2998,7 +3063,13 @@ export interface CartDeliveryLocationInputDto {
|
|
|
2998
3063
|
*/
|
|
2999
3064
|
apartmentNumber?: string | null;
|
|
3000
3065
|
/**
|
|
3001
|
-
*
|
|
3066
|
+
* The customer's message to the driver (e.g. call when outside). Copied onto this side's transport legs at placement.
|
|
3067
|
+
* @maxLength 500
|
|
3068
|
+
* @nullable
|
|
3069
|
+
*/
|
|
3070
|
+
transportInstructions?: string | null;
|
|
3071
|
+
/**
|
|
3072
|
+
* 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.
|
|
3002
3073
|
* @nullable
|
|
3003
3074
|
*/
|
|
3004
3075
|
servicePointId?: string | null;
|
|
@@ -7644,6 +7715,14 @@ export declare const PostiOmaPostiProFailureDtoState: {
|
|
|
7644
7715
|
readonly PARKED: "PARKED";
|
|
7645
7716
|
readonly RETRYING: "RETRYING";
|
|
7646
7717
|
};
|
|
7718
|
+
/**
|
|
7719
|
+
* 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.
|
|
7720
|
+
* @nullable
|
|
7721
|
+
*/
|
|
7722
|
+
export type PostiOmaPostiProFailureDtoReconciledOutcome = typeof PostiOmaPostiProFailureDtoReconciledOutcome[keyof typeof PostiOmaPostiProFailureDtoReconciledOutcome] | null;
|
|
7723
|
+
export declare const PostiOmaPostiProFailureDtoReconciledOutcome: {
|
|
7724
|
+
readonly NOT_CREATED: "NOT_CREATED";
|
|
7725
|
+
};
|
|
7647
7726
|
export interface PostiOmaPostiProFailureDto {
|
|
7648
7727
|
outboxId: string;
|
|
7649
7728
|
/** When the sweep emitted the row. Also the partition key. */
|
|
@@ -7691,8 +7770,18 @@ export interface PostiOmaPostiProFailureDto {
|
|
|
7691
7770
|
* @nullable
|
|
7692
7771
|
*/
|
|
7693
7772
|
inFlightSince: string | null;
|
|
7694
|
-
/** 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. */
|
|
7773
|
+
/** 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. */
|
|
7695
7774
|
cancelledLocally: boolean;
|
|
7775
|
+
/**
|
|
7776
|
+
* 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.
|
|
7777
|
+
* @nullable
|
|
7778
|
+
*/
|
|
7779
|
+
reconciledAt: string | null;
|
|
7780
|
+
/**
|
|
7781
|
+
* 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.
|
|
7782
|
+
* @nullable
|
|
7783
|
+
*/
|
|
7784
|
+
reconciledOutcome: PostiOmaPostiProFailureDtoReconciledOutcome;
|
|
7696
7785
|
}
|
|
7697
7786
|
export interface PostiOmaPostiProFailuresDto {
|
|
7698
7787
|
failures: PostiOmaPostiProFailureDto[];
|
|
@@ -7751,6 +7840,45 @@ export interface PostiOmaPostiProSettleResultDto {
|
|
|
7751
7840
|
*/
|
|
7752
7841
|
externalBookingId: string | null;
|
|
7753
7842
|
}
|
|
7843
|
+
/**
|
|
7844
|
+
* NOT_CREATED — the provider confirmed they hold no freight order for this row. The only outcome this command records.
|
|
7845
|
+
*/
|
|
7846
|
+
export type ReconcilePostiOmaPostiProFailureDtoOutcome = typeof ReconcilePostiOmaPostiProFailureDtoOutcome[keyof typeof ReconcilePostiOmaPostiProFailureDtoOutcome];
|
|
7847
|
+
export declare const ReconcilePostiOmaPostiProFailureDtoOutcome: {
|
|
7848
|
+
readonly NOT_CREATED: "NOT_CREATED";
|
|
7849
|
+
};
|
|
7850
|
+
export interface ReconcilePostiOmaPostiProFailureDto {
|
|
7851
|
+
/** NOT_CREATED — the provider confirmed they hold no freight order for this row. The only outcome this command records. */
|
|
7852
|
+
outcome: ReconcilePostiOmaPostiProFailureDtoOutcome;
|
|
7853
|
+
/** 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. */
|
|
7854
|
+
reason: string;
|
|
7855
|
+
}
|
|
7856
|
+
export type PostiOmaPostiProReconcileResultDtoDirection = typeof PostiOmaPostiProReconcileResultDtoDirection[keyof typeof PostiOmaPostiProReconcileResultDtoDirection];
|
|
7857
|
+
export declare const PostiOmaPostiProReconcileResultDtoDirection: {
|
|
7858
|
+
readonly PICKUP: "PICKUP";
|
|
7859
|
+
readonly MERCHANDISE_DELIVERY: "MERCHANDISE_DELIVERY";
|
|
7860
|
+
readonly DELIVERY: "DELIVERY";
|
|
7861
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
7862
|
+
};
|
|
7863
|
+
export type PostiOmaPostiProReconcileResultDtoOutcome = typeof PostiOmaPostiProReconcileResultDtoOutcome[keyof typeof PostiOmaPostiProReconcileResultDtoOutcome];
|
|
7864
|
+
export declare const PostiOmaPostiProReconcileResultDtoOutcome: {
|
|
7865
|
+
readonly NOT_CREATED: "NOT_CREATED";
|
|
7866
|
+
};
|
|
7867
|
+
export interface PostiOmaPostiProReconcileResultDto {
|
|
7868
|
+
outboxId: string;
|
|
7869
|
+
/** The sweep's idempotency key, unchanged by the reconcile. */
|
|
7870
|
+
eventKey: string;
|
|
7871
|
+
direction: PostiOmaPostiProReconcileResultDtoDirection;
|
|
7872
|
+
/** The order the freight order was sent for. */
|
|
7873
|
+
aggregateId: string;
|
|
7874
|
+
outcome: PostiOmaPostiProReconcileResultDtoOutcome;
|
|
7875
|
+
/** When the outcome was recorded. */
|
|
7876
|
+
reconciledAt: string;
|
|
7877
|
+
/** 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. */
|
|
7878
|
+
carrierBookingId: string;
|
|
7879
|
+
/** When the send that was never answered left the platform — the in-flight stamp this command took off the booking. */
|
|
7880
|
+
inFlightSince: string;
|
|
7881
|
+
}
|
|
7754
7882
|
/**
|
|
7755
7883
|
* The mode in force. `shadow` when nothing has been configured — the gate's fail-closed default, not a stored value.
|
|
7756
7884
|
*/
|
|
@@ -8003,6 +8131,16 @@ export interface UpdateBillingAccountDto {
|
|
|
8003
8131
|
currencyCode?: string;
|
|
8004
8132
|
languageCode?: string;
|
|
8005
8133
|
}
|
|
8134
|
+
export interface InvoiceNowDto {
|
|
8135
|
+
/** The last day whose charges are invoiced (YYYY-MM-DD), in the tenant's billing calendar. Must be before today there; defaults to yesterday. */
|
|
8136
|
+
throughDate?: string;
|
|
8137
|
+
/**
|
|
8138
|
+
* Why the account is invoiced now (recorded in the audit log).
|
|
8139
|
+
* @minLength 1
|
|
8140
|
+
* @maxLength 500
|
|
8141
|
+
*/
|
|
8142
|
+
reason: string;
|
|
8143
|
+
}
|
|
8006
8144
|
export interface InvoiceDto {
|
|
8007
8145
|
invoiceId: string;
|
|
8008
8146
|
tenantId: string;
|
|
@@ -8059,6 +8197,14 @@ export interface InvoiceDto {
|
|
|
8059
8197
|
/** @nullable */
|
|
8060
8198
|
snapshotCorporateIdentityNumber: string | null;
|
|
8061
8199
|
}
|
|
8200
|
+
export interface InvoiceNowResponseDto {
|
|
8201
|
+
/** The draft invoices created (status CREATED), earliest invoice window first: one per window, as the monthly run would cut them. Usually one; more when a month before this one still had charges no invoice held. */
|
|
8202
|
+
invoices: InvoiceDto[];
|
|
8203
|
+
/** The day the account was invoiced through. */
|
|
8204
|
+
throughDate: string;
|
|
8205
|
+
/** The last day through which every charge of the account is priced, and so on these invoices or an earlier one: throughDate, or the day before the earliest charge still being priced. A storage night priced after this call is billed by a later invoice. */
|
|
8206
|
+
coveredThrough: string;
|
|
8207
|
+
}
|
|
8062
8208
|
export interface PaginatedInvoicesDto {
|
|
8063
8209
|
/** The page of rows. */
|
|
8064
8210
|
items: InvoiceDto[];
|
|
@@ -8077,6 +8223,16 @@ export interface AppliedCouponSummaryDto {
|
|
|
8077
8223
|
/** 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. */
|
|
8078
8224
|
discountAmountMinor: number;
|
|
8079
8225
|
}
|
|
8226
|
+
/**
|
|
8227
|
+
* 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.
|
|
8228
|
+
*/
|
|
8229
|
+
export type InvoiceRowDtoRowKind = typeof InvoiceRowDtoRowKind[keyof typeof InvoiceRowDtoRowKind];
|
|
8230
|
+
export declare const InvoiceRowDtoRowKind: {
|
|
8231
|
+
readonly charge: "charge";
|
|
8232
|
+
readonly carried: "carried";
|
|
8233
|
+
readonly clawback: "clawback";
|
|
8234
|
+
readonly manual: "manual";
|
|
8235
|
+
};
|
|
8080
8236
|
export interface InvoiceRowDto {
|
|
8081
8237
|
invoiceRowId: string;
|
|
8082
8238
|
/** @nullable */
|
|
@@ -8100,6 +8256,8 @@ export interface InvoiceRowDto {
|
|
|
8100
8256
|
freeText: string | null;
|
|
8101
8257
|
/** Coupon benefits that reduced this row. Empty when none did. */
|
|
8102
8258
|
appliedCoupons: AppliedCouponSummaryDto[];
|
|
8259
|
+
/** 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. */
|
|
8260
|
+
rowKind: InvoiceRowDtoRowKind;
|
|
8103
8261
|
/**
|
|
8104
8262
|
* 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.
|
|
8105
8263
|
* @nullable
|
|
@@ -8188,6 +8346,49 @@ export interface ReprocessInvoiceFromBasisResponseDto {
|
|
|
8188
8346
|
/** Explains that the replacement invoice is produced asynchronously by the next scheduled aggregation run, not by this call. */
|
|
8189
8347
|
note: string;
|
|
8190
8348
|
}
|
|
8349
|
+
export interface AddInvoiceRowDto {
|
|
8350
|
+
/** The article the row is posted on. */
|
|
8351
|
+
articleId: string;
|
|
8352
|
+
/** Quantity, greater than 0, at most 4 decimals (e.g. "1", "2.5"). */
|
|
8353
|
+
quantity: string;
|
|
8354
|
+
/** The unit the quantity is in. Defaults to `each`. */
|
|
8355
|
+
unitOfMeasureId?: string;
|
|
8356
|
+
/** 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. */
|
|
8357
|
+
unitPriceExVatMinor?: number;
|
|
8358
|
+
/** The row's amount excl. VAT in minor units, greater than 0. Give this or unitPriceExVatMinor, not both. */
|
|
8359
|
+
amountExVatMinor?: number;
|
|
8360
|
+
/** VAT rate as a percentage 0–99.9999. Defaults to the article's VAT rate. */
|
|
8361
|
+
vatRate?: string;
|
|
8362
|
+
/**
|
|
8363
|
+
* Text printed on the invoice line after the article name, as entered.
|
|
8364
|
+
* @maxLength 150
|
|
8365
|
+
*/
|
|
8366
|
+
freeText?: string;
|
|
8367
|
+
/** 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. */
|
|
8368
|
+
periodStart?: string;
|
|
8369
|
+
/** Last day the row bills for (YYYY-MM-DD). */
|
|
8370
|
+
periodEnd?: string;
|
|
8371
|
+
/**
|
|
8372
|
+
* Why the row is added (recorded with the edit; never shown to the customer).
|
|
8373
|
+
* @minLength 1
|
|
8374
|
+
* @maxLength 500
|
|
8375
|
+
*/
|
|
8376
|
+
reason: string;
|
|
8377
|
+
}
|
|
8378
|
+
export interface InvoiceEditResponseDto {
|
|
8379
|
+
/** 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. */
|
|
8380
|
+
invoice: InvoiceDetailDto;
|
|
8381
|
+
/** The edited draft, now CANCELLED. Any further edit of it is refused. */
|
|
8382
|
+
replacedInvoiceId: string;
|
|
8383
|
+
}
|
|
8384
|
+
export interface RemoveInvoiceRowDto {
|
|
8385
|
+
/**
|
|
8386
|
+
* Why the row is removed (recorded with the edit; never shown to the customer).
|
|
8387
|
+
* @minLength 1
|
|
8388
|
+
* @maxLength 500
|
|
8389
|
+
*/
|
|
8390
|
+
reason: string;
|
|
8391
|
+
}
|
|
8191
8392
|
export interface CreditNoteRowDto {
|
|
8192
8393
|
invoiceRowId: string;
|
|
8193
8394
|
/** Amount (excl. VAT, minor units, POSITIVE magnitude) to refund off this row. The service writes it as a negative credit-note row. */
|
|
@@ -10844,7 +11045,7 @@ export interface CreateNotificationRuleDto {
|
|
|
10844
11045
|
/** Defaults to the event's category. Only operational ↔ transactional relabelling is permitted (02 §3). */
|
|
10845
11046
|
category?: CreateNotificationRuleDtoCategory;
|
|
10846
11047
|
/**
|
|
10847
|
-
* NULL
|
|
11048
|
+
* NULL resolves the template per event: the event organization's override, then the tenant default, then the system template, each in the recipient's locale. Enabling an unbound rule needs a published tenant default or system template for the event and channel; an organization override alone does not satisfy it.
|
|
10848
11049
|
* @nullable
|
|
10849
11050
|
*/
|
|
10850
11051
|
notificationTemplateId?: string | null;
|
|
@@ -13931,6 +14132,21 @@ export type CouponsControllerListRedemptionsV1Params = {
|
|
|
13931
14132
|
* Restrict the list to one billing account's redemptions.
|
|
13932
14133
|
*/
|
|
13933
14134
|
billingAccountId?: string;
|
|
14135
|
+
/**
|
|
14136
|
+
* Restrict the list to one coupon's redemptions.
|
|
14137
|
+
*/
|
|
14138
|
+
couponId?: string;
|
|
14139
|
+
/**
|
|
14140
|
+
* 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`.
|
|
14141
|
+
*/
|
|
14142
|
+
status?: CouponsControllerListRedemptionsV1Status;
|
|
14143
|
+
};
|
|
14144
|
+
export type CouponsControllerListRedemptionsV1Status = typeof CouponsControllerListRedemptionsV1Status[keyof typeof CouponsControllerListRedemptionsV1Status];
|
|
14145
|
+
export declare const CouponsControllerListRedemptionsV1Status: {
|
|
14146
|
+
readonly active: "active";
|
|
14147
|
+
readonly consumed: "consumed";
|
|
14148
|
+
readonly expired: "expired";
|
|
14149
|
+
readonly cancelled: "cancelled";
|
|
13934
14150
|
};
|
|
13935
14151
|
export type UnitsOfMeasureControllerListUnitsOfMeasureV1Params = {
|
|
13936
14152
|
/**
|