@fire-spark/types 0.52.0 → 0.53.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +173 -9
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -63,6 +63,7 @@ type OrderLine = {
63
63
  }[];
64
64
  quantity: number;
65
65
  tax_rate: number | null;
66
+ tax_category?: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO" | undefined;
66
67
  discount_rate: number;
67
68
  unit_subtotal: number;
68
69
  unit_discount: number;
@@ -173,6 +174,12 @@ type OrderTotals = {
173
174
  tax_rate: number;
174
175
  tax_total: number;
175
176
  total: number;
177
+ tax_breakdown?: {
178
+ tax_category: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO";
179
+ tax_rate: string;
180
+ taxable_base: string;
181
+ tax_amount: string;
182
+ }[] | undefined;
176
183
  };
177
184
  /** Order row as stored by the API (fulfillment walker and fee input). */
178
185
  type OrderRecord = {
@@ -218,6 +225,7 @@ type OrderRecord = {
218
225
  }[];
219
226
  quantity: number;
220
227
  tax_rate: number | null;
228
+ tax_category?: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO" | undefined;
221
229
  discount_rate: number;
222
230
  unit_subtotal: number;
223
231
  unit_discount: number;
@@ -348,6 +356,12 @@ type OrderRecord = {
348
356
  tax_rate: number;
349
357
  tax_total: number;
350
358
  total: number;
359
+ tax_breakdown?: {
360
+ tax_category: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO";
361
+ tax_rate: string;
362
+ taxable_base: string;
363
+ tax_amount: string;
364
+ }[] | undefined;
351
365
  };
352
366
  placed_at: string | null;
353
367
  resolved_at?: string | undefined;
@@ -456,6 +470,12 @@ type OrderRecord = {
456
470
  tax_rate: number;
457
471
  tax_total: number;
458
472
  total: number;
473
+ tax_breakdown?: {
474
+ tax_category: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO";
475
+ tax_rate: string;
476
+ taxable_base: string;
477
+ tax_amount: string;
478
+ }[] | undefined;
459
479
  };
460
480
  metadata: Record<string, unknown>;
461
481
  payment_status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
@@ -512,6 +532,7 @@ type Order = {
512
532
  }[];
513
533
  quantity: number;
514
534
  tax_rate: number | null;
535
+ tax_category?: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO" | undefined;
515
536
  discount_rate: number;
516
537
  unit_subtotal: number;
517
538
  unit_discount: number;
@@ -642,6 +663,12 @@ type Order = {
642
663
  tax_rate: number;
643
664
  tax_total: number;
644
665
  total: number;
666
+ tax_breakdown?: {
667
+ tax_category: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO";
668
+ tax_rate: string;
669
+ taxable_base: string;
670
+ tax_amount: string;
671
+ }[] | undefined;
645
672
  };
646
673
  placed_at: string | null;
647
674
  resolved_at?: string | undefined;
@@ -750,6 +777,12 @@ type Order = {
750
777
  tax_rate: number;
751
778
  tax_total: number;
752
779
  total: number;
780
+ tax_breakdown?: {
781
+ tax_category: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO";
782
+ tax_rate: string;
783
+ taxable_base: string;
784
+ tax_amount: string;
785
+ }[] | undefined;
753
786
  };
754
787
  metadata: Record<string, unknown>;
755
788
  payment_status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
@@ -823,6 +856,12 @@ type PaymentIntent = {
823
856
  tax_rate: number;
824
857
  tax_total: number;
825
858
  total: number;
859
+ tax_breakdown?: {
860
+ tax_category: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO";
861
+ tax_rate: string;
862
+ taxable_base: string;
863
+ tax_amount: string;
864
+ }[] | undefined;
826
865
  };
827
866
  placed_at: string | null;
828
867
  resolved_at?: string | undefined;
@@ -947,6 +986,12 @@ type PaymentIntentInput = {
947
986
  tax_rate: number;
948
987
  tax_total: number;
949
988
  total: number;
989
+ tax_breakdown?: {
990
+ tax_category: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO";
991
+ tax_rate: string;
992
+ taxable_base: string;
993
+ tax_amount: string;
994
+ }[] | undefined;
950
995
  };
951
996
  placed_at?: string | null | undefined;
952
997
  resolved_at?: string | undefined;
@@ -1500,6 +1545,7 @@ type OrderInsertInput = {
1500
1545
  }[] | undefined;
1501
1546
  quantity: number;
1502
1547
  tax_rate: number | null;
1548
+ tax_category?: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO" | undefined;
1503
1549
  discount_rate: number;
1504
1550
  unit_subtotal: number;
1505
1551
  unit_discount: number;
@@ -1571,6 +1617,12 @@ type OrderInsertInput = {
1571
1617
  tax_rate: number;
1572
1618
  tax_total: number;
1573
1619
  total: number;
1620
+ tax_breakdown?: {
1621
+ tax_category: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO";
1622
+ tax_rate: string;
1623
+ taxable_base: string;
1624
+ tax_amount: string;
1625
+ }[] | undefined;
1574
1626
  } | undefined;
1575
1627
  metadata?: Record<string, unknown> | undefined;
1576
1628
  scheduled_at?: string | null | undefined;
@@ -1654,6 +1706,7 @@ type OrderUpdateInput = {
1654
1706
  }[] | undefined;
1655
1707
  quantity: number;
1656
1708
  tax_rate: number | null;
1709
+ tax_category?: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO" | undefined;
1657
1710
  discount_rate: number;
1658
1711
  unit_subtotal: number;
1659
1712
  unit_discount: number;
@@ -1725,6 +1778,12 @@ type OrderUpdateInput = {
1725
1778
  tax_rate: number;
1726
1779
  tax_total: number;
1727
1780
  total: number;
1781
+ tax_breakdown?: {
1782
+ tax_category: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO";
1783
+ tax_rate: string;
1784
+ taxable_base: string;
1785
+ tax_amount: string;
1786
+ }[] | undefined;
1728
1787
  } | undefined;
1729
1788
  metadata?: Record<string, unknown> | undefined;
1730
1789
  scheduled_at?: string | null | undefined;
@@ -1794,6 +1853,7 @@ type OrderDeviceListResult = {
1794
1853
  }[];
1795
1854
  quantity: number;
1796
1855
  tax_rate: number | null;
1856
+ tax_category?: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO" | undefined;
1797
1857
  discount_rate: number;
1798
1858
  unit_subtotal: number;
1799
1859
  unit_discount: number;
@@ -1924,6 +1984,12 @@ type OrderDeviceListResult = {
1924
1984
  tax_rate: number;
1925
1985
  tax_total: number;
1926
1986
  total: number;
1987
+ tax_breakdown?: {
1988
+ tax_category: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO";
1989
+ tax_rate: string;
1990
+ taxable_base: string;
1991
+ tax_amount: string;
1992
+ }[] | undefined;
1927
1993
  };
1928
1994
  placed_at: string | null;
1929
1995
  resolved_at?: string | undefined;
@@ -2032,6 +2098,12 @@ type OrderDeviceListResult = {
2032
2098
  tax_rate: number;
2033
2099
  tax_total: number;
2034
2100
  total: number;
2101
+ tax_breakdown?: {
2102
+ tax_category: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO";
2103
+ tax_rate: string;
2104
+ taxable_base: string;
2105
+ tax_amount: string;
2106
+ }[] | undefined;
2035
2107
  };
2036
2108
  metadata: Record<string, unknown>;
2037
2109
  payment_status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
@@ -2124,6 +2196,7 @@ type OrderValidateInput = {
2124
2196
  }[] | undefined;
2125
2197
  quantity: number;
2126
2198
  tax_rate: number | null;
2199
+ tax_category?: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO" | undefined;
2127
2200
  discount_rate: number;
2128
2201
  unit_subtotal: number;
2129
2202
  unit_discount: number;
@@ -2195,6 +2268,12 @@ type OrderValidateInput = {
2195
2268
  tax_rate: number;
2196
2269
  tax_total: number;
2197
2270
  total: number;
2271
+ tax_breakdown?: {
2272
+ tax_category: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO";
2273
+ tax_rate: string;
2274
+ taxable_base: string;
2275
+ tax_amount: string;
2276
+ }[] | undefined;
2198
2277
  };
2199
2278
  payment_id?: string | undefined;
2200
2279
  payment_method?: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "REDEMPTION" | "WALLET" | undefined;
@@ -2306,6 +2385,12 @@ type AdminOrderPayments = {
2306
2385
  tax_rate: number;
2307
2386
  tax_total: number;
2308
2387
  total: number;
2388
+ tax_breakdown?: {
2389
+ tax_category: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO";
2390
+ tax_rate: string;
2391
+ taxable_base: string;
2392
+ tax_amount: string;
2393
+ }[] | undefined;
2309
2394
  };
2310
2395
  placed_at: string | null;
2311
2396
  resolved_at?: string | undefined;
@@ -3435,7 +3520,7 @@ type OrderFulfillment = {
3435
3520
  channel_id: string;
3436
3521
  brand_id: string;
3437
3522
  primitive: "boolean";
3438
- type: "Customer is anonymous" | "Is anonymous order" | "Is running local" | "Is running offline" | "Order includes product with tag" | "Order is scheduled" | "Payment captured" | "Payment is mixed";
3523
+ type: "Buyer identified" | "Customer is anonymous" | "Is anonymous order" | "Is running local" | "Is running offline" | "Order includes product with tag" | "Order is scheduled" | "Payment captured" | "Payment is mixed";
3439
3524
  operator: "is" | "is not";
3440
3525
  value: boolean;
3441
3526
  invalidMessage?: string | undefined;
@@ -3692,7 +3777,7 @@ type OrderFulfillmentWorkflow = {
3692
3777
  channel_id: string;
3693
3778
  brand_id: string;
3694
3779
  primitive: "boolean";
3695
- type: "Customer is anonymous" | "Is anonymous order" | "Is running local" | "Is running offline" | "Order includes product with tag" | "Order is scheduled" | "Payment captured" | "Payment is mixed";
3780
+ type: "Buyer identified" | "Customer is anonymous" | "Is anonymous order" | "Is running local" | "Is running offline" | "Order includes product with tag" | "Order is scheduled" | "Payment captured" | "Payment is mixed";
3696
3781
  operator: "is" | "is not";
3697
3782
  value: boolean;
3698
3783
  invalidMessage?: string | undefined;
@@ -3906,7 +3991,7 @@ type OrderFulfillmentWorkflowEdge = {
3906
3991
  channel_id: string;
3907
3992
  brand_id: string;
3908
3993
  primitive: "boolean";
3909
- type: "Customer is anonymous" | "Is anonymous order" | "Is running local" | "Is running offline" | "Order includes product with tag" | "Order is scheduled" | "Payment captured" | "Payment is mixed";
3994
+ type: "Buyer identified" | "Customer is anonymous" | "Is anonymous order" | "Is running local" | "Is running offline" | "Order includes product with tag" | "Order is scheduled" | "Payment captured" | "Payment is mixed";
3910
3995
  operator: "is" | "is not";
3911
3996
  value: boolean;
3912
3997
  invalidMessage?: string | undefined;
@@ -4125,7 +4210,7 @@ type Fee = {
4125
4210
  channel_id: string;
4126
4211
  brand_id: string;
4127
4212
  primitive: "boolean";
4128
- type: "Customer is anonymous" | "Is anonymous order" | "Is running local" | "Is running offline" | "Order includes product with tag" | "Order is scheduled" | "Payment captured" | "Payment is mixed";
4213
+ type: "Buyer identified" | "Customer is anonymous" | "Is anonymous order" | "Is running local" | "Is running offline" | "Order includes product with tag" | "Order is scheduled" | "Payment captured" | "Payment is mixed";
4129
4214
  operator: "is" | "is not";
4130
4215
  value: boolean;
4131
4216
  invalidMessage?: string | undefined;
@@ -4254,7 +4339,7 @@ type MerchantPayment = {
4254
4339
  channel_id: string;
4255
4340
  brand_id: string;
4256
4341
  primitive: "boolean";
4257
- type: "Customer is anonymous" | "Is anonymous order" | "Is running local" | "Is running offline" | "Order includes product with tag" | "Order is scheduled" | "Payment captured" | "Payment is mixed";
4342
+ type: "Buyer identified" | "Customer is anonymous" | "Is anonymous order" | "Is running local" | "Is running offline" | "Order includes product with tag" | "Order is scheduled" | "Payment captured" | "Payment is mixed";
4258
4343
  operator: "is" | "is not";
4259
4344
  value: boolean;
4260
4345
  invalidMessage?: string | undefined;
@@ -5372,6 +5457,7 @@ type PosOrderInput = {
5372
5457
  }[] | undefined;
5373
5458
  quantity: number;
5374
5459
  tax_rate: number | null;
5460
+ tax_category?: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO" | undefined;
5375
5461
  discount_rate: number;
5376
5462
  unit_subtotal: number;
5377
5463
  unit_discount: number;
@@ -5398,6 +5484,12 @@ type PosOrderInput = {
5398
5484
  tax_rate: number;
5399
5485
  tax_total: number;
5400
5486
  total: number;
5487
+ tax_breakdown?: {
5488
+ tax_category: "EXEMPT" | "NOT_SUBJECT" | "STANDARD" | "ZERO";
5489
+ tax_rate: string;
5490
+ taxable_base: string;
5491
+ tax_amount: string;
5492
+ }[] | undefined;
5401
5493
  };
5402
5494
  payment: {
5403
5495
  payment_id: string;
@@ -5703,7 +5795,7 @@ type Condition = {
5703
5795
  channel_id: string;
5704
5796
  brand_id: string;
5705
5797
  primitive: "boolean";
5706
- type: "Customer is anonymous" | "Is anonymous order" | "Is running local" | "Is running offline" | "Order includes product with tag" | "Order is scheduled" | "Payment captured" | "Payment is mixed";
5798
+ type: "Buyer identified" | "Customer is anonymous" | "Is anonymous order" | "Is running local" | "Is running offline" | "Order includes product with tag" | "Order is scheduled" | "Payment captured" | "Payment is mixed";
5707
5799
  operator: "is" | "is not";
5708
5800
  value: boolean;
5709
5801
  invalidMessage?: string | undefined;
@@ -5799,7 +5891,7 @@ type AndConditions = ({
5799
5891
  channel_id: string;
5800
5892
  brand_id: string;
5801
5893
  primitive: "boolean";
5802
- type: "Customer is anonymous" | "Is anonymous order" | "Is running local" | "Is running offline" | "Order includes product with tag" | "Order is scheduled" | "Payment captured" | "Payment is mixed";
5894
+ type: "Buyer identified" | "Customer is anonymous" | "Is anonymous order" | "Is running local" | "Is running offline" | "Order includes product with tag" | "Order is scheduled" | "Payment captured" | "Payment is mixed";
5803
5895
  operator: "is" | "is not";
5804
5896
  value: boolean;
5805
5897
  invalidMessage?: string | undefined;
@@ -5895,7 +5987,7 @@ type OrConditions = ({
5895
5987
  channel_id: string;
5896
5988
  brand_id: string;
5897
5989
  primitive: "boolean";
5898
- type: "Customer is anonymous" | "Is anonymous order" | "Is running local" | "Is running offline" | "Order includes product with tag" | "Order is scheduled" | "Payment captured" | "Payment is mixed";
5990
+ type: "Buyer identified" | "Customer is anonymous" | "Is anonymous order" | "Is running local" | "Is running offline" | "Order includes product with tag" | "Order is scheduled" | "Payment captured" | "Payment is mixed";
5899
5991
  operator: "is" | "is not";
5900
5992
  value: boolean;
5901
5993
  invalidMessage?: string | undefined;
@@ -5968,6 +6060,8 @@ interface RulesEngineOrder {
5968
6060
  lines?: RulesEngineOrderLine[];
5969
6061
  /** Set when the customer picked a future slot. Empty means immediate. */
5970
6062
  scheduled_at?: string | null;
6063
+ /** True when the order carries an identified (non-final-consumer) buyer. */
6064
+ buyer_identified?: boolean;
5971
6065
  }
5972
6066
  interface RulesEngineMonitoring {
5973
6067
  event_type: string;
@@ -6091,4 +6185,74 @@ type WordFilterCheckResult = {
6091
6185
  matches: WordFilterMatch[];
6092
6186
  };
6093
6187
  //#endregion
6094
- export type { AddressInfo, AdminOrderPayments, AdminOrderRecordPaymentInput, AdminRecordPaymentStatus, AndConditions, ApplyFeesInput, ApplyFeesOrderScope, BillingInfo, BillingProfile, BundledItem, Category, CategoryAvailability, CategoryItem, ChannelManifest, ChannelManifestNative, ChannelManifestWeb, ChannelPlatform, ChannelTemplate, CheckoutMode, CheckoutResolved, CmsBlock, CmsBlockItem, Condition, Customer, CustomerGender, CustomerIdentifyInput, CustomerRegisterInput, CustomerUpdateInput, DayOfWeek, DeliveryAddress, DeviceSecretStorage, DeviceSecretsConfigureOptions, DeviceSecretsPayload, Fee, Fulfillment, FulfillmentEligibilityInput, FulfillmentListInput, GroupDisplayType, KioskAdminGesture, KioskAppState, KioskCommandPayload, KioskCommandType, KioskConfigChangedPayload, KioskDeviceConfig, KioskDeviceConfigDevice, KioskDeviceConfigInput, KioskDeviceConfigPayment, KioskDeviceConfigScope, KioskDeviceConfigSettings, KioskDeviceOverrides, KioskDevicePaymentSettings, KioskHealthBatchInput, KioskHealthBatchResult, KioskHealthSample, KioskHeartbeatHealth, KioskHeartbeatInput, KioskHeartbeatResult, KioskOrderPager, KioskPagerMode, KioskPagerSide, KioskPagersOverrides, KioskPagersSettings, KioskPickupNameRules, KioskRealtimeToken, LocalServerConfig, LocalServerHealthResult, MasivoTotpCode, MasivoTotpCreateInput, MasivoTotpCustomer, MasivoTotpVerification, MasivoTotpVerifyInput, MatchResult, MatchableRule, Menu, MenuLookup, MerchantPayment, Metadata, MixedPaymentsEffect, MixedPaymentsLimits, ModifierControlType, ModifierGroup, MultiLanguageText, OrConditions, Order, OrderAdvanceFulfillmentInput, OrderAdvanceFulfillmentOptions, OrderCancelInput, OrderCancelType, OrderChangedCallback, OrderChangedCallbackError, OrderChangedCheckoutState, OrderChangedDeviceReversal, OrderChangedDeviceReversalTender, OrderChangedError, OrderChangedPayload, OrderChangedRunStatus, OrderDeviceCredential, OrderDeviceKind, OrderDeviceListInput, OrderDeviceListResult, OrderFulfillment, OrderFulfillmentEmailRun, OrderFulfillmentEmailRunStatus, OrderFulfillmentWorkflow, OrderFulfillmentWorkflowEdge, OrderFulfillmentWorkflowNode, OrderFulfillmentWorkflowNodeNotification, OrderInsertInput, OrderLine, OrderListInput, OrderRateInput, OrderRating, OrderRecord, OrderRecordPaymentInput, OrderRedeem, OrderRedeemInput, OrderRedemptionState, OrderRedemptionStep, OrderReorderInput, OrderReportedTender, OrderRouteKind, OrderRouteStatus, OrderRoutes, OrderSetCustomerInput, OrderTotals, OrderUpdateInput, OrderValidateInput, OrderValidateOutput, Payment, PaymentCollectAt, PaymentEligibilityInput, PaymentErrorCode, PaymentIntent, PaymentIntentInput, PaymentIntentPutInput, PaymentIntentStatus, PaymentMethod, PaymentProvider, PaymentScope, PaymentStatus, PaymentTender, PaymentTenderInput, PlaceOrderResult, PosActorKind, PosCashBreakdownItem, PosCatalog, PosDenominationKind, PosDeviceConfigDevice, PosDeviceConfigScope, PosDeviceOverrides, PosErrorCode, PosFloor, PosFloorChangedPayload, PosFloorElement, PosFloorInput, PosFloorLayout, PosFloorOccupancy, PosFloorPlan, PosFloorRealtimeToken, PosFloorTable, PosHealthBatchInput, PosHealthBatchResult, PosHealthSample, PosHeartbeatHealth, PosHeartbeatInput, PosHeartbeatResult, PosKioskOrder, PosKioskSettleInput, PosKioskSettleResult, PosOrderInput, PosOrderResult, PosReservationHold, PosReservationHoldStatus, PosStaff, PosTableAttachOrderInput, PosTableCloseInput, PosTableJoinInput, PosTableSeatInput, PosTableSeatReservationInput, PosTableSession, PosTableSessionOrder, PosTableSessionStatus, PosTableSplitInput, PricingModifier, PricingVariant, Product, ProductAvailability, ProductPricing, ProductRecommendationLink, ProductRewardSavings, Recommendation, RecurringDateCronDateParts, RecurringDateCronExpression, RecurringDateCronFormatter, RecurringDateCronRepeat, RecurringDateCronResult, RecurringDateCronSummary, RecurringDateCronValues, RouteEligibility, RouteEligibilityDetail, RouteEligibilityFlags, RouteEligibilityReason, RouteFailureKind, RouteHealthEvent, RouteHealthListener, RuleInterpretation, RulesEngineMonitoring, RulesEngineOrder, RulesEngineOrderLine, RulesEngineParams, RulesEngineRuntime, RulesEngineTagValue, Schedule, ScheduleDay, SchedulePeriod, SdkLogContext, SdkLogEntry, SdkLogErrorInfo, SdkLogIngestResult, SdkLogLevel, SdkLogOptions, Store, StoreAvailabilityFilters, StoreGetInput, StoreListInput, StoreNearbyInput, StorefrontAvailability, StorefrontAvailabilityChangedPayload, StorefrontAvailabilityInput, StorefrontAvailabilityRule, StorefrontCmsChangedPayload, StorefrontMenu, StorefrontMenuChangedPayload, StorefrontMenuScope, StorefrontMenuStreamOptions, StorefrontPaymentsListInput, StorefrontPreferences, StorefrontPreferencesInput, StorefrontRealtimeToken, StorefrontRealtimeTokenInput, StorefrontWorkspaceChangedPayload, StringMatchCaseOptions, SwitchCustomerArg, SwitchCustomerIdToken, SwitchCustomerOptions, SwitchCustomerResult, TenderAllocation, TenderAllocationInput, TenderAmount, TenderDetails, TenderRefundInput, TenderReplaceInput, TenderVoidInput, Variant, VariantGroup, WordFilterCategory, WordFilterCheckInput, WordFilterCheckResult, WordFilterMatch };
6188
+ //#region .flat/src/invoicing.d.ts
6189
+ type TaxCategory = "STANDARD" | "ZERO" | "EXEMPT" | "NOT_SUBJECT";
6190
+ interface TaxBreakdownItem {
6191
+ tax_category: TaxCategory;
6192
+ tax_rate: string;
6193
+ taxable_base: string;
6194
+ tax_amount: string;
6195
+ }
6196
+ type InvoiceCountryCode = "EC";
6197
+ type InvoiceEnvironment = "TEST" | "PRODUCTION";
6198
+ type InvoiceProvider = "DIRECT" | "EXTERNAL";
6199
+ type InvoiceDocumentType = "INVOICE" | "CREDIT_NOTE";
6200
+ type InvoiceDocumentStatus = "PENDING" | "SENT" | "AUTHORIZED" | "REJECTED" | "FAILED" | "VOIDED";
6201
+ type InvoiceTaxIdType = "FINAL_CONSUMER" | "CEDULA" | "RUC" | "PASSPORT";
6202
+ type TaxIdValidationReason = "EMPTY" | "INVALID_LENGTH" | "NON_NUMERIC" | "INVALID_PROVINCE" | "INVALID_THIRD_DIGIT" | "INVALID_ESTABLISHMENT" | "INVALID_CHECK_DIGIT" | "INVALID_FORMAT";
6203
+ interface TaxIdValidationResult {
6204
+ valid: boolean;
6205
+ reason?: TaxIdValidationReason;
6206
+ }
6207
+ interface InvoiceCountryTaxIdOption {
6208
+ code: InvoiceTaxIdType;
6209
+ min_length?: number;
6210
+ max_length?: number;
6211
+ numeric_only?: boolean;
6212
+ }
6213
+ interface InvoiceCountryDescriptor {
6214
+ code: InvoiceCountryCode;
6215
+ name: string;
6216
+ authority: string;
6217
+ currency: string;
6218
+ tax_id_types: readonly InvoiceCountryTaxIdOption[];
6219
+ final_consumer_id: string;
6220
+ final_consumer_name: string;
6221
+ default_buyer_threshold: string;
6222
+ supported_regimes: readonly string[];
6223
+ }
6224
+ /**
6225
+ * Generic POS/channel buyer-capture contract. Channels consume only this
6226
+ * shape and stay agnostic of the underlying invoicing service.
6227
+ */
6228
+ interface BuyerTaxIdOption {
6229
+ code: string;
6230
+ min_length?: number;
6231
+ max_length?: number;
6232
+ numeric_only?: boolean;
6233
+ }
6234
+ interface CheckoutBuyerCaptureConfig {
6235
+ enabled: boolean;
6236
+ country: string;
6237
+ currency: string;
6238
+ require_above_amount: string | null;
6239
+ allow_final_consumer: boolean;
6240
+ final_consumer_id: string;
6241
+ final_consumer_name: string;
6242
+ tax_id_options: BuyerTaxIdOption[];
6243
+ }
6244
+ /**
6245
+ * Generic receipt document returned by the API after order placement.
6246
+ * Channels render/print whatever the API returns without invoicing logic.
6247
+ */
6248
+ interface OrderReceiptDocument {
6249
+ kind: string;
6250
+ status: string;
6251
+ number?: string | null;
6252
+ access_key?: string | null;
6253
+ buyer_name?: string | null;
6254
+ pdf_url?: string | null;
6255
+ message?: string | null;
6256
+ }
6257
+ //#endregion
6258
+ export type { AddressInfo, AdminOrderPayments, AdminOrderRecordPaymentInput, AdminRecordPaymentStatus, AndConditions, ApplyFeesInput, ApplyFeesOrderScope, BillingInfo, BillingProfile, BundledItem, BuyerTaxIdOption, Category, CategoryAvailability, CategoryItem, ChannelManifest, ChannelManifestNative, ChannelManifestWeb, ChannelPlatform, ChannelTemplate, CheckoutBuyerCaptureConfig, CheckoutMode, CheckoutResolved, CmsBlock, CmsBlockItem, Condition, Customer, CustomerGender, CustomerIdentifyInput, CustomerRegisterInput, CustomerUpdateInput, DayOfWeek, DeliveryAddress, DeviceSecretStorage, DeviceSecretsConfigureOptions, DeviceSecretsPayload, Fee, Fulfillment, FulfillmentEligibilityInput, FulfillmentListInput, GroupDisplayType, InvoiceCountryCode, InvoiceCountryDescriptor, InvoiceCountryTaxIdOption, InvoiceDocumentStatus, InvoiceDocumentType, InvoiceEnvironment, InvoiceProvider, InvoiceTaxIdType, KioskAdminGesture, KioskAppState, KioskCommandPayload, KioskCommandType, KioskConfigChangedPayload, KioskDeviceConfig, KioskDeviceConfigDevice, KioskDeviceConfigInput, KioskDeviceConfigPayment, KioskDeviceConfigScope, KioskDeviceConfigSettings, KioskDeviceOverrides, KioskDevicePaymentSettings, KioskHealthBatchInput, KioskHealthBatchResult, KioskHealthSample, KioskHeartbeatHealth, KioskHeartbeatInput, KioskHeartbeatResult, KioskOrderPager, KioskPagerMode, KioskPagerSide, KioskPagersOverrides, KioskPagersSettings, KioskPickupNameRules, KioskRealtimeToken, LocalServerConfig, LocalServerHealthResult, MasivoTotpCode, MasivoTotpCreateInput, MasivoTotpCustomer, MasivoTotpVerification, MasivoTotpVerifyInput, MatchResult, MatchableRule, Menu, MenuLookup, MerchantPayment, Metadata, MixedPaymentsEffect, MixedPaymentsLimits, ModifierControlType, ModifierGroup, MultiLanguageText, OrConditions, Order, OrderAdvanceFulfillmentInput, OrderAdvanceFulfillmentOptions, OrderCancelInput, OrderCancelType, OrderChangedCallback, OrderChangedCallbackError, OrderChangedCheckoutState, OrderChangedDeviceReversal, OrderChangedDeviceReversalTender, OrderChangedError, OrderChangedPayload, OrderChangedRunStatus, OrderDeviceCredential, OrderDeviceKind, OrderDeviceListInput, OrderDeviceListResult, OrderFulfillment, OrderFulfillmentEmailRun, OrderFulfillmentEmailRunStatus, OrderFulfillmentWorkflow, OrderFulfillmentWorkflowEdge, OrderFulfillmentWorkflowNode, OrderFulfillmentWorkflowNodeNotification, OrderInsertInput, OrderLine, OrderListInput, OrderRateInput, OrderRating, OrderReceiptDocument, OrderRecord, OrderRecordPaymentInput, OrderRedeem, OrderRedeemInput, OrderRedemptionState, OrderRedemptionStep, OrderReorderInput, OrderReportedTender, OrderRouteKind, OrderRouteStatus, OrderRoutes, OrderSetCustomerInput, OrderTotals, OrderUpdateInput, OrderValidateInput, OrderValidateOutput, Payment, PaymentCollectAt, PaymentEligibilityInput, PaymentErrorCode, PaymentIntent, PaymentIntentInput, PaymentIntentPutInput, PaymentIntentStatus, PaymentMethod, PaymentProvider, PaymentScope, PaymentStatus, PaymentTender, PaymentTenderInput, PlaceOrderResult, PosActorKind, PosCashBreakdownItem, PosCatalog, PosDenominationKind, PosDeviceConfigDevice, PosDeviceConfigScope, PosDeviceOverrides, PosErrorCode, PosFloor, PosFloorChangedPayload, PosFloorElement, PosFloorInput, PosFloorLayout, PosFloorOccupancy, PosFloorPlan, PosFloorRealtimeToken, PosFloorTable, PosHealthBatchInput, PosHealthBatchResult, PosHealthSample, PosHeartbeatHealth, PosHeartbeatInput, PosHeartbeatResult, PosKioskOrder, PosKioskSettleInput, PosKioskSettleResult, PosOrderInput, PosOrderResult, PosReservationHold, PosReservationHoldStatus, PosStaff, PosTableAttachOrderInput, PosTableCloseInput, PosTableJoinInput, PosTableSeatInput, PosTableSeatReservationInput, PosTableSession, PosTableSessionOrder, PosTableSessionStatus, PosTableSplitInput, PricingModifier, PricingVariant, Product, ProductAvailability, ProductPricing, ProductRecommendationLink, ProductRewardSavings, Recommendation, RecurringDateCronDateParts, RecurringDateCronExpression, RecurringDateCronFormatter, RecurringDateCronRepeat, RecurringDateCronResult, RecurringDateCronSummary, RecurringDateCronValues, RouteEligibility, RouteEligibilityDetail, RouteEligibilityFlags, RouteEligibilityReason, RouteFailureKind, RouteHealthEvent, RouteHealthListener, RuleInterpretation, RulesEngineMonitoring, RulesEngineOrder, RulesEngineOrderLine, RulesEngineParams, RulesEngineRuntime, RulesEngineTagValue, Schedule, ScheduleDay, SchedulePeriod, SdkLogContext, SdkLogEntry, SdkLogErrorInfo, SdkLogIngestResult, SdkLogLevel, SdkLogOptions, Store, StoreAvailabilityFilters, StoreGetInput, StoreListInput, StoreNearbyInput, StorefrontAvailability, StorefrontAvailabilityChangedPayload, StorefrontAvailabilityInput, StorefrontAvailabilityRule, StorefrontCmsChangedPayload, StorefrontMenu, StorefrontMenuChangedPayload, StorefrontMenuScope, StorefrontMenuStreamOptions, StorefrontPaymentsListInput, StorefrontPreferences, StorefrontPreferencesInput, StorefrontRealtimeToken, StorefrontRealtimeTokenInput, StorefrontWorkspaceChangedPayload, StringMatchCaseOptions, SwitchCustomerArg, SwitchCustomerIdToken, SwitchCustomerOptions, SwitchCustomerResult, TaxBreakdownItem, TaxCategory, TaxIdValidationReason, TaxIdValidationResult, TenderAllocation, TenderAllocationInput, TenderAmount, TenderDetails, TenderRefundInput, TenderReplaceInput, TenderVoidInput, Variant, VariantGroup, WordFilterCategory, WordFilterCheckInput, WordFilterCheckResult, WordFilterMatch };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fire-spark/types",
3
- "version": "0.52.0",
3
+ "version": "0.53.0",
4
4
  "description": "Fire Spark public TypeScript types",
5
5
  "type": "module",
6
6
  "sideEffects": false,