@fire-spark/core 0.9.1 → 0.10.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/index.d.ts CHANGED
@@ -327,7 +327,10 @@ type PaymentSessionOptions = {
327
327
  * SDK charges are always saved with `collect_at: DEVICE` (§7.3).
328
328
  */
329
329
  collectAt?: PaymentCollectAt;
330
- /** Where cash is collected: `COUNTER` on a kiosk, `DOOR` on delivery. */
330
+ /**
331
+ * Where cash and the Fire Spark card terminal are collected: `COUNTER` on
332
+ * a kiosk, `DOOR` on delivery.
333
+ */
331
334
  cashCollectAt?: PaymentCollectAt;
332
335
  /** `settings_overrides.payment_settings` of this device, by payment id. */
333
336
  deviceSettings?: Record<string, Record<string, unknown>>;
@@ -1058,6 +1061,45 @@ type PaymentOperationBody = {
1058
1061
  };
1059
1062
  /** Server half of an adapter (`POST /payments/:id/operations/:operation`). */
1060
1063
  declare const callPaymentOperation: <T>(paymentId: string, operation: string, body: PaymentOperationBody, options?: ServiceHttpOptions) => Promise<T>;
1064
+ type DeunaCallbackUrls = Partial<Record<"on_success" | "on_pending" | "on_failed" | "on_canceled" | "on_reject", string>>;
1065
+ type DeunaTokenizeBody = {
1066
+ order_id: string;
1067
+ attempt_reference: string;
1068
+ callback_urls?: DeunaCallbackUrls;
1069
+ };
1070
+ type DeunaTokenizeResult = {
1071
+ order_token: string;
1072
+ order_id: string;
1073
+ };
1074
+ type DeunaOrderStatus = {
1075
+ order_token: string;
1076
+ status: string;
1077
+ transaction_id: string | null;
1078
+ error: {
1079
+ code: string | null;
1080
+ message: string | null;
1081
+ } | null;
1082
+ };
1083
+ /** DEUNA order for the Payment Widget (`POST .../deuna/:id/tokenize`). */
1084
+ declare const tokenizeDeunaOrder: (paymentId: string, body: DeunaTokenizeBody, options?: ServiceHttpOptions) => Promise<DeunaTokenizeResult>;
1085
+ /** Payment status of a DEUNA order (`GET .../deuna/:id/orders/:token`). */
1086
+ declare const getDeunaOrder: (paymentId: string, orderToken: string, options?: ServiceHttpOptions) => Promise<DeunaOrderStatus>;
1087
+ /**
1088
+ * `api` option of `deunaWidgetPayments` (`@fire-spark/payments-deuna-widget`)
1089
+ * bound to the storefront HTTP options of the template.
1090
+ */
1091
+ declare const createDeunaWidgetApi: (options?: ServiceHttpOptions) => {
1092
+ tokenize: (input: {
1093
+ paymentId: string;
1094
+ orderId: string;
1095
+ attemptReference: string;
1096
+ callbackUrls?: DeunaCallbackUrls;
1097
+ }) => Promise<DeunaTokenizeResult>;
1098
+ order: (input: {
1099
+ paymentId: string;
1100
+ orderToken: string;
1101
+ }) => Promise<DeunaOrderStatus>;
1102
+ };
1061
1103
  type TerminalFailureBody = {
1062
1104
  operation: string;
1063
1105
  device_id?: string | null;
@@ -1208,6 +1250,11 @@ declare const services: {
1208
1250
  list: typeof listPayments;
1209
1251
  operation: typeof callPaymentOperation;
1210
1252
  terminalFailure: typeof reportTerminalFailure;
1253
+ deuna: {
1254
+ tokenize: typeof tokenizeDeunaOrder;
1255
+ order: typeof getDeunaOrder;
1256
+ widgetApi: typeof createDeunaWidgetApi;
1257
+ };
1211
1258
  };
1212
1259
  stores: {
1213
1260
  list: typeof listStores;
@@ -1554,4 +1601,4 @@ declare const validateCardholderName: (value: string) => CardholderNameError | n
1554
1601
  */
1555
1602
  declare const cardPreviewGroups: (value: string) => CardPreviewSlot[][];
1556
1603
  //#endregion
1557
- export { type ApplyRedeemInput, type AuthConfigureOptions, CARD_BRANDS, type CardBrand, type CardBrandSpec, type CardCvcError, type CardExpiry, type CardExpiryError, type CardNumberError, type CardPreviewSlot, type CardholderNameError, type CreateOrderOptions, type CreateSessionOptions, type CustomizationPath, type CustomizationSession, DEFAULT_RECOMMENDATION_TYPES, type ExchangeOptions, type FailedCharge, type FlatMenuCategory, type GenOrderIdOptions, type GroupDisplayType, ID_HASH_FORMATS, type IdBuilder, type IdHashFormat, type ListMenusStreamOptions, type ListPaymentsOptions, type Menu, type MenuCategoryNode, type MenuLookup, type MilestoneSteps, type MilestoneTrackItem, type ModifierControlType, type ModifierCtx, type ModifierGroupCtx, type NestedMenuCategory, Order, type OrderCustomerSource, type OrderDeviceCredential, type OrderDraft, type OrderIssue, type OrderIssueCode, type OrderLineDiff, type OrderLineIssue, type OrderLineIssueCode, OrderPaymentRequiredError, type OrderScope, OrderSyncPendingError, OrderSyncRejectedError, OrderValidationError, type OrderValidationResult, type PayIntentOptions, type PayIntentResult, type PayOptions, type PaymentCardBrand, type PaymentProgressEvent, type PaymentProgressListener, type PaymentRunOptions, type PaymentSessionOptions, type PricingModifier, type Product, type ProductCtx, type QuantitiesByPath, type RecommendationType, RecurringDateCron, type RedeemPaymentRow, type RemoveRedeemInput, type ReorderOrderOptions, type ResetOptions, type ReversalOutcome, type ReverseAllOptions, RulesEngine, type ScheduleWindow, type SelectionStatus, type SelectionsByPath, type SerializedError, type ServiceHttpOptions, type SimpleTenderPayment, type Snapshot, type StorefrontAccessToken, type StorefrontErrorDetails, StorefrontHttpError, type TrackWorkflow, type ValidateOptions, type ValidateOrderAgainstMenuInput, type Variant, type VariantGroup, type VariantGroupCtx, type VariantOptionCtx, type VariantSelection, type VerifyWebhookSignatureInput, type VisitedState, addLines, auth, buildCustomerSnapshot, capRedeems, cappedRedeems, cardBrandSpec, cardDigits, cardNumberGaps, cardNumberMaxLength, cardPreviewGroups, caretAfterDigits, collectOrderLineDiffs, computeStartingPrice, countCartProducts, coveredAmount, createSession, currentNodes, cvcMaxLength, defaultConditionError, detectCardBrand, fitRedeems, flattenMenuCategories, flushLogs, formatCardNumber, formatCvc, formatExpiry, fromOrderLines, genId, genOrderId, getLogContext, getScheduleWindow, indexMenu, isCardNumberComplete, isCardNumberDefinitelyInvalid, isCheckoutFieldFilled, isCvcComplete, isDeviceCharged, isDeviceNotLinked, isExpiryComplete, isGenId, isKioskUnauthorized, isMilestoneStepDone, isOnSchedule, isOrderPaymentRequiredError, isOrderValidationError, isPosDeviceNotLinked, isPosUnauthorized, isRealPaymentMethod, isStorefrontNotFound, isVariantBase, linePayableTotal, listMenusStream, localizePosError, log, logError, luhnCheck, matchAbsoluteDateOperator, matchBooleanOperator, matchCurrencyOperator, matchEnumOperator, matchNumberOperator, matchRecurringDateOperator, matchRelativeDateOperator, matchStringOperator, milestoneSteps, milestoneTrack, nestMenuCategories, normalizeCardholderName, orderPayableTotal, orderRedeemedTotal, orderRedeems, parseExpiry, paymentMatchesClientConditions, rebuildRootGroups, recomputeTotals, redeemedTotal, redemptionCap, redemptionSteps, remainingAmount, removeLine, replaceLine, resolveCheckout, resolveModifierImageUrl, reversePayment, runPaymentAttempt, selectablePayments, serializeError, services, setLineQuantity, storefrontJson, toOrderLines, toPaymentCardBrand, validateCardNumber, validateCardholderName, validateCvc, validateExpiry, validateOrderAgainstMenu, verifyWebhookSignature, visitedStates };
1604
+ export { type ApplyRedeemInput, type AuthConfigureOptions, CARD_BRANDS, type CardBrand, type CardBrandSpec, type CardCvcError, type CardExpiry, type CardExpiryError, type CardNumberError, type CardPreviewSlot, type CardholderNameError, type CreateOrderOptions, type CreateSessionOptions, type CustomizationPath, type CustomizationSession, DEFAULT_RECOMMENDATION_TYPES, type DeunaCallbackUrls, type DeunaOrderStatus, type ExchangeOptions, type FailedCharge, type FlatMenuCategory, type GenOrderIdOptions, type GroupDisplayType, ID_HASH_FORMATS, type IdBuilder, type IdHashFormat, type ListMenusStreamOptions, type ListPaymentsOptions, type Menu, type MenuCategoryNode, type MenuLookup, type MilestoneSteps, type MilestoneTrackItem, type ModifierControlType, type ModifierCtx, type ModifierGroupCtx, type NestedMenuCategory, Order, type OrderCustomerSource, type OrderDeviceCredential, type OrderDraft, type OrderIssue, type OrderIssueCode, type OrderLineDiff, type OrderLineIssue, type OrderLineIssueCode, OrderPaymentRequiredError, type OrderScope, OrderSyncPendingError, OrderSyncRejectedError, OrderValidationError, type OrderValidationResult, type PayIntentOptions, type PayIntentResult, type PayOptions, type PaymentCardBrand, type PaymentProgressEvent, type PaymentProgressListener, type PaymentRunOptions, type PaymentSessionOptions, type PricingModifier, type Product, type ProductCtx, type QuantitiesByPath, type RecommendationType, RecurringDateCron, type RedeemPaymentRow, type RemoveRedeemInput, type ReorderOrderOptions, type ResetOptions, type ReversalOutcome, type ReverseAllOptions, RulesEngine, type ScheduleWindow, type SelectionStatus, type SelectionsByPath, type SerializedError, type ServiceHttpOptions, type SimpleTenderPayment, type Snapshot, type StorefrontAccessToken, type StorefrontErrorDetails, StorefrontHttpError, type TrackWorkflow, type ValidateOptions, type ValidateOrderAgainstMenuInput, type Variant, type VariantGroup, type VariantGroupCtx, type VariantOptionCtx, type VariantSelection, type VerifyWebhookSignatureInput, type VisitedState, addLines, auth, buildCustomerSnapshot, capRedeems, cappedRedeems, cardBrandSpec, cardDigits, cardNumberGaps, cardNumberMaxLength, cardPreviewGroups, caretAfterDigits, collectOrderLineDiffs, computeStartingPrice, countCartProducts, coveredAmount, createDeunaWidgetApi, createSession, currentNodes, cvcMaxLength, defaultConditionError, detectCardBrand, fitRedeems, flattenMenuCategories, flushLogs, formatCardNumber, formatCvc, formatExpiry, fromOrderLines, genId, genOrderId, getLogContext, getScheduleWindow, indexMenu, isCardNumberComplete, isCardNumberDefinitelyInvalid, isCheckoutFieldFilled, isCvcComplete, isDeviceCharged, isDeviceNotLinked, isExpiryComplete, isGenId, isKioskUnauthorized, isMilestoneStepDone, isOnSchedule, isOrderPaymentRequiredError, isOrderValidationError, isPosDeviceNotLinked, isPosUnauthorized, isRealPaymentMethod, isStorefrontNotFound, isVariantBase, linePayableTotal, listMenusStream, localizePosError, log, logError, luhnCheck, matchAbsoluteDateOperator, matchBooleanOperator, matchCurrencyOperator, matchEnumOperator, matchNumberOperator, matchRecurringDateOperator, matchRelativeDateOperator, matchStringOperator, milestoneSteps, milestoneTrack, nestMenuCategories, normalizeCardholderName, orderPayableTotal, orderRedeemedTotal, orderRedeems, parseExpiry, paymentMatchesClientConditions, rebuildRootGroups, recomputeTotals, redeemedTotal, redemptionCap, redemptionSteps, remainingAmount, removeLine, replaceLine, resolveCheckout, resolveModifierImageUrl, reversePayment, runPaymentAttempt, selectablePayments, serializeError, services, setLineQuantity, storefrontJson, toOrderLines, toPaymentCardBrand, validateCardNumber, validateCardholderName, validateCvc, validateExpiry, validateOrderAgainstMenu, verifyWebhookSignature, visitedStates };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { DIGITAL_COLLECT_AT, PARTIAL_APPROVAL_ERROR, REDEMPTION_METHOD, activeIntent, createAttemptReference, createPaymentError, currentIntent, defaultReversalFor, groupRedeems, hasRedeemPayment, isDeliveryFee, isPaymentError, isRealPaymentMethod, isRealPaymentMethod as isRealPaymentMethod$1, isTenderSettled, isTipFee, liveTenders, memoryPaymentStorage, missingDeviceFields, money, moneyMin, moneyNumber, moneyZero, orderRedeems, orderRedeems as orderRedeems$1, redeemsCoverTotal, resolvePaymentPolicy, resolveProviderEnvironment, scopedPaymentStorage, taxBreakdown, toChargeAmount, withTerminalLock } from "@fire-spark/payments";
1
+ import { DIGITAL_COLLECT_AT, PARTIAL_APPROVAL_ERROR, REDEMPTION_METHOD, activeIntent, createAttemptReference, createPaymentError, currentIntent, defaultReversalFor, groupRedeems, hasRedeemPayment, isDeliveryFee, isManualPayment, isPaymentError, isRealPaymentMethod, isRealPaymentMethod as isRealPaymentMethod$1, isTenderSettled, isTipFee, liveTenders, memoryPaymentStorage, missingDeviceFields, money, moneyMin, moneyNumber, moneyZero, orderRedeems, orderRedeems as orderRedeems$1, redeemsCoverTotal, resolvePaymentPolicy, resolveProviderEnvironment, scopedPaymentStorage, taxBreakdown, toChargeAmount, withTerminalLock } from "@fire-spark/payments";
2
2
  import advancedFormat from "dayjs/plugin/advancedFormat.js";
3
3
  import isBetween from "dayjs/plugin/isBetween.js";
4
4
  import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js";
@@ -2722,6 +2722,42 @@ const callPaymentOperation = (paymentId, operation, body, options) => {
2722
2722
  body: JSON.stringify(body)
2723
2723
  }, options);
2724
2724
  };
2725
+ const deunaPath = (paymentId) => {
2726
+ return `/api/storefront/v1/payments/deuna/${encodeURIComponent(paymentId)}`;
2727
+ };
2728
+ /** DEUNA order for the Payment Widget (`POST .../deuna/:id/tokenize`). */
2729
+ const tokenizeDeunaOrder = (paymentId, body, options) => {
2730
+ return storefrontJson(`${deunaPath(paymentId)}/tokenize`, {
2731
+ method: "POST",
2732
+ body: JSON.stringify(body)
2733
+ }, options);
2734
+ };
2735
+ /** Payment status of a DEUNA order (`GET .../deuna/:id/orders/:token`). */
2736
+ const getDeunaOrder = (paymentId, orderToken, options) => {
2737
+ const token = encodeURIComponent(orderToken);
2738
+ return storefrontJson(`${deunaPath(paymentId)}/orders/${token}`, {}, options);
2739
+ };
2740
+ /**
2741
+ * `api` option of `deunaWidgetPayments` (`@fire-spark/payments-deuna-widget`)
2742
+ * bound to the storefront HTTP options of the template.
2743
+ */
2744
+ const createDeunaWidgetApi = (options) => {
2745
+ return {
2746
+ tokenize: (input) => {
2747
+ const b1 = { order_id: input.orderId };
2748
+ const b2 = { attempt_reference: input.attemptReference };
2749
+ const b3 = input.callbackUrls ? { callback_urls: input.callbackUrls } : {};
2750
+ return tokenizeDeunaOrder(input.paymentId, {
2751
+ ...b1,
2752
+ ...b2,
2753
+ ...b3
2754
+ }, options);
2755
+ },
2756
+ order: (input) => {
2757
+ return getDeunaOrder(input.paymentId, input.orderToken, options);
2758
+ }
2759
+ };
2760
+ };
2725
2761
  /** Reports a failed terminal operation (`payment.terminal_failed`). */
2726
2762
  const reportTerminalFailure = (paymentId, body, options) => {
2727
2763
  return storefrontJson(`/api/storefront/v1/payments/${encodeURIComponent(paymentId)}/terminal-failures`, {
@@ -3089,7 +3125,12 @@ const services = {
3089
3125
  payments: {
3090
3126
  list: listPayments,
3091
3127
  operation: callPaymentOperation,
3092
- terminalFailure: reportTerminalFailure
3128
+ terminalFailure: reportTerminalFailure,
3129
+ deuna: {
3130
+ tokenize: tokenizeDeunaOrder,
3131
+ order: getDeunaOrder,
3132
+ widgetApi: createDeunaWidgetApi
3133
+ }
3093
3134
  },
3094
3135
  stores: {
3095
3136
  list: listStores,
@@ -3834,10 +3875,10 @@ const simpleTenderInput = (payment) => {
3834
3875
  /**
3835
3876
  * Charge order of §6.1: deferred capture (authorize only), immediate
3836
3877
  * capture reversible with cancel/refund, manual reversal only, then cash /
3837
- * IDLE last.
3878
+ * card terminal (IDLE) last.
3838
3879
  */
3839
3880
  const chargeRank = (tender, adapter) => {
3840
- if (tender.method === "CASH") return 3;
3881
+ if (isManualPayment(tender.provider, tender.method)) return 3;
3841
3882
  if (adapter.capabilities?.deferredCapture) return 0;
3842
3883
  if (adapter.cancel || adapter.refund) return 1;
3843
3884
  return 2;
@@ -4164,6 +4205,10 @@ const reversePayment = async (adapter, ctx, result, options = {}) => {
4164
4205
  };
4165
4206
  //#endregion
4166
4207
  //#region src/order/payments/session.ts
4208
+ /** Cash or the Fire Spark card terminal: staff collects, no adapter call. */
4209
+ const isManual = (payment) => {
4210
+ return isManualPayment(payment.provider.provider_id, payment.method.method);
4211
+ };
4167
4212
  const noopUI = {
4168
4213
  message: () => void 0,
4169
4214
  action: () => void 0,
@@ -4389,12 +4434,12 @@ var PaymentSession = class {
4389
4434
  };
4390
4435
  }
4391
4436
  collectAt(payment) {
4392
- if (payment.method.method === "CASH") return this.options.cashCollectAt ?? "DOOR";
4437
+ if (isManual(payment)) return this.options.cashCollectAt ?? "DOOR";
4393
4438
  return this.options.collectAt ?? "DEVICE";
4394
4439
  }
4395
- /** `collect_at` of a new tender: cash in person, the rest digital. */
4440
+ /** `collect_at` of a new tender: manual in person, the rest digital. */
4396
4441
  tenderCollectAt(payment) {
4397
- if (payment.method.method === "CASH") return this.options.cashCollectAt ?? "DOOR";
4442
+ if (isManual(payment)) return this.options.cashCollectAt ?? "DOOR";
4398
4443
  return "DEVICE";
4399
4444
  }
4400
4445
  toRecord(tender, result) {
@@ -4509,7 +4554,7 @@ var PaymentSession = class {
4509
4554
  const amount = tender.amount.total;
4510
4555
  const attemptReference = tender.attempt_reference;
4511
4556
  const metadata = { attempt_reference: attemptReference };
4512
- if (!(payment.method.method === "CASH") && tender.status !== "PENDING") {
4557
+ if (!isManual(payment) && tender.status !== "PENDING") {
4513
4558
  const pending = {
4514
4559
  status: "PENDING",
4515
4560
  amount,
@@ -8937,4 +8982,4 @@ const cardPreviewGroups = (value) => {
8937
8982
  return groups;
8938
8983
  };
8939
8984
  //#endregion
8940
- export { CARD_BRANDS, DEFAULT_RECOMMENDATION_TYPES, ID_HASH_FORMATS, Order, OrderPaymentRequiredError, OrderSyncPendingError, OrderSyncRejectedError, OrderValidationError, RecurringDateCron, RulesEngine, StorefrontHttpError, addLines, auth, buildCustomerSnapshot, capRedeems, cappedRedeems, cardBrandSpec, cardDigits, cardNumberGaps, cardNumberMaxLength, cardPreviewGroups, caretAfterDigits, collectOrderLineDiffs, computeStartingPrice, countCartProducts, coveredAmount, createSession, currentNodes, cvcMaxLength, defaultConditionError, detectCardBrand, fitRedeems, flattenMenuCategories, flushLogs, formatCardNumber, formatCvc, formatExpiry, fromOrderLines, genId, genOrderId, getLogContext, getScheduleWindow, indexMenu, isCardNumberComplete, isCardNumberDefinitelyInvalid, isCheckoutFieldFilled, isCvcComplete, isDeviceCharged, isDeviceNotLinked, isExpiryComplete, isGenId, isKioskUnauthorized, isMilestoneStepDone, isOnSchedule, isOrderPaymentRequiredError, isOrderValidationError, isPosDeviceNotLinked, isPosUnauthorized, isRealPaymentMethod, isStorefrontNotFound, isVariantBase, linePayableTotal, listMenusStream, localizePosError, log, logError, luhnCheck, matchAbsoluteDateOperator, matchBooleanOperator, matchCurrencyOperator, matchEnumOperator, matchNumberOperator, matchRecurringDateOperator, matchRelativeDateOperator, matchStringOperator, milestoneSteps, milestoneTrack, nestMenuCategories, normalizeCardholderName, orderPayableTotal, orderRedeemedTotal, orderRedeems, parseExpiry, paymentMatchesClientConditions, rebuildRootGroups, recomputeTotals, redeemedTotal, redemptionCap, redemptionSteps, remainingAmount, removeLine, replaceLine, resolveCheckout, resolveModifierImageUrl, reversePayment, runPaymentAttempt, selectablePayments, serializeError, services, setLineQuantity, storefrontJson, toOrderLines, toPaymentCardBrand, validateCardNumber, validateCardholderName, validateCvc, validateExpiry, validateOrderAgainstMenu, verifyWebhookSignature, visitedStates };
8985
+ export { CARD_BRANDS, DEFAULT_RECOMMENDATION_TYPES, ID_HASH_FORMATS, Order, OrderPaymentRequiredError, OrderSyncPendingError, OrderSyncRejectedError, OrderValidationError, RecurringDateCron, RulesEngine, StorefrontHttpError, addLines, auth, buildCustomerSnapshot, capRedeems, cappedRedeems, cardBrandSpec, cardDigits, cardNumberGaps, cardNumberMaxLength, cardPreviewGroups, caretAfterDigits, collectOrderLineDiffs, computeStartingPrice, countCartProducts, coveredAmount, createDeunaWidgetApi, createSession, currentNodes, cvcMaxLength, defaultConditionError, detectCardBrand, fitRedeems, flattenMenuCategories, flushLogs, formatCardNumber, formatCvc, formatExpiry, fromOrderLines, genId, genOrderId, getLogContext, getScheduleWindow, indexMenu, isCardNumberComplete, isCardNumberDefinitelyInvalid, isCheckoutFieldFilled, isCvcComplete, isDeviceCharged, isDeviceNotLinked, isExpiryComplete, isGenId, isKioskUnauthorized, isMilestoneStepDone, isOnSchedule, isOrderPaymentRequiredError, isOrderValidationError, isPosDeviceNotLinked, isPosUnauthorized, isRealPaymentMethod, isStorefrontNotFound, isVariantBase, linePayableTotal, listMenusStream, localizePosError, log, logError, luhnCheck, matchAbsoluteDateOperator, matchBooleanOperator, matchCurrencyOperator, matchEnumOperator, matchNumberOperator, matchRecurringDateOperator, matchRelativeDateOperator, matchStringOperator, milestoneSteps, milestoneTrack, nestMenuCategories, normalizeCardholderName, orderPayableTotal, orderRedeemedTotal, orderRedeems, parseExpiry, paymentMatchesClientConditions, rebuildRootGroups, recomputeTotals, redeemedTotal, redemptionCap, redemptionSteps, remainingAmount, removeLine, replaceLine, resolveCheckout, resolveModifierImageUrl, reversePayment, runPaymentAttempt, selectablePayments, serializeError, services, setLineQuantity, storefrontJson, toOrderLines, toPaymentCardBrand, validateCardNumber, validateCardholderName, validateCvc, validateExpiry, validateOrderAgainstMenu, verifyWebhookSignature, visitedStates };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fire-spark/core",
3
- "version": "0.9.1",
3
+ "version": "0.10.0",
4
4
  "description": "Fire Spark headless SDK",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -20,8 +20,8 @@
20
20
  "big.js": "6.2.1",
21
21
  "dayjs": "1.11.9",
22
22
  "@types/big.js": "6.2.2",
23
- "@fire-spark/payments": "^0.9.1",
24
- "@fire-spark/types": "^0.9.1"
23
+ "@fire-spark/payments": "^0.10.0",
24
+ "@fire-spark/types": "^0.10.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "tsdown": "^0.22.14",