@retaila/shared-types 2.0.24 → 2.0.26
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/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -202,6 +202,13 @@ interface AccountBillingProfile {
|
|
|
202
202
|
taxId?: string | null;
|
|
203
203
|
address?: string | null;
|
|
204
204
|
billingContactEmail?: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* Whether VAT (IVA) is charged/invoiced on top of service amounts.
|
|
207
|
+
* Service plan amounts in the system are always stored net (sin IVA); this flag is for documents and UI.
|
|
208
|
+
*/
|
|
209
|
+
invoiceVat?: boolean | null;
|
|
210
|
+
/** VAT rate when `invoiceVat` is true (e.g. 22 for Uruguay). Percent 0–100. */
|
|
211
|
+
vatPercent?: number | null;
|
|
205
212
|
}
|
|
206
213
|
interface Account {
|
|
207
214
|
id: string;
|
|
@@ -980,7 +987,7 @@ interface Payment {
|
|
|
980
987
|
canRefund: boolean;
|
|
981
988
|
};
|
|
982
989
|
}
|
|
983
|
-
type PaymentProviderKey = 'MERCADOPAGO' | 'MERCADOPAGO_MARKETPLACE' | 'PLEXO' | 'MANUAL_PAYMENT';
|
|
990
|
+
type PaymentProviderKey = 'MERCADOPAGO' | 'MERCADOPAGO_MARKETPLACE' | 'PLEXO' | 'MANUAL_PAYMENT' | 'PAYPAL';
|
|
984
991
|
interface PaymentProviderContext {
|
|
985
992
|
data: Record<string, unknown>;
|
|
986
993
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -202,6 +202,13 @@ interface AccountBillingProfile {
|
|
|
202
202
|
taxId?: string | null;
|
|
203
203
|
address?: string | null;
|
|
204
204
|
billingContactEmail?: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* Whether VAT (IVA) is charged/invoiced on top of service amounts.
|
|
207
|
+
* Service plan amounts in the system are always stored net (sin IVA); this flag is for documents and UI.
|
|
208
|
+
*/
|
|
209
|
+
invoiceVat?: boolean | null;
|
|
210
|
+
/** VAT rate when `invoiceVat` is true (e.g. 22 for Uruguay). Percent 0–100. */
|
|
211
|
+
vatPercent?: number | null;
|
|
205
212
|
}
|
|
206
213
|
interface Account {
|
|
207
214
|
id: string;
|
|
@@ -980,7 +987,7 @@ interface Payment {
|
|
|
980
987
|
canRefund: boolean;
|
|
981
988
|
};
|
|
982
989
|
}
|
|
983
|
-
type PaymentProviderKey = 'MERCADOPAGO' | 'MERCADOPAGO_MARKETPLACE' | 'PLEXO' | 'MANUAL_PAYMENT';
|
|
990
|
+
type PaymentProviderKey = 'MERCADOPAGO' | 'MERCADOPAGO_MARKETPLACE' | 'PLEXO' | 'MANUAL_PAYMENT' | 'PAYPAL';
|
|
984
991
|
interface PaymentProviderContext {
|
|
985
992
|
data: Record<string, unknown>;
|
|
986
993
|
}
|