@vindentech/api-client 1.8.0-next.1 → 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.
@@ -8343,6 +8343,11 @@ export interface BillingAccountDto {
8343
8343
  accountingProvider: string;
8344
8344
  /** Payment provider enum. */
8345
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;
8346
8351
  createdAt: string;
8347
8352
  updatedAt: string;
8348
8353
  }
@@ -8415,6 +8420,11 @@ export interface UpdateBillingAccountDto {
8415
8420
  countryCode?: string;
8416
8421
  /** ISO 4217 currency code. */
8417
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;
8418
8428
  }
8419
8429
  export interface InvoiceNowDto {
8420
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. */
@@ -8819,6 +8829,10 @@ export interface TenantBillingConfigDto {
8819
8829
  defaultPaymentTermId: string | null;
8820
8830
  /** @nullable */
8821
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
+ */
8822
8836
  autoChargeEnabled: boolean;
8823
8837
  requiresPricingApproval: boolean;
8824
8838
  /**
@@ -8846,6 +8860,10 @@ export interface UpdateTenantBillingConfigDto {
8846
8860
  defaultPaymentMethodId?: string;
8847
8861
  defaultPaymentTermId?: string;
8848
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
+ */
8849
8867
  autoChargeEnabled?: boolean;
8850
8868
  requiresPricingApproval?: boolean;
8851
8869
  /** The tenant's own legal-entity registration number (e.g. Swedish orgnummer). */
@@ -8873,7 +8891,11 @@ export interface CustomerSubscriptionConfigDto {
8873
8891
  billingAccountId: string;
8874
8892
  /** @nullable */
8875
8893
  billingFrequencyId: string | null;
8876
- /** @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
+ */
8877
8899
  autoChargeEnabled: boolean | null;
8878
8900
  /** @nullable */
8879
8901
  bindingPlanId: string | null;
@@ -8908,6 +8930,10 @@ export interface CreateCustomerSubscriptionConfigDto {
8908
8930
  billingAccountId: string;
8909
8931
  billingFrequencyId?: string;
8910
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
+ */
8911
8937
  autoChargeEnabled?: boolean;
8912
8938
  /** Bigint volume (>= 0). */
8913
8939
  volume?: number;
@@ -8923,6 +8949,10 @@ export interface CreateCustomerSubscriptionConfigDto {
8923
8949
  export interface UpdateCustomerSubscriptionConfigDto {
8924
8950
  billingFrequencyId?: string;
8925
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
+ */
8926
8956
  autoChargeEnabled?: boolean;
8927
8957
  /** Bigint volume (>= 0). */
8928
8958
  volume?: number;
@@ -10230,7 +10260,7 @@ export interface PaymentDetailsRequirementDto {
10230
10260
  * @nullable
10231
10261
  */
10232
10262
  paymentMethodCode: string | null;
10233
- /** 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). */
10234
10264
  isAutoChargeable: boolean;
10235
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. */
10236
10266
  hasPaymentInstrument: boolean;