@vindentech/api-client 1.8.0-next.0 → 1.8.0-next.2

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.
@@ -6154,10 +6154,20 @@ export interface WarehouseOrderProductDto {
6154
6154
  /** The line's warehouse_order_product_status value. */
6155
6155
  status: string;
6156
6156
  /**
6157
- * Referenced product's catalogue name. Null when the product is not visible in the caller's RLS scope (e.g. a warehouse operator viewing an inbound line for a catalogue product with no goods yet).
6157
+ * Referenced product's own name (public.product.name). Null when the product has no name: an item checked in at the customer has none until the customer names it. On GET /v1/warehouse-orders/:id it is also null when the product is not visible in the caller's RLS scope (e.g. a warehouse operator viewing an inbound line for a catalogue product with no goods yet); the command responses that return this detail read the product as tenant-wide staff, so it is never null for that reason there. A client labels the line by this name, else the category's name in the reader's language (`categoryId`, GET /v1/categories), else `placeholderName`, and treats a blank value as absent.
6158
6158
  * @nullable
6159
6159
  */
6160
6160
  productName: string | null;
6161
+ /**
6162
+ * The text the referenced product was checked in with (public.product.placeholder_name): its label when it has neither a name nor a category. Same visibility caveat as productName.
6163
+ * @nullable
6164
+ */
6165
+ placeholderName: string | null;
6166
+ /**
6167
+ * Referenced product's public.category id. Null when it has none, and under the same visibility caveat as productName.
6168
+ * @nullable
6169
+ */
6170
+ categoryId: number | null;
6161
6171
  /**
6162
6172
  * Referenced product's primary image storage key (same visibility caveat as productName).
6163
6173
  * @nullable
@@ -8333,6 +8343,11 @@ export interface BillingAccountDto {
8333
8343
  accountingProvider: string;
8334
8344
  /** Payment provider enum. */
8335
8345
  paymentProvider: string;
8346
+ /**
8347
+ * The account's own payment method, or null to use the tenant default (`defaultPaymentMethodId`). A Stripe-collected invoice's saved card is charged on its due date when this method is auto-chargeable.
8348
+ * @nullable
8349
+ */
8350
+ paymentMethodId: string | null;
8336
8351
  createdAt: string;
8337
8352
  updatedAt: string;
8338
8353
  }
@@ -8405,6 +8420,11 @@ export interface UpdateBillingAccountDto {
8405
8420
  countryCode?: string;
8406
8421
  /** ISO 4217 currency code. */
8407
8422
  currencyCode?: string;
8423
+ /**
8424
+ * Pin the account to one of the tenant's payment methods. `null` clears it, so the account uses the tenant default. An invoice keeps the method it was sent with; a Stripe-collected invoice's saved card is charged on its due date when that method is auto-chargeable.
8425
+ * @nullable
8426
+ */
8427
+ paymentMethodId?: string | null;
8408
8428
  }
8409
8429
  export interface InvoiceNowDto {
8410
8430
  /** The last day whose charges are invoiced (YYYY-MM-DD), in the tenant's billing calendar. Must be before today there; defaults to yesterday. */
@@ -8809,6 +8829,10 @@ export interface TenantBillingConfigDto {
8809
8829
  defaultPaymentTermId: string | null;
8810
8830
  /** @nullable */
8811
8831
  defaultBillingFrequencyId: string | null;
8832
+ /**
8833
+ * Not read. Whether a saved card is charged on an invoice's due date is decided by the payment method (`defaultPaymentMethodId`, or the account's own) and its `isAutoChargeable`.
8834
+ * @deprecated
8835
+ */
8812
8836
  autoChargeEnabled: boolean;
8813
8837
  requiresPricingApproval: boolean;
8814
8838
  /**
@@ -8836,6 +8860,10 @@ export interface UpdateTenantBillingConfigDto {
8836
8860
  defaultPaymentMethodId?: string;
8837
8861
  defaultPaymentTermId?: string;
8838
8862
  defaultBillingFrequencyId?: string;
8863
+ /**
8864
+ * Not read. Whether a saved card is charged on an invoice's due date is decided by the payment method (`defaultPaymentMethodId`, or the account's own) and its `isAutoChargeable`.
8865
+ * @deprecated
8866
+ */
8839
8867
  autoChargeEnabled?: boolean;
8840
8868
  requiresPricingApproval?: boolean;
8841
8869
  /** The tenant's own legal-entity registration number (e.g. Swedish orgnummer). */
@@ -8863,7 +8891,11 @@ export interface CustomerSubscriptionConfigDto {
8863
8891
  billingAccountId: string;
8864
8892
  /** @nullable */
8865
8893
  billingFrequencyId: string | null;
8866
- /** @nullable */
8894
+ /**
8895
+ * Not read. Whether a saved card is charged on an invoice's due date is decided by the billing account's payment method (`paymentMethodId` on the account, else the tenant default) and its `isAutoChargeable`.
8896
+ * @deprecated
8897
+ * @nullable
8898
+ */
8867
8899
  autoChargeEnabled: boolean | null;
8868
8900
  /** @nullable */
8869
8901
  bindingPlanId: string | null;
@@ -8898,6 +8930,10 @@ export interface CreateCustomerSubscriptionConfigDto {
8898
8930
  billingAccountId: string;
8899
8931
  billingFrequencyId?: string;
8900
8932
  bindingPlanId?: string;
8933
+ /**
8934
+ * Not read. Whether a saved card is charged on an invoice's due date is decided by the billing account's payment method (`paymentMethodId` on the account, else the tenant default) and its `isAutoChargeable`.
8935
+ * @deprecated
8936
+ */
8901
8937
  autoChargeEnabled?: boolean;
8902
8938
  /** Bigint volume (>= 0). */
8903
8939
  volume?: number;
@@ -8913,6 +8949,10 @@ export interface CreateCustomerSubscriptionConfigDto {
8913
8949
  export interface UpdateCustomerSubscriptionConfigDto {
8914
8950
  billingFrequencyId?: string;
8915
8951
  bindingPlanId?: string;
8952
+ /**
8953
+ * Not read. Whether a saved card is charged on an invoice's due date is decided by the billing account's payment method (`paymentMethodId` on the account, else the tenant default) and its `isAutoChargeable`.
8954
+ * @deprecated
8955
+ */
8916
8956
  autoChargeEnabled?: boolean;
8917
8957
  /** Bigint volume (>= 0). */
8918
8958
  volume?: number;
@@ -10220,7 +10260,7 @@ export interface PaymentDetailsRequirementDto {
10220
10260
  * @nullable
10221
10261
  */
10222
10262
  paymentMethodCode: string | null;
10223
- /** Whether the resolved payment method charges the customer automatically. */
10263
+ /** Whether the resolved payment method charges the customer automatically: the saved card is charged on each invoice's due date (`invoiceDueDate` on the invoice). */
10224
10264
  isAutoChargeable: boolean;
10225
10265
  /** Whether the organization has at least one payment instrument that has not been removed. Card expiry is deliberately not considered — the provider keeps charging a card past its printed expiry once its updater has refreshed it. */
10226
10266
  hasPaymentInstrument: boolean;