@tallyui/core 3.19.0 → 3.20.0
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/{command-result-BZd1YFMP.d.ts → command-result-E_nH57WD.d.ts} +11 -1
- package/dist/index.d.ts +2 -2
- package/dist/server/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/types/index.ts +1 -1
- package/src/types/orders.ts +7 -1
- package/src/types/store-settings.ts +8 -0
|
@@ -473,6 +473,8 @@ interface StoreSettings {
|
|
|
473
473
|
calcDiscountsSequentially?: boolean;
|
|
474
474
|
shippingTaxClass?: string;
|
|
475
475
|
taxClassSlugs?: string[];
|
|
476
|
+
/** The tax classes with their display names, in the store's order. Display only. Absent when the connector did not read them. */
|
|
477
|
+
taxClasses?: StoreTaxClass[];
|
|
476
478
|
/** Connector-specific and opaque to the app: what the connector needs to price documents. The app passes it back to the connector unchanged, and never logs it. */
|
|
477
479
|
pricingContext?: Record<string, string>;
|
|
478
480
|
/** Derived, never read by `storeSettings`: the store's `ServerCapabilities.taxRounding`, which `useStoreSettings` fills in (#324). */
|
|
@@ -493,6 +495,11 @@ interface StoreTaxRateLocation {
|
|
|
493
495
|
name: string;
|
|
494
496
|
};
|
|
495
497
|
}
|
|
498
|
+
/** One of the store's tax classes: the key `taxClassSlugs` and `taxRates` use, and the name the store shows for it. */
|
|
499
|
+
interface StoreTaxClass {
|
|
500
|
+
slug: string;
|
|
501
|
+
name: string;
|
|
502
|
+
}
|
|
496
503
|
/** One of the store's tax rates as the backend defines it. The optional fields are set by a backend that has them. */
|
|
497
504
|
interface StoreTaxRate {
|
|
498
505
|
/** The backend's id, as a string. */
|
|
@@ -1250,9 +1257,12 @@ interface ListOrdersQuery {
|
|
|
1250
1257
|
before?: string;
|
|
1251
1258
|
};
|
|
1252
1259
|
}
|
|
1260
|
+
/** One page of an order list: its orders, whether more follow, and how many the whole query matches when the store says. */
|
|
1253
1261
|
interface StoreOrderPage {
|
|
1254
1262
|
orders: StoreOrder[];
|
|
1255
1263
|
hasMore: boolean;
|
|
1264
|
+
/** Every order the query matches across all pages; undefined when the store gives no count. */
|
|
1265
|
+
total?: number;
|
|
1256
1266
|
}
|
|
1257
1267
|
|
|
1258
1268
|
/**
|
|
@@ -1953,4 +1963,4 @@ declare class CommandResultError extends Error {
|
|
|
1953
1963
|
* CommandResultError naming the first bad field. */
|
|
1954
1964
|
declare function parseCommandResult(value: unknown): CommandResult;
|
|
1955
1965
|
|
|
1956
|
-
export { type Customer as $, type AnyCommandEnvelope as A, type BatchTooLargeBody as B, type CommandWarning as C, type DisplayAdvertisement as D, type CommandBatchRequest as E, type CommandBatchResponse as F, type CommandEnvelope as G, type CommandError as H, type IceServer as I, type CommandResult as J, CommandResultError as K, type ListOrdersQuery as L, type Money as M, type CommandServerRefs as N, type OrderFilterField as O, type ProductPrice as P, type CommandStatus as Q, type ResolvedPrice as R, type StockReconcileAdapter as S, type TallyConnector as T, type CommandType as U, type VariantSummary as V, type WooTaxRate as W, type ConnectivityState as X, type ConnectorAuth as Y, type ConnectorSchemas as Z, type ConnectorTraits as _, type ProductTraits as a, type RemoteIdEntry as a$, type CustomerAddress as a0, type CustomerInput as a1, type CustomerPage as a2, type CustomerPatch as a3, CustomerServiceError as a4, type CustomerTaxId as a5, DISPLAY_PAIR_CAPABILITY as a6, type DisplayRecord as a7, type DisplaySignalling as a8, type DisplaySignallingContext as a9, PROTOCOL_HEADER as aA, PROTOCOL_VERSION as aB, type PaymentHardware as aC, type PaymentKind as aD, type PaymentMethodDescriptor as aE, type PaymentMethodKind as aF, type PaymentOfflineMode as aG, type PaymentRounding as aH, type PaymentTipsMode as aI, type PaymentTransport as aJ, type PendingPairing as aK, type ProductCategory as aL, type ReceiptTemplate as aM, type ReceiptTemplateKind as aN, type RegisterApprovalInvalidData as aO, type RegisterApprovalRequiredData as aP, type RegisterClosureSubmitPayload as aQ, type RegisterCommandEnvelope as aR, type RegisterCommandResult as aS, type RegisterCommandType as aT, type RegisterInfo as aU, type RegisterMovementRecordPayload as aV, type RegisterMovementVoidPayload as aW, type RegisterSessionAlreadyOpenData as aX, type RegisterSessionOpenPayload as aY, type RegisterSessionSupersededData as aZ, type RegisterSessionTransitionPayload as a_, DisplaySignallingError as aa, type DisplaySignallingErrorCode as ab, type FailureClass as ac, type FingerprintReconcileAdapter as ad, type IdReconcileAdapter as ae, MAX_COMMANDS_PER_BATCH as af, ORDER_NOTE_MAX as ag, type OrderAddress as ah, type OrderCreateCoupon as ai, type OrderCreateCouponInvalidData as aj, type OrderCreateDisplay as ak, type OrderCreateEnvelope as al, type OrderCreateLine as am, type OrderCreatePayload as an, type OrderCreatePayment as ao, type OrderCreateTaxRate as ap, type OrderCreateTotalMismatchData as aq, type OrderRefundAmountMismatchData as ar, type OrderRefundEnvelope as as, type OrderRefundLine as at, type OrderRefundNoOpenSessionData as au, type OrderRefundOrderStateData as av, type OrderRefundPayload as aw, type OrderRefundQuantityExceedsData as ax, type OrderRefundRejectionCode as ay, type OrderRefundResult as az, type StockLevel as b, type ServerCapabilities as b0, type SignInResult as b1, type SignalMessage as b2, type StockStatus as b3, type StoreOrder as b4, type StoreOrderCharge as b5, type StoreOrderLine as b6, type StoreOrderPage as b7, type StoreOrderPayment as b8, type StoreOrderRefund as b9, type StoreSettings as ba, type StoreSettingsChoice as bb, type
|
|
1966
|
+
export { type Customer as $, type AnyCommandEnvelope as A, type BatchTooLargeBody as B, type CommandWarning as C, type DisplayAdvertisement as D, type CommandBatchRequest as E, type CommandBatchResponse as F, type CommandEnvelope as G, type CommandError as H, type IceServer as I, type CommandResult as J, CommandResultError as K, type ListOrdersQuery as L, type Money as M, type CommandServerRefs as N, type OrderFilterField as O, type ProductPrice as P, type CommandStatus as Q, type ResolvedPrice as R, type StockReconcileAdapter as S, type TallyConnector as T, type CommandType as U, type VariantSummary as V, type WooTaxRate as W, type ConnectivityState as X, type ConnectorAuth as Y, type ConnectorSchemas as Z, type ConnectorTraits as _, type ProductTraits as a, type RemoteIdEntry as a$, type CustomerAddress as a0, type CustomerInput as a1, type CustomerPage as a2, type CustomerPatch as a3, CustomerServiceError as a4, type CustomerTaxId as a5, DISPLAY_PAIR_CAPABILITY as a6, type DisplayRecord as a7, type DisplaySignalling as a8, type DisplaySignallingContext as a9, PROTOCOL_HEADER as aA, PROTOCOL_VERSION as aB, type PaymentHardware as aC, type PaymentKind as aD, type PaymentMethodDescriptor as aE, type PaymentMethodKind as aF, type PaymentOfflineMode as aG, type PaymentRounding as aH, type PaymentTipsMode as aI, type PaymentTransport as aJ, type PendingPairing as aK, type ProductCategory as aL, type ReceiptTemplate as aM, type ReceiptTemplateKind as aN, type RegisterApprovalInvalidData as aO, type RegisterApprovalRequiredData as aP, type RegisterClosureSubmitPayload as aQ, type RegisterCommandEnvelope as aR, type RegisterCommandResult as aS, type RegisterCommandType as aT, type RegisterInfo as aU, type RegisterMovementRecordPayload as aV, type RegisterMovementVoidPayload as aW, type RegisterSessionAlreadyOpenData as aX, type RegisterSessionOpenPayload as aY, type RegisterSessionSupersededData as aZ, type RegisterSessionTransitionPayload as a_, DisplaySignallingError as aa, type DisplaySignallingErrorCode as ab, type FailureClass as ac, type FingerprintReconcileAdapter as ad, type IdReconcileAdapter as ae, MAX_COMMANDS_PER_BATCH as af, ORDER_NOTE_MAX as ag, type OrderAddress as ah, type OrderCreateCoupon as ai, type OrderCreateCouponInvalidData as aj, type OrderCreateDisplay as ak, type OrderCreateEnvelope as al, type OrderCreateLine as am, type OrderCreatePayload as an, type OrderCreatePayment as ao, type OrderCreateTaxRate as ap, type OrderCreateTotalMismatchData as aq, type OrderRefundAmountMismatchData as ar, type OrderRefundEnvelope as as, type OrderRefundLine as at, type OrderRefundNoOpenSessionData as au, type OrderRefundOrderStateData as av, type OrderRefundPayload as aw, type OrderRefundQuantityExceedsData as ax, type OrderRefundRejectionCode as ay, type OrderRefundResult as az, type StockLevel as b, type ServerCapabilities as b0, type SignInResult as b1, type SignalMessage as b2, type StockStatus as b3, type StoreOrder as b4, type StoreOrderCharge as b5, type StoreOrderLine as b6, type StoreOrderPage as b7, type StoreOrderPayment as b8, type StoreOrderRefund as b9, type StoreSettings as ba, type StoreSettingsChoice as bb, type StoreTaxClass as bc, type StoreTaxRate as bd, type StoreTaxRateLocation as be, type TaxRounding as bf, type UpdateRequired as bg, type VariantOptionGroup as bh, cashierPermissions as bi, classifyFailure as bj, customerTraits as bk, defaultPaymentMethods as bl, isCashierPermission as bm, isCommandBatchResponse as bn, neutralFailureClass as bo, noResponse as bp, parseCommandResult as bq, parseInfoCapabilities as br, parseLineTax as bs, parseTaxRounding as bt, paymentMethodOf as bu, resolveCapabilities as bv, type ReplicationAdapter as c, type SyncContext as d, type TraitContext as e, type CustomerTraits as f, type CalculateTaxesInput as g, type CalculateTaxesResult as h, type ItemizedTax as i, type ResolvedTaxLocation as j, TAX_BASED_ON_META_KEY as k, type TaxAddress as l, type TaxBasedOn as m, type TaxLocationOrder as n, normalizeTaxBasedOn as o, orderTaxLocation as p, type AuthField as q, CASHIER_PERMISSIONS as r, COMMANDS_PATH as s, type CaptureMode as t, type CaptureModeEntry as u, type Cashier as v, type CashierPermission as w, type CatalogueReconcileAdapter as x, type CatalogueReconcileEntry as y, type CollectionSync as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IceServer, D as DisplayAdvertisement, O as OrderFilterField, L as ListOrdersQuery, M as Money, P as ProductPrice, R as ResolvedPrice, V as VariantSummary, C as CommandWarning, a as ProductTraits, S as StockReconcileAdapter, b as StockLevel, c as ReplicationAdapter, d as SyncContext, T as TallyConnector, e as TraitContext, f as CustomerTraits, g as CalculateTaxesInput, h as CalculateTaxesResult, W as WooTaxRate, i as ItemizedTax, j as ResolvedTaxLocation, k as TAX_BASED_ON_META_KEY, l as TaxAddress, m as TaxBasedOn, n as TaxLocationOrder, o as normalizeTaxBasedOn, p as orderTaxLocation } from './command-result-
|
|
2
|
-
export { A as AnyCommandEnvelope, q as AuthField, B as BatchTooLargeBody, r as CASHIER_PERMISSIONS, s as COMMANDS_PATH, t as CaptureMode, u as CaptureModeEntry, v as Cashier, w as CashierPermission, x as CatalogueReconcileAdapter, y as CatalogueReconcileEntry, z as CollectionSync, E as CommandBatchRequest, F as CommandBatchResponse, G as CommandEnvelope, H as CommandError, J as CommandResult, K as CommandResultError, N as CommandServerRefs, Q as CommandStatus, U as CommandType, X as ConnectivityState, Y as ConnectorAuth, Z as ConnectorSchemas, _ as ConnectorTraits, $ as Customer, a0 as CustomerAddress, a1 as CustomerInput, a2 as CustomerPage, a3 as CustomerPatch, a4 as CustomerServiceError, a5 as CustomerTaxId, a6 as DISPLAY_PAIR_CAPABILITY, a7 as DisplayRecord, a8 as DisplaySignalling, a9 as DisplaySignallingContext, aa as DisplaySignallingError, ab as DisplaySignallingErrorCode, ac as FailureClass, ad as FingerprintReconcileAdapter, ae as IdReconcileAdapter, af as MAX_COMMANDS_PER_BATCH, ag as ORDER_NOTE_MAX, ah as OrderAddress, ai as OrderCreateCoupon, aj as OrderCreateCouponInvalidData, ak as OrderCreateDisplay, al as OrderCreateEnvelope, am as OrderCreateLine, an as OrderCreatePayload, ao as OrderCreatePayment, ap as OrderCreateTaxRate, aq as OrderCreateTotalMismatchData, ar as OrderRefundAmountMismatchData, as as OrderRefundEnvelope, at as OrderRefundLine, au as OrderRefundNoOpenSessionData, av as OrderRefundOrderStateData, aw as OrderRefundPayload, ax as OrderRefundQuantityExceedsData, ay as OrderRefundRejectionCode, az as OrderRefundResult, aA as PROTOCOL_HEADER, aB as PROTOCOL_VERSION, aC as PaymentHardware, aD as PaymentKind, aE as PaymentMethodDescriptor, aF as PaymentMethodKind, aG as PaymentOfflineMode, aH as PaymentRounding, aI as PaymentTipsMode, aJ as PaymentTransport, aK as PendingPairing, aL as ProductCategory, aM as ReceiptTemplate, aN as ReceiptTemplateKind, aO as RegisterApprovalInvalidData, aP as RegisterApprovalRequiredData, aQ as RegisterClosureSubmitPayload, aR as RegisterCommandEnvelope, aS as RegisterCommandResult, aT as RegisterCommandType, aU as RegisterInfo, aV as RegisterMovementRecordPayload, aW as RegisterMovementVoidPayload, aX as RegisterSessionAlreadyOpenData, aY as RegisterSessionOpenPayload, aZ as RegisterSessionSupersededData, a_ as RegisterSessionTransitionPayload, a$ as RemoteIdEntry, b0 as ServerCapabilities, b1 as SignInResult, b2 as SignalMessage, b3 as StockStatus, b4 as StoreOrder, b5 as StoreOrderCharge, b6 as StoreOrderLine, b7 as StoreOrderPage, b8 as StoreOrderPayment, b9 as StoreOrderRefund, ba as StoreSettings, bb as StoreSettingsChoice, bc as
|
|
1
|
+
import { I as IceServer, D as DisplayAdvertisement, O as OrderFilterField, L as ListOrdersQuery, M as Money, P as ProductPrice, R as ResolvedPrice, V as VariantSummary, C as CommandWarning, a as ProductTraits, S as StockReconcileAdapter, b as StockLevel, c as ReplicationAdapter, d as SyncContext, T as TallyConnector, e as TraitContext, f as CustomerTraits, g as CalculateTaxesInput, h as CalculateTaxesResult, W as WooTaxRate, i as ItemizedTax, j as ResolvedTaxLocation, k as TAX_BASED_ON_META_KEY, l as TaxAddress, m as TaxBasedOn, n as TaxLocationOrder, o as normalizeTaxBasedOn, p as orderTaxLocation } from './command-result-E_nH57WD.js';
|
|
2
|
+
export { A as AnyCommandEnvelope, q as AuthField, B as BatchTooLargeBody, r as CASHIER_PERMISSIONS, s as COMMANDS_PATH, t as CaptureMode, u as CaptureModeEntry, v as Cashier, w as CashierPermission, x as CatalogueReconcileAdapter, y as CatalogueReconcileEntry, z as CollectionSync, E as CommandBatchRequest, F as CommandBatchResponse, G as CommandEnvelope, H as CommandError, J as CommandResult, K as CommandResultError, N as CommandServerRefs, Q as CommandStatus, U as CommandType, X as ConnectivityState, Y as ConnectorAuth, Z as ConnectorSchemas, _ as ConnectorTraits, $ as Customer, a0 as CustomerAddress, a1 as CustomerInput, a2 as CustomerPage, a3 as CustomerPatch, a4 as CustomerServiceError, a5 as CustomerTaxId, a6 as DISPLAY_PAIR_CAPABILITY, a7 as DisplayRecord, a8 as DisplaySignalling, a9 as DisplaySignallingContext, aa as DisplaySignallingError, ab as DisplaySignallingErrorCode, ac as FailureClass, ad as FingerprintReconcileAdapter, ae as IdReconcileAdapter, af as MAX_COMMANDS_PER_BATCH, ag as ORDER_NOTE_MAX, ah as OrderAddress, ai as OrderCreateCoupon, aj as OrderCreateCouponInvalidData, ak as OrderCreateDisplay, al as OrderCreateEnvelope, am as OrderCreateLine, an as OrderCreatePayload, ao as OrderCreatePayment, ap as OrderCreateTaxRate, aq as OrderCreateTotalMismatchData, ar as OrderRefundAmountMismatchData, as as OrderRefundEnvelope, at as OrderRefundLine, au as OrderRefundNoOpenSessionData, av as OrderRefundOrderStateData, aw as OrderRefundPayload, ax as OrderRefundQuantityExceedsData, ay as OrderRefundRejectionCode, az as OrderRefundResult, aA as PROTOCOL_HEADER, aB as PROTOCOL_VERSION, aC as PaymentHardware, aD as PaymentKind, aE as PaymentMethodDescriptor, aF as PaymentMethodKind, aG as PaymentOfflineMode, aH as PaymentRounding, aI as PaymentTipsMode, aJ as PaymentTransport, aK as PendingPairing, aL as ProductCategory, aM as ReceiptTemplate, aN as ReceiptTemplateKind, aO as RegisterApprovalInvalidData, aP as RegisterApprovalRequiredData, aQ as RegisterClosureSubmitPayload, aR as RegisterCommandEnvelope, aS as RegisterCommandResult, aT as RegisterCommandType, aU as RegisterInfo, aV as RegisterMovementRecordPayload, aW as RegisterMovementVoidPayload, aX as RegisterSessionAlreadyOpenData, aY as RegisterSessionOpenPayload, aZ as RegisterSessionSupersededData, a_ as RegisterSessionTransitionPayload, a$ as RemoteIdEntry, b0 as ServerCapabilities, b1 as SignInResult, b2 as SignalMessage, b3 as StockStatus, b4 as StoreOrder, b5 as StoreOrderCharge, b6 as StoreOrderLine, b7 as StoreOrderPage, b8 as StoreOrderPayment, b9 as StoreOrderRefund, ba as StoreSettings, bb as StoreSettingsChoice, bc as StoreTaxClass, bd as StoreTaxRate, be as StoreTaxRateLocation, bf as TaxRounding, bg as UpdateRequired, bh as VariantOptionGroup, bi as cashierPermissions, bj as classifyFailure, bk as customerTraits, bl as defaultPaymentMethods, bm as isCashierPermission, bn as isCommandBatchResponse, bo as neutralFailureClass, bp as noResponse, bq as parseCommandResult, br as parseInfoCapabilities, bs as parseLineTax, bt as parseTaxRounding, bu as paymentMethodOf, bv as resolveCapabilities } from './command-result-E_nH57WD.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import 'rxdb';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as CommandError, an as OrderCreatePayload, G as CommandEnvelope, aR as RegisterCommandEnvelope, A as AnyCommandEnvelope, J as CommandResult, B as BatchTooLargeBody, F as CommandBatchResponse, C as CommandWarning, aS as RegisterCommandResult, ay as OrderRefundRejectionCode, a8 as DisplaySignalling, d as SyncContext, a9 as DisplaySignallingContext } from '../command-result-
|
|
2
|
-
export { K as CommandResultError, af as MAX_COMMANDS_PER_BATCH, ag as ORDER_NOTE_MAX, ak as OrderCreateDisplay, ap as OrderCreateTaxRate,
|
|
1
|
+
import { H as CommandError, an as OrderCreatePayload, G as CommandEnvelope, aR as RegisterCommandEnvelope, A as AnyCommandEnvelope, J as CommandResult, B as BatchTooLargeBody, F as CommandBatchResponse, C as CommandWarning, aS as RegisterCommandResult, ay as OrderRefundRejectionCode, a8 as DisplaySignalling, d as SyncContext, a9 as DisplaySignallingContext } from '../command-result-E_nH57WD.js';
|
|
2
|
+
export { K as CommandResultError, af as MAX_COMMANDS_PER_BATCH, ag as ORDER_NOTE_MAX, ak as OrderCreateDisplay, ap as OrderCreateTaxRate, bq as parseCommandResult } from '../command-result-E_nH57WD.js';
|
|
3
3
|
import 'rxdb';
|
|
4
4
|
import 'rxjs';
|
|
5
5
|
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -18,7 +18,7 @@ export type {
|
|
|
18
18
|
|
|
19
19
|
export type { FingerprintReconcileAdapter, IdReconcileAdapter, StockReconcileAdapter } from './reconcile';
|
|
20
20
|
|
|
21
|
-
export type { StoreSettings, StoreSettingsChoice, StoreTaxRate, StoreTaxRateLocation } from './store-settings';
|
|
21
|
+
export type { StoreSettings, StoreSettingsChoice, StoreTaxClass, StoreTaxRate, StoreTaxRateLocation } from './store-settings';
|
|
22
22
|
|
|
23
23
|
export type { ProductTraits, TraitContext, VariantSummary, VariantOptionGroup, ProductCategory } from './traits/product';
|
|
24
24
|
|
package/src/types/orders.ts
CHANGED
|
@@ -101,4 +101,10 @@ export interface ListOrdersQuery {
|
|
|
101
101
|
dateRange?: { after?: string; before?: string };
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
/** One page of an order list: its orders, whether more follow, and how many the whole query matches when the store says. */
|
|
105
|
+
export interface StoreOrderPage {
|
|
106
|
+
orders: StoreOrder[];
|
|
107
|
+
hasMore: boolean;
|
|
108
|
+
/** Every order the query matches across all pages; undefined when the store gives no count. */
|
|
109
|
+
total?: number;
|
|
110
|
+
}
|
|
@@ -29,6 +29,8 @@ export interface StoreSettings {
|
|
|
29
29
|
calcDiscountsSequentially?: boolean;
|
|
30
30
|
shippingTaxClass?: string;
|
|
31
31
|
taxClassSlugs?: string[];
|
|
32
|
+
/** The tax classes with their display names, in the store's order. Display only. Absent when the connector did not read them. */
|
|
33
|
+
taxClasses?: StoreTaxClass[];
|
|
32
34
|
/** Connector-specific and opaque to the app: what the connector needs to price documents. The app passes it back to the connector unchanged, and never logs it. */
|
|
33
35
|
pricingContext?: Record<string, string>;
|
|
34
36
|
/** Derived, never read by `storeSettings`: the store's `ServerCapabilities.taxRounding`, which `useStoreSettings` fills in (#324). */
|
|
@@ -48,6 +50,12 @@ export interface StoreTaxRateLocation {
|
|
|
48
50
|
zone?: { id: string; name: string };
|
|
49
51
|
}
|
|
50
52
|
|
|
53
|
+
/** One of the store's tax classes: the key `taxClassSlugs` and `taxRates` use, and the name the store shows for it. */
|
|
54
|
+
export interface StoreTaxClass {
|
|
55
|
+
slug: string;
|
|
56
|
+
name: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
51
59
|
/** One of the store's tax rates as the backend defines it. The optional fields are set by a backend that has them. */
|
|
52
60
|
export interface StoreTaxRate {
|
|
53
61
|
/** The backend's id, as a string. */
|