@vindentech/api-client 2.0.0-next.12 → 2.0.0-next.13

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.
@@ -1578,6 +1578,31 @@ export interface OrganizationOwnerDto {
1578
1578
  /** @nullable */
1579
1579
  phone: string | null;
1580
1580
  }
1581
+ export interface OrganizationPaymentMethodDto {
1582
+ /** The tenant's code for the method, e.g. `manual_invoice` or `stripe_card`. */
1583
+ code: string;
1584
+ /** The method's name, as the tenant labels it. */
1585
+ displayName: string;
1586
+ /** True when invoices are charged automatically (a card), false when the customer pays an invoice they receive. */
1587
+ isAutoChargeable: boolean;
1588
+ }
1589
+ export interface OrganizationContractSummaryDto {
1590
+ /**
1591
+ * The binding plan the contract is on. null for a contract that names no plan (older contracts carry only `bindingType`).
1592
+ * @nullable
1593
+ */
1594
+ bindingPlanId: string | null;
1595
+ /**
1596
+ * The binding plan's code.
1597
+ * @nullable
1598
+ */
1599
+ bindingType: string | null;
1600
+ /**
1601
+ * The binding plan's name. null when the contract names no plan.
1602
+ * @nullable
1603
+ */
1604
+ name: string | null;
1605
+ }
1581
1606
  export type OrganizationListItemDtoType = typeof OrganizationListItemDtoType[keyof typeof OrganizationListItemDtoType];
1582
1607
  export declare const OrganizationListItemDtoType: {
1583
1608
  readonly business: "business";
@@ -1640,6 +1665,36 @@ export interface OrganizationListItemDto {
1640
1665
  * @nullable
1641
1666
  */
1642
1667
  invoiceRecipientEmail: string | null;
1668
+ /**
1669
+ * The customer's orders (jobs), every status: the `total` of `GET /v1/orders?organizationId=…`. null for a caller without `order:read` (org-billing).
1670
+ * @nullable
1671
+ */
1672
+ ordersCount: number | null;
1673
+ /**
1674
+ * The customer's orders not yet in a final status (completed, cancelled or failed): the orders that keep a customer from being deleted. `openOrdersCount > 0` is a customer with active orders. null for a caller without `order:read`.
1675
+ * @nullable
1676
+ */
1677
+ openOrdersCount: number | null;
1678
+ /**
1679
+ * When the customer's newest order was created, the time the orders list sorts by. null when the customer has no orders, and for a caller without `order:read` (`ordersCount` is then null too).
1680
+ * @nullable
1681
+ */
1682
+ lastOrderAt: string | null;
1683
+ /**
1684
+ * Units of the customer's goods in storage: the `units` of `GET /v1/products/stats?organizationId=…&status=IN_STORAGE`, the number the customer profile shows. Goods awaiting disposal are not counted, so a customer at 0 can still be refused deletion for goods on the shelf. null for a caller without `product:read` (org-billing).
1685
+ * @nullable
1686
+ */
1687
+ inStorageUnits: number | null;
1688
+ /**
1689
+ * How the customer pays: their billing account's payment method, else the tenant's default. null when the customer has no billing account or the tenant no default, and for a caller without `billingaccount:read`.
1690
+ * @nullable
1691
+ */
1692
+ paymentMethod: OrganizationPaymentMethodDto | null;
1693
+ /**
1694
+ * The customer's active contract (binding), as `GET /v1/organizations/:id/contract` returns it. null when none is active, and for a caller without `organizationcontract:read` (tenant-admin and operations-manager hold it).
1695
+ * @nullable
1696
+ */
1697
+ contract: OrganizationContractSummaryDto | null;
1643
1698
  }
1644
1699
  export interface PaginatedOrganizationsDto {
1645
1700
  /** The page of rows. */
@@ -14941,6 +14996,11 @@ export type OrganizationsControllerListV1Params = {
14941
14996
  * Filter by the organization's preferred warehouse (`preferredWarehouseId`), not by where its goods are stored.
14942
14997
  */
14943
14998
  warehouseId?: string;
14999
+ /**
15000
+ * Filter by how the customer pays: the code of their billing account's payment method, else the tenant's default (as `paymentMethod.code` on each row). A customer with no billing account never matches. Requires `billingaccount:read`: anyone else is refused with 403 `payment_method_filter_requires_billing_account_read`.
15001
+ * @pattern ^[a-z0-9_]{1,64}$
15002
+ */
15003
+ paymentMethod?: string;
14944
15004
  /**
14945
15005
  * Sort key. Rows that tie on it are ordered by organization id, in the same direction.
14946
15006
  */
@@ -15003,6 +15063,11 @@ export type OrganizationsControllerStatsV1Params = {
15003
15063
  * Filter by the organization's preferred warehouse (`preferredWarehouseId`), not by where its goods are stored.
15004
15064
  */
15005
15065
  warehouseId?: string;
15066
+ /**
15067
+ * Filter by how the customer pays: the code of their billing account's payment method, else the tenant's default (as `paymentMethod.code` on each row). A customer with no billing account never matches. Requires `billingaccount:read`: anyone else is refused with 403 `payment_method_filter_requires_billing_account_read`.
15068
+ * @pattern ^[a-z0-9_]{1,64}$
15069
+ */
15070
+ paymentMethod?: string;
15006
15071
  };
15007
15072
  export type OrganizationsControllerStatsV1Type = typeof OrganizationsControllerStatsV1Type[keyof typeof OrganizationsControllerStatsV1Type];
15008
15073
  export declare const OrganizationsControllerStatsV1Type: {