@fire-spark/core 0.0.4 → 0.1.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.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { PaymentAdapter, PaymentCollectAt, PaymentContext, PaymentResult, PaymentStorage, PaymentUI } from "@fire-spark/payments";
2
- import { AndConditions, CheckoutMode, CheckoutResolved, Condition, CustomerIdentifyInput, CustomerRegisterInput, CustomerUpdateInput, FulfillmentListInput, GroupDisplayType, KioskDeviceConfig, KioskDeviceOverrides, KioskHealthBatchInput, KioskHealthBatchResult, KioskHeartbeatInput, KioskHeartbeatResult, KioskRealtimeToken, MatchResult, MatchableRule, Menu, Menu as Menu$1, MenuLookup, MenuLookup as MenuLookup$1, MerchantPayment, ModifierControlType, ModifierGroup, OrConditions, Order as Order$1, Order as Order$2, OrderInsertInput, OrderLine, OrderListInput, OrderRecordPaymentInput, OrderRedeem, OrderRedemptionStep, OrderReorderInput, OrderTotals, OrderUpdateInput, OrderValidateInput, OrderValidateOutput, PaymentIntentInput, PaymentMethod, PaymentProvider, PosCatalog, PosHealthBatchInput, PosHealthBatchResult, PosHeartbeatInput, PosHeartbeatResult, PosKioskOrder, PosKioskSettleInput, PosKioskSettleResult, PosOrderInput, PosOrderResult, PricingModifier, Product, Product as Product$1, Recommendation, RecurringDateCronResult, RecurringDateCronValues, RulesEngineOrderLine, RulesEngineParams, RulesEngineRuntime, Schedule, SdkLogContext, SdkLogErrorInfo, SdkLogLevel, SdkLogOptions, StoreGetInput, StoreListInput, StoreNearbyInput, StorefrontAvailability, StorefrontMenuScope, StorefrontMenuStreamOptions, StorefrontPaymentsListInput, Variant, VariantGroup } from "@fire-spark/types";
2
+ import { AndConditions, CheckoutMode, CheckoutResolved, CmsBlock, Condition, Customer, CustomerIdentifyInput, CustomerRegisterInput, CustomerUpdateInput, Fulfillment, FulfillmentListInput, GroupDisplayType, KioskDeviceConfig, KioskDeviceOverrides, KioskHealthBatchInput, KioskHealthBatchResult, KioskHeartbeatInput, KioskHeartbeatResult, KioskRealtimeToken, MatchResult, MatchableRule, Menu, Menu as Menu$1, MenuLookup, MenuLookup as MenuLookup$1, MerchantPayment, ModifierControlType, ModifierGroup, OrConditions, Order as Order$1, Order as Order$2, OrderFulfillment, OrderInsertInput, OrderLine, OrderListInput, OrderRecordPaymentInput, OrderRedeem, OrderRedemptionStep, OrderReorderInput, OrderTotals, OrderUpdateInput, OrderValidateInput, OrderValidateOutput, PaymentIntentInput, PaymentMethod, PaymentProvider, PlaceOrderResult, PosCatalog, PosHealthBatchInput, PosHealthBatchResult, PosHeartbeatInput, PosHeartbeatResult, PosKioskOrder, PosKioskSettleInput, PosKioskSettleResult, PosOrderInput, PosOrderResult, PricingModifier, Product, Product as Product$1, Recommendation, RecurringDateCronResult, RecurringDateCronValues, RulesEngineOrderLine, RulesEngineParams, RulesEngineRuntime, Schedule, SdkLogContext, SdkLogErrorInfo, SdkLogLevel, SdkLogOptions, Store, StoreGetInput, StoreListInput, StoreNearbyInput, StorefrontAvailability, StorefrontMenu, StorefrontMenuScope, StorefrontMenuStreamOptions, StorefrontPaymentsListInput, StorefrontPreferences, Variant, VariantGroup } from "@fire-spark/types";
3
3
  import { Big } from "big.js";
4
4
  //#region src/productCustomization/types.d.ts
5
5
  type SelectionStatus = "IDLE" | "INCOMPLETE" | "VALID" | "INVALID";
@@ -223,525 +223,9 @@ declare const isStorefrontNotFound: (error: unknown) => boolean;
223
223
  declare const storefrontJson: <T>(path: string, init?: RequestInit, options?: ServiceHttpOptions) => Promise<T>;
224
224
  //#endregion
225
225
  //#region src/services/orders.d.ts
226
- declare const listOrders: (input?: OrderListInput, options?: ServiceHttpOptions) => Promise<{
227
- uid: string;
228
- id: string;
229
- brand_id?: string | null | undefined;
230
- store_id: string;
231
- channel_id: string;
232
- customer_id: string;
233
- fulfillment_id: string;
234
- is_anonymous: boolean;
235
- lines: {
236
- type: "FEE" | "PRODUCT";
237
- uid: string;
238
- id: string;
239
- parent_uid: string | null;
240
- parent_id: string | null;
241
- name: string;
242
- image_url?: string | undefined;
243
- menu_id?: string | undefined;
244
- internal_attribution_source?: string | undefined;
245
- internal_attribution_id?: string | undefined;
246
- metadata: Record<string, unknown>;
247
- bundled_items: {
248
- id: string;
249
- refund_price: number;
250
- included_quantity: number;
251
- }[];
252
- redeem: {
253
- reward_id: string;
254
- quantity: number;
255
- discount_rate?: number | undefined;
256
- discount_amount?: number | undefined;
257
- expires_at?: string | undefined;
258
- }[];
259
- quantity: number;
260
- tax_rate: number | null;
261
- discount_rate: number;
262
- unit_subtotal: number;
263
- unit_discount: number;
264
- unit_tax_total: number;
265
- unit_total: number;
266
- subtotal: number;
267
- discount_total: number;
268
- tax_total: number;
269
- total: number;
270
- unit_group_subtotal: number;
271
- unit_group_discount: number;
272
- unit_group_tax_total: number;
273
- unit_group_total: number;
274
- group_subtotal: number;
275
- group_discount: number;
276
- group_tax_total: number;
277
- group_total: number;
278
- }[];
279
- redeem: {
280
- reward_id: string;
281
- quantity: number;
282
- discount_rate?: number | undefined;
283
- discount_amount?: number | undefined;
284
- expires_at?: string | undefined;
285
- }[];
286
- redemption_steps: {
287
- reward_id: string;
288
- reward_quantity: number;
289
- target: "LINE" | "ORDER";
290
- target_id?: string | undefined;
291
- action: "CREATE" | "DELETE" | "READ" | "UPDATE";
292
- discount_amount: number;
293
- before: {
294
- value: number;
295
- quantity: number;
296
- discount_amount: number;
297
- discount_rate: number;
298
- };
299
- after: {
300
- value: number;
301
- quantity: number;
302
- discount_amount: number;
303
- discount_rate: number;
304
- };
305
- target_before?: {
306
- value: number;
307
- quantity: number;
308
- discount_amount: number;
309
- discount_rate: number;
310
- } | undefined;
311
- target_after?: {
312
- value: number;
313
- quantity: number;
314
- discount_amount: number;
315
- discount_rate: number;
316
- } | undefined;
317
- error?: string | undefined;
318
- }[];
319
- customer: {
320
- customer_info: {
321
- display_name: string;
322
- first_name: string;
323
- middle_name?: string | undefined;
324
- last_name: string;
325
- second_last_name?: string | undefined;
326
- email: string;
327
- phone: string;
328
- gender?: "FEMALE" | "MALE" | undefined;
329
- dob?: string | undefined;
330
- document_type?: "CI" | "DNI" | "OTHER" | "PASSPORT" | "RUC" | undefined;
331
- document_number?: string | undefined;
332
- city?: string | undefined;
333
- country?: string | undefined;
334
- };
335
- address_info?: {
336
- address_line1: string;
337
- address_line2?: string | undefined;
338
- city?: string | undefined;
339
- state?: string | undefined;
340
- zip?: string | undefined;
341
- country?: string | undefined;
342
- reference?: string | undefined;
343
- latitude?: number | undefined;
344
- longitude?: number | undefined;
345
- instructions?: string | undefined;
346
- metadata: Record<string, unknown> | null;
347
- } | null | undefined;
348
- billing_info?: {
349
- type: "BUSINESS" | "INDIVIDUAL";
350
- legal_name: string;
351
- address_line1: string;
352
- address_line2?: string | undefined;
353
- city?: string | undefined;
354
- state?: string | undefined;
355
- zip?: string | undefined;
356
- country?: string | undefined;
357
- tax_id: string;
358
- tax_id_type: "CI" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
359
- metadata: Record<string, unknown> | null;
360
- } | null | undefined;
361
- };
362
- payment_intents: {
363
- id?: string | undefined;
364
- payment_id?: string | undefined;
365
- method: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "WALLET";
366
- provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
367
- collect_at: "COUNTER" | "DEVICE" | "DOOR" | "KIOSK" | "OTHER";
368
- status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
369
- totals: {
370
- currency: string;
371
- subtotal: number;
372
- discount_rate: number;
373
- discount_total: number;
374
- tax_rate: number;
375
- tax_total: number;
376
- total: number;
377
- };
378
- error_message?: string | undefined;
379
- placed_at: string;
380
- resolved_at?: string | undefined;
381
- metadata: Record<string, unknown>;
382
- }[];
383
- totals: {
384
- currency: string;
385
- subtotal: number;
386
- discount_rate: number;
387
- discount_total: number;
388
- tax_rate: number;
389
- tax_total: number;
390
- total: number;
391
- };
392
- metadata: Record<string, unknown>;
393
- payment_status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
394
- fulfillment_status: string;
395
- status: "CANCELLED" | "CLOSED" | "COMPLETED" | "OPEN" | "REFUNDED" | "REVERSED" | "VOIDED";
396
- issued_at?: string | null | undefined;
397
- resolved_at?: string | null | undefined;
398
- }[]>;
399
- declare const createOrder: (body: OrderInsertInput, options?: ServiceHttpOptions) => Promise<{
400
- uid: string;
401
- id: string;
402
- brand_id?: string | null | undefined;
403
- store_id: string;
404
- channel_id: string;
405
- customer_id: string;
406
- fulfillment_id: string;
407
- is_anonymous: boolean;
408
- lines: {
409
- type: "FEE" | "PRODUCT";
410
- uid: string;
411
- id: string;
412
- parent_uid: string | null;
413
- parent_id: string | null;
414
- name: string;
415
- image_url?: string | undefined;
416
- menu_id?: string | undefined;
417
- internal_attribution_source?: string | undefined;
418
- internal_attribution_id?: string | undefined;
419
- metadata: Record<string, unknown>;
420
- bundled_items: {
421
- id: string;
422
- refund_price: number;
423
- included_quantity: number;
424
- }[];
425
- redeem: {
426
- reward_id: string;
427
- quantity: number;
428
- discount_rate?: number | undefined;
429
- discount_amount?: number | undefined;
430
- expires_at?: string | undefined;
431
- }[];
432
- quantity: number;
433
- tax_rate: number | null;
434
- discount_rate: number;
435
- unit_subtotal: number;
436
- unit_discount: number;
437
- unit_tax_total: number;
438
- unit_total: number;
439
- subtotal: number;
440
- discount_total: number;
441
- tax_total: number;
442
- total: number;
443
- unit_group_subtotal: number;
444
- unit_group_discount: number;
445
- unit_group_tax_total: number;
446
- unit_group_total: number;
447
- group_subtotal: number;
448
- group_discount: number;
449
- group_tax_total: number;
450
- group_total: number;
451
- }[];
452
- redeem: {
453
- reward_id: string;
454
- quantity: number;
455
- discount_rate?: number | undefined;
456
- discount_amount?: number | undefined;
457
- expires_at?: string | undefined;
458
- }[];
459
- redemption_steps: {
460
- reward_id: string;
461
- reward_quantity: number;
462
- target: "LINE" | "ORDER";
463
- target_id?: string | undefined;
464
- action: "CREATE" | "DELETE" | "READ" | "UPDATE";
465
- discount_amount: number;
466
- before: {
467
- value: number;
468
- quantity: number;
469
- discount_amount: number;
470
- discount_rate: number;
471
- };
472
- after: {
473
- value: number;
474
- quantity: number;
475
- discount_amount: number;
476
- discount_rate: number;
477
- };
478
- target_before?: {
479
- value: number;
480
- quantity: number;
481
- discount_amount: number;
482
- discount_rate: number;
483
- } | undefined;
484
- target_after?: {
485
- value: number;
486
- quantity: number;
487
- discount_amount: number;
488
- discount_rate: number;
489
- } | undefined;
490
- error?: string | undefined;
491
- }[];
492
- customer: {
493
- customer_info: {
494
- display_name: string;
495
- first_name: string;
496
- middle_name?: string | undefined;
497
- last_name: string;
498
- second_last_name?: string | undefined;
499
- email: string;
500
- phone: string;
501
- gender?: "FEMALE" | "MALE" | undefined;
502
- dob?: string | undefined;
503
- document_type?: "CI" | "DNI" | "OTHER" | "PASSPORT" | "RUC" | undefined;
504
- document_number?: string | undefined;
505
- city?: string | undefined;
506
- country?: string | undefined;
507
- };
508
- address_info?: {
509
- address_line1: string;
510
- address_line2?: string | undefined;
511
- city?: string | undefined;
512
- state?: string | undefined;
513
- zip?: string | undefined;
514
- country?: string | undefined;
515
- reference?: string | undefined;
516
- latitude?: number | undefined;
517
- longitude?: number | undefined;
518
- instructions?: string | undefined;
519
- metadata: Record<string, unknown> | null;
520
- } | null | undefined;
521
- billing_info?: {
522
- type: "BUSINESS" | "INDIVIDUAL";
523
- legal_name: string;
524
- address_line1: string;
525
- address_line2?: string | undefined;
526
- city?: string | undefined;
527
- state?: string | undefined;
528
- zip?: string | undefined;
529
- country?: string | undefined;
530
- tax_id: string;
531
- tax_id_type: "CI" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
532
- metadata: Record<string, unknown> | null;
533
- } | null | undefined;
534
- };
535
- payment_intents: {
536
- id?: string | undefined;
537
- payment_id?: string | undefined;
538
- method: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "WALLET";
539
- provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
540
- collect_at: "COUNTER" | "DEVICE" | "DOOR" | "KIOSK" | "OTHER";
541
- status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
542
- totals: {
543
- currency: string;
544
- subtotal: number;
545
- discount_rate: number;
546
- discount_total: number;
547
- tax_rate: number;
548
- tax_total: number;
549
- total: number;
550
- };
551
- error_message?: string | undefined;
552
- placed_at: string;
553
- resolved_at?: string | undefined;
554
- metadata: Record<string, unknown>;
555
- }[];
556
- totals: {
557
- currency: string;
558
- subtotal: number;
559
- discount_rate: number;
560
- discount_total: number;
561
- tax_rate: number;
562
- tax_total: number;
563
- total: number;
564
- };
565
- metadata: Record<string, unknown>;
566
- payment_status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
567
- fulfillment_status: string;
568
- status: "CANCELLED" | "CLOSED" | "COMPLETED" | "OPEN" | "REFUNDED" | "REVERSED" | "VOIDED";
569
- issued_at?: string | null | undefined;
570
- resolved_at?: string | null | undefined;
571
- }>;
572
- declare const getOrder: (id: string, options?: ServiceHttpOptions) => Promise<{
573
- uid: string;
574
- id: string;
575
- brand_id?: string | null | undefined;
576
- store_id: string;
577
- channel_id: string;
578
- customer_id: string;
579
- fulfillment_id: string;
580
- is_anonymous: boolean;
581
- lines: {
582
- type: "FEE" | "PRODUCT";
583
- uid: string;
584
- id: string;
585
- parent_uid: string | null;
586
- parent_id: string | null;
587
- name: string;
588
- image_url?: string | undefined;
589
- menu_id?: string | undefined;
590
- internal_attribution_source?: string | undefined;
591
- internal_attribution_id?: string | undefined;
592
- metadata: Record<string, unknown>;
593
- bundled_items: {
594
- id: string;
595
- refund_price: number;
596
- included_quantity: number;
597
- }[];
598
- redeem: {
599
- reward_id: string;
600
- quantity: number;
601
- discount_rate?: number | undefined;
602
- discount_amount?: number | undefined;
603
- expires_at?: string | undefined;
604
- }[];
605
- quantity: number;
606
- tax_rate: number | null;
607
- discount_rate: number;
608
- unit_subtotal: number;
609
- unit_discount: number;
610
- unit_tax_total: number;
611
- unit_total: number;
612
- subtotal: number;
613
- discount_total: number;
614
- tax_total: number;
615
- total: number;
616
- unit_group_subtotal: number;
617
- unit_group_discount: number;
618
- unit_group_tax_total: number;
619
- unit_group_total: number;
620
- group_subtotal: number;
621
- group_discount: number;
622
- group_tax_total: number;
623
- group_total: number;
624
- }[];
625
- redeem: {
626
- reward_id: string;
627
- quantity: number;
628
- discount_rate?: number | undefined;
629
- discount_amount?: number | undefined;
630
- expires_at?: string | undefined;
631
- }[];
632
- redemption_steps: {
633
- reward_id: string;
634
- reward_quantity: number;
635
- target: "LINE" | "ORDER";
636
- target_id?: string | undefined;
637
- action: "CREATE" | "DELETE" | "READ" | "UPDATE";
638
- discount_amount: number;
639
- before: {
640
- value: number;
641
- quantity: number;
642
- discount_amount: number;
643
- discount_rate: number;
644
- };
645
- after: {
646
- value: number;
647
- quantity: number;
648
- discount_amount: number;
649
- discount_rate: number;
650
- };
651
- target_before?: {
652
- value: number;
653
- quantity: number;
654
- discount_amount: number;
655
- discount_rate: number;
656
- } | undefined;
657
- target_after?: {
658
- value: number;
659
- quantity: number;
660
- discount_amount: number;
661
- discount_rate: number;
662
- } | undefined;
663
- error?: string | undefined;
664
- }[];
665
- customer: {
666
- customer_info: {
667
- display_name: string;
668
- first_name: string;
669
- middle_name?: string | undefined;
670
- last_name: string;
671
- second_last_name?: string | undefined;
672
- email: string;
673
- phone: string;
674
- gender?: "FEMALE" | "MALE" | undefined;
675
- dob?: string | undefined;
676
- document_type?: "CI" | "DNI" | "OTHER" | "PASSPORT" | "RUC" | undefined;
677
- document_number?: string | undefined;
678
- city?: string | undefined;
679
- country?: string | undefined;
680
- };
681
- address_info?: {
682
- address_line1: string;
683
- address_line2?: string | undefined;
684
- city?: string | undefined;
685
- state?: string | undefined;
686
- zip?: string | undefined;
687
- country?: string | undefined;
688
- reference?: string | undefined;
689
- latitude?: number | undefined;
690
- longitude?: number | undefined;
691
- instructions?: string | undefined;
692
- metadata: Record<string, unknown> | null;
693
- } | null | undefined;
694
- billing_info?: {
695
- type: "BUSINESS" | "INDIVIDUAL";
696
- legal_name: string;
697
- address_line1: string;
698
- address_line2?: string | undefined;
699
- city?: string | undefined;
700
- state?: string | undefined;
701
- zip?: string | undefined;
702
- country?: string | undefined;
703
- tax_id: string;
704
- tax_id_type: "CI" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
705
- metadata: Record<string, unknown> | null;
706
- } | null | undefined;
707
- };
708
- payment_intents: {
709
- id?: string | undefined;
710
- payment_id?: string | undefined;
711
- method: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "WALLET";
712
- provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
713
- collect_at: "COUNTER" | "DEVICE" | "DOOR" | "KIOSK" | "OTHER";
714
- status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
715
- totals: {
716
- currency: string;
717
- subtotal: number;
718
- discount_rate: number;
719
- discount_total: number;
720
- tax_rate: number;
721
- tax_total: number;
722
- total: number;
723
- };
724
- error_message?: string | undefined;
725
- placed_at: string;
726
- resolved_at?: string | undefined;
727
- metadata: Record<string, unknown>;
728
- }[];
729
- totals: {
730
- currency: string;
731
- subtotal: number;
732
- discount_rate: number;
733
- discount_total: number;
734
- tax_rate: number;
735
- tax_total: number;
736
- total: number;
737
- };
738
- metadata: Record<string, unknown>;
739
- payment_status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
740
- fulfillment_status: string;
741
- status: "CANCELLED" | "CLOSED" | "COMPLETED" | "OPEN" | "REFUNDED" | "REVERSED" | "VOIDED";
742
- issued_at?: string | null | undefined;
743
- resolved_at?: string | null | undefined;
744
- }>;
226
+ declare const listOrders: (input?: OrderListInput, options?: ServiceHttpOptions) => Promise<Order$1[]>;
227
+ declare const createOrder: (body: OrderInsertInput, options?: ServiceHttpOptions) => Promise<Order$1>;
228
+ declare const getOrder: (id: string, options?: ServiceHttpOptions) => Promise<Order$1>;
745
229
  type PlaceOrderInput = {
746
230
  payment?: {
747
231
  id?: string;
@@ -750,1303 +234,15 @@ type PlaceOrderInput = {
750
234
  intents?: PaymentIntentInput[];
751
235
  };
752
236
  };
753
- declare const placeOrder: (id: string, body?: PlaceOrderInput, options?: ServiceHttpOptions) => Promise<{
754
- order_id: string;
755
- order_fulfillment_id: string;
756
- status: "ACCEPTED" | "EXISTS" | "IN_PROGRESS";
757
- }>;
237
+ declare const placeOrder: (id: string, body?: PlaceOrderInput, options?: ServiceHttpOptions) => Promise<PlaceOrderResult>;
758
238
  /** Records (or updates by `metadata.attempt_reference`) one payment intent. */
759
- declare const recordOrderPayment: (id: string, body: OrderRecordPaymentInput, options?: ServiceHttpOptions) => Promise<{
760
- uid: string;
761
- id: string;
762
- brand_id?: string | null | undefined;
763
- store_id: string;
764
- channel_id: string;
765
- customer_id: string;
766
- fulfillment_id: string;
767
- is_anonymous: boolean;
768
- lines: {
769
- type: "FEE" | "PRODUCT";
770
- uid: string;
771
- id: string;
772
- parent_uid: string | null;
773
- parent_id: string | null;
774
- name: string;
775
- image_url?: string | undefined;
776
- menu_id?: string | undefined;
777
- internal_attribution_source?: string | undefined;
778
- internal_attribution_id?: string | undefined;
779
- metadata: Record<string, unknown>;
780
- bundled_items: {
781
- id: string;
782
- refund_price: number;
783
- included_quantity: number;
784
- }[];
785
- redeem: {
786
- reward_id: string;
787
- quantity: number;
788
- discount_rate?: number | undefined;
789
- discount_amount?: number | undefined;
790
- expires_at?: string | undefined;
791
- }[];
792
- quantity: number;
793
- tax_rate: number | null;
794
- discount_rate: number;
795
- unit_subtotal: number;
796
- unit_discount: number;
797
- unit_tax_total: number;
798
- unit_total: number;
799
- subtotal: number;
800
- discount_total: number;
801
- tax_total: number;
802
- total: number;
803
- unit_group_subtotal: number;
804
- unit_group_discount: number;
805
- unit_group_tax_total: number;
806
- unit_group_total: number;
807
- group_subtotal: number;
808
- group_discount: number;
809
- group_tax_total: number;
810
- group_total: number;
811
- }[];
812
- redeem: {
813
- reward_id: string;
814
- quantity: number;
815
- discount_rate?: number | undefined;
816
- discount_amount?: number | undefined;
817
- expires_at?: string | undefined;
818
- }[];
819
- redemption_steps: {
820
- reward_id: string;
821
- reward_quantity: number;
822
- target: "LINE" | "ORDER";
823
- target_id?: string | undefined;
824
- action: "CREATE" | "DELETE" | "READ" | "UPDATE";
825
- discount_amount: number;
826
- before: {
827
- value: number;
828
- quantity: number;
829
- discount_amount: number;
830
- discount_rate: number;
831
- };
832
- after: {
833
- value: number;
834
- quantity: number;
835
- discount_amount: number;
836
- discount_rate: number;
837
- };
838
- target_before?: {
839
- value: number;
840
- quantity: number;
841
- discount_amount: number;
842
- discount_rate: number;
843
- } | undefined;
844
- target_after?: {
845
- value: number;
846
- quantity: number;
847
- discount_amount: number;
848
- discount_rate: number;
849
- } | undefined;
850
- error?: string | undefined;
851
- }[];
852
- customer: {
853
- customer_info: {
854
- display_name: string;
855
- first_name: string;
856
- middle_name?: string | undefined;
857
- last_name: string;
858
- second_last_name?: string | undefined;
859
- email: string;
860
- phone: string;
861
- gender?: "FEMALE" | "MALE" | undefined;
862
- dob?: string | undefined;
863
- document_type?: "CI" | "DNI" | "OTHER" | "PASSPORT" | "RUC" | undefined;
864
- document_number?: string | undefined;
865
- city?: string | undefined;
866
- country?: string | undefined;
867
- };
868
- address_info?: {
869
- address_line1: string;
870
- address_line2?: string | undefined;
871
- city?: string | undefined;
872
- state?: string | undefined;
873
- zip?: string | undefined;
874
- country?: string | undefined;
875
- reference?: string | undefined;
876
- latitude?: number | undefined;
877
- longitude?: number | undefined;
878
- instructions?: string | undefined;
879
- metadata: Record<string, unknown> | null;
880
- } | null | undefined;
881
- billing_info?: {
882
- type: "BUSINESS" | "INDIVIDUAL";
883
- legal_name: string;
884
- address_line1: string;
885
- address_line2?: string | undefined;
886
- city?: string | undefined;
887
- state?: string | undefined;
888
- zip?: string | undefined;
889
- country?: string | undefined;
890
- tax_id: string;
891
- tax_id_type: "CI" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
892
- metadata: Record<string, unknown> | null;
893
- } | null | undefined;
894
- };
895
- payment_intents: {
896
- id?: string | undefined;
897
- payment_id?: string | undefined;
898
- method: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "WALLET";
899
- provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
900
- collect_at: "COUNTER" | "DEVICE" | "DOOR" | "KIOSK" | "OTHER";
901
- status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
902
- totals: {
903
- currency: string;
904
- subtotal: number;
905
- discount_rate: number;
906
- discount_total: number;
907
- tax_rate: number;
908
- tax_total: number;
909
- total: number;
910
- };
911
- error_message?: string | undefined;
912
- placed_at: string;
913
- resolved_at?: string | undefined;
914
- metadata: Record<string, unknown>;
915
- }[];
916
- totals: {
917
- currency: string;
918
- subtotal: number;
919
- discount_rate: number;
920
- discount_total: number;
921
- tax_rate: number;
922
- tax_total: number;
923
- total: number;
924
- };
925
- metadata: Record<string, unknown>;
926
- payment_status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
927
- fulfillment_status: string;
928
- status: "CANCELLED" | "CLOSED" | "COMPLETED" | "OPEN" | "REFUNDED" | "REVERSED" | "VOIDED";
929
- issued_at?: string | null | undefined;
930
- resolved_at?: string | null | undefined;
931
- }>;
932
- declare const getOrderFulfillment: (id: string, options?: ServiceHttpOptions) => Promise<{
933
- uid: string;
934
- id: string;
935
- order_id: string;
936
- fulfillment_id: string;
937
- workflow: {
938
- nodes: {
939
- id: string;
940
- type: "fulfillmentStep";
941
- position: {
942
- x: number;
943
- y: number;
944
- };
945
- data: {
946
- kind: "join" | "start" | "state" | "terminal";
947
- label: Record<string, string>;
948
- description?: Record<string, string> | undefined;
949
- mappedStatus: string;
950
- milestone?: string | undefined;
951
- checkout_release?: boolean | undefined;
952
- joinPolicy?: "all" | "any" | undefined;
953
- actions?: {
954
- id: string;
955
- type: "invoke_callback" | "notify_webhook";
956
- webhook_ids?: string[] | undefined;
957
- callback_ids?: string[] | undefined;
958
- }[] | undefined;
959
- entered_at?: string | undefined;
960
- exited_at?: string | undefined;
961
- logs?: {
962
- type: "error" | "info" | "success" | "warning";
963
- message: string;
964
- at: string;
965
- actor_name?: string | undefined;
966
- actor_avatar_url?: string | undefined;
967
- }[] | undefined;
968
- callback_run?: {
969
- attempt: number;
970
- errors: {
971
- attempt: number;
972
- at: string;
973
- message: string;
974
- status?: number | undefined;
975
- body?: unknown;
976
- started_at?: string | undefined;
977
- duration_ms?: number | undefined;
978
- }[];
979
- response?: unknown;
980
- started_at?: string | undefined;
981
- finished_at?: string | undefined;
982
- duration_ms?: number | undefined;
983
- } | undefined;
984
- webhook_runs?: {
985
- id: string;
986
- webhook_id: string;
987
- alias?: string | null | undefined;
988
- url: string;
989
- type: string;
990
- status: string;
991
- started_at: string;
992
- finished_at: string;
993
- duration_ms: number;
994
- ok: boolean;
995
- http_status?: number | undefined;
996
- error?: string | undefined;
997
- }[] | undefined;
998
- manual_advance?: {
999
- reason: string;
1000
- to_status: string;
1001
- at: string;
1002
- actor_name?: string | undefined;
1003
- actor_avatar_url?: string | undefined;
1004
- } | undefined;
1005
- };
1006
- }[];
1007
- edges: {
1008
- id: string;
1009
- source: string;
1010
- target: string;
1011
- type?: "fulfillmentEdge" | undefined;
1012
- sourceHandle?: string | null | undefined;
1013
- targetHandle?: string | null | undefined;
1014
- data?: {
1015
- label?: string | undefined;
1016
- pathKind?: "cancel" | "default" | "refund" | "success" | undefined;
1017
- conditions?: ({
1018
- interpretation?: "both" | "client" | "server" | undefined;
1019
- product_id?: string | undefined;
1020
- tag?: string | undefined;
1021
- fulfillment_id: string;
1022
- store_id: string;
1023
- channel_id: string;
1024
- brand_id: string;
1025
- primitive: "string";
1026
- type: "Failure message" | "Order includes product with tag" | "Request path";
1027
- operator: "contains" | "ends with" | "equal to" | "not equal to" | "starts with";
1028
- caseInsensitive?: boolean | undefined;
1029
- value: string;
1030
- invalidMessage?: string | undefined;
1031
- } | {
1032
- interpretation?: "both" | "client" | "server" | undefined;
1033
- product_id?: string | undefined;
1034
- tag?: string | undefined;
1035
- fulfillment_id: string;
1036
- store_id: string;
1037
- channel_id: string;
1038
- brand_id: string;
1039
- primitive: "number";
1040
- type: "API error rate" | "Accumulated events" | "Cart product count" | "Customer age" | "HTTP status" | "Order includes product" | "Order includes product with tag";
1041
- operator: "equal to" | "greater than" | "greater than or equal to" | "less than" | "less than or equal to" | "not equal to";
1042
- value: number;
1043
- include_modifiers?: boolean | undefined;
1044
- window_minutes?: number | undefined;
1045
- invalidMessage?: string | undefined;
1046
- } | {
1047
- interpretation?: "both" | "client" | "server" | undefined;
1048
- product_id?: string | undefined;
1049
- tag?: string | undefined;
1050
- fulfillment_id: string;
1051
- store_id: string;
1052
- channel_id: string;
1053
- brand_id: string;
1054
- primitive: "currency";
1055
- type: "Order includes product with tag" | "Order total";
1056
- operator: "equal to" | "greater than" | "greater than or equal to" | "less than" | "less than or equal to" | "not equal to";
1057
- value: number;
1058
- invalidMessage?: string | undefined;
1059
- } | {
1060
- interpretation?: "both" | "client" | "server" | undefined;
1061
- product_id?: string | undefined;
1062
- tag?: string | undefined;
1063
- fulfillment_id: string;
1064
- store_id: string;
1065
- channel_id: string;
1066
- brand_id: string;
1067
- primitive: "boolean";
1068
- type: "Customer is anonymous" | "Is anonymous order" | "Order includes product with tag";
1069
- operator: "is" | "is not";
1070
- value: boolean;
1071
- invalidMessage?: string | undefined;
1072
- } | {
1073
- interpretation?: "both" | "client" | "server" | undefined;
1074
- primitive: "enum";
1075
- type: "Payment collect at" | "Payment method" | "Payment status";
1076
- operator: "is" | "is any of" | "is none of" | "is not";
1077
- value: string | string[];
1078
- invalidMessage?: string | undefined;
1079
- } | {
1080
- interpretation?: "both" | "client" | "server" | undefined;
1081
- primitive: "absolute date";
1082
- type: "Today";
1083
- operator: "is" | "is after" | "is before" | "is not";
1084
- value: Date;
1085
- invalidMessage?: string | undefined;
1086
- } | {
1087
- interpretation?: "both" | "client" | "server" | undefined;
1088
- primitive: "relative date";
1089
- type: "Birthday" | "Customer last session" | "Customer last visit" | "Registration";
1090
- operator: "occurred" | "occurred in the last" | "occurred more than";
1091
- value: string;
1092
- invalidMessage?: string | undefined;
1093
- } | {
1094
- interpretation?: "both" | "client" | "server" | undefined;
1095
- primitive: "recurring date";
1096
- type: "Current date";
1097
- operator: "falls within period";
1098
- startDate: Date;
1099
- endDate: Date;
1100
- allDay: boolean;
1101
- repeat: "CUSTOM" | "DAILY" | "FORTNIGHTLY" | "LAST_DAY_OF_MONTH" | "MONTHLY" | "NONE" | "WEEKDAYS" | "WEEKENDS" | "WEEKLY" | "WEEK_OF_MONTH";
1102
- value: string;
1103
- invalidMessage?: string | undefined;
1104
- } | {
1105
- interpretation?: "both" | "client" | "server" | undefined;
1106
- primitive: "custom";
1107
- type: "Brand" | "Brands" | "Channel" | "Channels" | "Fulfillment" | "Fulfillments" | "Payment" | "Payments" | "Store" | "Stores";
1108
- operator: "is" | "is all of" | "is any of" | "is none of" | "is not";
1109
- value: string;
1110
- label_ids?: string[] | undefined;
1111
- invalidMessage?: string | undefined;
1112
- })[][] | undefined;
1113
- taken_at?: string | undefined;
1114
- } | undefined;
1115
- }[];
1116
- viewport?: {
1117
- x: number;
1118
- y: number;
1119
- zoom: number;
1120
- } | undefined;
1121
- };
1122
- current_node_ids: string[];
1123
- step: "ACCEPTING" | "FINALIZE" | "PAUSE_FOR_ADVANCE" | "PROCESS_STATE_NODE" | "ROLLBACK_ACCEPT" | "ROLLBACK_PROCESS_STATE_NODE" | "WARN_NO_EDGE";
1124
- status: "FAILED" | "PROCESSING" | "SUCCESS" | "WAITING";
1125
- steps_logs: {
1126
- started_at: string;
1127
- ended_at: string | null;
1128
- step: "ACCEPTING" | "FINALIZE" | "PAUSE_FOR_ADVANCE" | "PROCESS_STATE_NODE" | "ROLLBACK_ACCEPT" | "ROLLBACK_PROCESS_STATE_NODE" | "WARN_NO_EDGE";
1129
- logs: {
1130
- type: "error" | "info" | "success" | "warning";
1131
- message: string;
1132
- }[];
1133
- }[];
1134
- warning_count: number;
1135
- checkout_state: "failed" | "pending" | "released";
1136
- error: {
1137
- node_id?: string | undefined;
1138
- status?: string | undefined;
1139
- message: string;
1140
- } | null;
1141
- customer_id: string;
1142
- payment_status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
1143
- fulfillment_status: string;
1144
- }>;
1145
- declare const listOrderFulfillments: (ids: string[], options?: ServiceHttpOptions) => Promise<{
1146
- uid: string;
1147
- id: string;
1148
- order_id: string;
1149
- fulfillment_id: string;
1150
- workflow: {
1151
- nodes: {
1152
- id: string;
1153
- type: "fulfillmentStep";
1154
- position: {
1155
- x: number;
1156
- y: number;
1157
- };
1158
- data: {
1159
- kind: "join" | "start" | "state" | "terminal";
1160
- label: Record<string, string>;
1161
- description?: Record<string, string> | undefined;
1162
- mappedStatus: string;
1163
- milestone?: string | undefined;
1164
- checkout_release?: boolean | undefined;
1165
- joinPolicy?: "all" | "any" | undefined;
1166
- actions?: {
1167
- id: string;
1168
- type: "invoke_callback" | "notify_webhook";
1169
- webhook_ids?: string[] | undefined;
1170
- callback_ids?: string[] | undefined;
1171
- }[] | undefined;
1172
- entered_at?: string | undefined;
1173
- exited_at?: string | undefined;
1174
- logs?: {
1175
- type: "error" | "info" | "success" | "warning";
1176
- message: string;
1177
- at: string;
1178
- actor_name?: string | undefined;
1179
- actor_avatar_url?: string | undefined;
1180
- }[] | undefined;
1181
- callback_run?: {
1182
- attempt: number;
1183
- errors: {
1184
- attempt: number;
1185
- at: string;
1186
- message: string;
1187
- status?: number | undefined;
1188
- body?: unknown;
1189
- started_at?: string | undefined;
1190
- duration_ms?: number | undefined;
1191
- }[];
1192
- response?: unknown;
1193
- started_at?: string | undefined;
1194
- finished_at?: string | undefined;
1195
- duration_ms?: number | undefined;
1196
- } | undefined;
1197
- webhook_runs?: {
1198
- id: string;
1199
- webhook_id: string;
1200
- alias?: string | null | undefined;
1201
- url: string;
1202
- type: string;
1203
- status: string;
1204
- started_at: string;
1205
- finished_at: string;
1206
- duration_ms: number;
1207
- ok: boolean;
1208
- http_status?: number | undefined;
1209
- error?: string | undefined;
1210
- }[] | undefined;
1211
- manual_advance?: {
1212
- reason: string;
1213
- to_status: string;
1214
- at: string;
1215
- actor_name?: string | undefined;
1216
- actor_avatar_url?: string | undefined;
1217
- } | undefined;
1218
- };
1219
- }[];
1220
- edges: {
1221
- id: string;
1222
- source: string;
1223
- target: string;
1224
- type?: "fulfillmentEdge" | undefined;
1225
- sourceHandle?: string | null | undefined;
1226
- targetHandle?: string | null | undefined;
1227
- data?: {
1228
- label?: string | undefined;
1229
- pathKind?: "cancel" | "default" | "refund" | "success" | undefined;
1230
- conditions?: ({
1231
- interpretation?: "both" | "client" | "server" | undefined;
1232
- product_id?: string | undefined;
1233
- tag?: string | undefined;
1234
- fulfillment_id: string;
1235
- store_id: string;
1236
- channel_id: string;
1237
- brand_id: string;
1238
- primitive: "string";
1239
- type: "Failure message" | "Order includes product with tag" | "Request path";
1240
- operator: "contains" | "ends with" | "equal to" | "not equal to" | "starts with";
1241
- caseInsensitive?: boolean | undefined;
1242
- value: string;
1243
- invalidMessage?: string | undefined;
1244
- } | {
1245
- interpretation?: "both" | "client" | "server" | undefined;
1246
- product_id?: string | undefined;
1247
- tag?: string | undefined;
1248
- fulfillment_id: string;
1249
- store_id: string;
1250
- channel_id: string;
1251
- brand_id: string;
1252
- primitive: "number";
1253
- type: "API error rate" | "Accumulated events" | "Cart product count" | "Customer age" | "HTTP status" | "Order includes product" | "Order includes product with tag";
1254
- operator: "equal to" | "greater than" | "greater than or equal to" | "less than" | "less than or equal to" | "not equal to";
1255
- value: number;
1256
- include_modifiers?: boolean | undefined;
1257
- window_minutes?: number | undefined;
1258
- invalidMessage?: string | undefined;
1259
- } | {
1260
- interpretation?: "both" | "client" | "server" | undefined;
1261
- product_id?: string | undefined;
1262
- tag?: string | undefined;
1263
- fulfillment_id: string;
1264
- store_id: string;
1265
- channel_id: string;
1266
- brand_id: string;
1267
- primitive: "currency";
1268
- type: "Order includes product with tag" | "Order total";
1269
- operator: "equal to" | "greater than" | "greater than or equal to" | "less than" | "less than or equal to" | "not equal to";
1270
- value: number;
1271
- invalidMessage?: string | undefined;
1272
- } | {
1273
- interpretation?: "both" | "client" | "server" | undefined;
1274
- product_id?: string | undefined;
1275
- tag?: string | undefined;
1276
- fulfillment_id: string;
1277
- store_id: string;
1278
- channel_id: string;
1279
- brand_id: string;
1280
- primitive: "boolean";
1281
- type: "Customer is anonymous" | "Is anonymous order" | "Order includes product with tag";
1282
- operator: "is" | "is not";
1283
- value: boolean;
1284
- invalidMessage?: string | undefined;
1285
- } | {
1286
- interpretation?: "both" | "client" | "server" | undefined;
1287
- primitive: "enum";
1288
- type: "Payment collect at" | "Payment method" | "Payment status";
1289
- operator: "is" | "is any of" | "is none of" | "is not";
1290
- value: string | string[];
1291
- invalidMessage?: string | undefined;
1292
- } | {
1293
- interpretation?: "both" | "client" | "server" | undefined;
1294
- primitive: "absolute date";
1295
- type: "Today";
1296
- operator: "is" | "is after" | "is before" | "is not";
1297
- value: Date;
1298
- invalidMessage?: string | undefined;
1299
- } | {
1300
- interpretation?: "both" | "client" | "server" | undefined;
1301
- primitive: "relative date";
1302
- type: "Birthday" | "Customer last session" | "Customer last visit" | "Registration";
1303
- operator: "occurred" | "occurred in the last" | "occurred more than";
1304
- value: string;
1305
- invalidMessage?: string | undefined;
1306
- } | {
1307
- interpretation?: "both" | "client" | "server" | undefined;
1308
- primitive: "recurring date";
1309
- type: "Current date";
1310
- operator: "falls within period";
1311
- startDate: Date;
1312
- endDate: Date;
1313
- allDay: boolean;
1314
- repeat: "CUSTOM" | "DAILY" | "FORTNIGHTLY" | "LAST_DAY_OF_MONTH" | "MONTHLY" | "NONE" | "WEEKDAYS" | "WEEKENDS" | "WEEKLY" | "WEEK_OF_MONTH";
1315
- value: string;
1316
- invalidMessage?: string | undefined;
1317
- } | {
1318
- interpretation?: "both" | "client" | "server" | undefined;
1319
- primitive: "custom";
1320
- type: "Brand" | "Brands" | "Channel" | "Channels" | "Fulfillment" | "Fulfillments" | "Payment" | "Payments" | "Store" | "Stores";
1321
- operator: "is" | "is all of" | "is any of" | "is none of" | "is not";
1322
- value: string;
1323
- label_ids?: string[] | undefined;
1324
- invalidMessage?: string | undefined;
1325
- })[][] | undefined;
1326
- taken_at?: string | undefined;
1327
- } | undefined;
1328
- }[];
1329
- viewport?: {
1330
- x: number;
1331
- y: number;
1332
- zoom: number;
1333
- } | undefined;
1334
- };
1335
- current_node_ids: string[];
1336
- step: "ACCEPTING" | "FINALIZE" | "PAUSE_FOR_ADVANCE" | "PROCESS_STATE_NODE" | "ROLLBACK_ACCEPT" | "ROLLBACK_PROCESS_STATE_NODE" | "WARN_NO_EDGE";
1337
- status: "FAILED" | "PROCESSING" | "SUCCESS" | "WAITING";
1338
- steps_logs: {
1339
- started_at: string;
1340
- ended_at: string | null;
1341
- step: "ACCEPTING" | "FINALIZE" | "PAUSE_FOR_ADVANCE" | "PROCESS_STATE_NODE" | "ROLLBACK_ACCEPT" | "ROLLBACK_PROCESS_STATE_NODE" | "WARN_NO_EDGE";
1342
- logs: {
1343
- type: "error" | "info" | "success" | "warning";
1344
- message: string;
1345
- }[];
1346
- }[];
1347
- warning_count: number;
1348
- checkout_state: "failed" | "pending" | "released";
1349
- error: {
1350
- node_id?: string | undefined;
1351
- status?: string | undefined;
1352
- message: string;
1353
- } | null;
1354
- customer_id: string;
1355
- payment_status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
1356
- fulfillment_status: string;
1357
- }[]>;
1358
- declare const updateOrder: (id: string, body: OrderUpdateInput, options?: ServiceHttpOptions) => Promise<{
1359
- uid: string;
1360
- id: string;
1361
- brand_id?: string | null | undefined;
1362
- store_id: string;
1363
- channel_id: string;
1364
- customer_id: string;
1365
- fulfillment_id: string;
1366
- is_anonymous: boolean;
1367
- lines: {
1368
- type: "FEE" | "PRODUCT";
1369
- uid: string;
1370
- id: string;
1371
- parent_uid: string | null;
1372
- parent_id: string | null;
1373
- name: string;
1374
- image_url?: string | undefined;
1375
- menu_id?: string | undefined;
1376
- internal_attribution_source?: string | undefined;
1377
- internal_attribution_id?: string | undefined;
1378
- metadata: Record<string, unknown>;
1379
- bundled_items: {
1380
- id: string;
1381
- refund_price: number;
1382
- included_quantity: number;
1383
- }[];
1384
- redeem: {
1385
- reward_id: string;
1386
- quantity: number;
1387
- discount_rate?: number | undefined;
1388
- discount_amount?: number | undefined;
1389
- expires_at?: string | undefined;
1390
- }[];
1391
- quantity: number;
1392
- tax_rate: number | null;
1393
- discount_rate: number;
1394
- unit_subtotal: number;
1395
- unit_discount: number;
1396
- unit_tax_total: number;
1397
- unit_total: number;
1398
- subtotal: number;
1399
- discount_total: number;
1400
- tax_total: number;
1401
- total: number;
1402
- unit_group_subtotal: number;
1403
- unit_group_discount: number;
1404
- unit_group_tax_total: number;
1405
- unit_group_total: number;
1406
- group_subtotal: number;
1407
- group_discount: number;
1408
- group_tax_total: number;
1409
- group_total: number;
1410
- }[];
1411
- redeem: {
1412
- reward_id: string;
1413
- quantity: number;
1414
- discount_rate?: number | undefined;
1415
- discount_amount?: number | undefined;
1416
- expires_at?: string | undefined;
1417
- }[];
1418
- redemption_steps: {
1419
- reward_id: string;
1420
- reward_quantity: number;
1421
- target: "LINE" | "ORDER";
1422
- target_id?: string | undefined;
1423
- action: "CREATE" | "DELETE" | "READ" | "UPDATE";
1424
- discount_amount: number;
1425
- before: {
1426
- value: number;
1427
- quantity: number;
1428
- discount_amount: number;
1429
- discount_rate: number;
1430
- };
1431
- after: {
1432
- value: number;
1433
- quantity: number;
1434
- discount_amount: number;
1435
- discount_rate: number;
1436
- };
1437
- target_before?: {
1438
- value: number;
1439
- quantity: number;
1440
- discount_amount: number;
1441
- discount_rate: number;
1442
- } | undefined;
1443
- target_after?: {
1444
- value: number;
1445
- quantity: number;
1446
- discount_amount: number;
1447
- discount_rate: number;
1448
- } | undefined;
1449
- error?: string | undefined;
1450
- }[];
1451
- customer: {
1452
- customer_info: {
1453
- display_name: string;
1454
- first_name: string;
1455
- middle_name?: string | undefined;
1456
- last_name: string;
1457
- second_last_name?: string | undefined;
1458
- email: string;
1459
- phone: string;
1460
- gender?: "FEMALE" | "MALE" | undefined;
1461
- dob?: string | undefined;
1462
- document_type?: "CI" | "DNI" | "OTHER" | "PASSPORT" | "RUC" | undefined;
1463
- document_number?: string | undefined;
1464
- city?: string | undefined;
1465
- country?: string | undefined;
1466
- };
1467
- address_info?: {
1468
- address_line1: string;
1469
- address_line2?: string | undefined;
1470
- city?: string | undefined;
1471
- state?: string | undefined;
1472
- zip?: string | undefined;
1473
- country?: string | undefined;
1474
- reference?: string | undefined;
1475
- latitude?: number | undefined;
1476
- longitude?: number | undefined;
1477
- instructions?: string | undefined;
1478
- metadata: Record<string, unknown> | null;
1479
- } | null | undefined;
1480
- billing_info?: {
1481
- type: "BUSINESS" | "INDIVIDUAL";
1482
- legal_name: string;
1483
- address_line1: string;
1484
- address_line2?: string | undefined;
1485
- city?: string | undefined;
1486
- state?: string | undefined;
1487
- zip?: string | undefined;
1488
- country?: string | undefined;
1489
- tax_id: string;
1490
- tax_id_type: "CI" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
1491
- metadata: Record<string, unknown> | null;
1492
- } | null | undefined;
1493
- };
1494
- payment_intents: {
1495
- id?: string | undefined;
1496
- payment_id?: string | undefined;
1497
- method: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "WALLET";
1498
- provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
1499
- collect_at: "COUNTER" | "DEVICE" | "DOOR" | "KIOSK" | "OTHER";
1500
- status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
1501
- totals: {
1502
- currency: string;
1503
- subtotal: number;
1504
- discount_rate: number;
1505
- discount_total: number;
1506
- tax_rate: number;
1507
- tax_total: number;
1508
- total: number;
1509
- };
1510
- error_message?: string | undefined;
1511
- placed_at: string;
1512
- resolved_at?: string | undefined;
1513
- metadata: Record<string, unknown>;
1514
- }[];
1515
- totals: {
1516
- currency: string;
1517
- subtotal: number;
1518
- discount_rate: number;
1519
- discount_total: number;
1520
- tax_rate: number;
1521
- tax_total: number;
1522
- total: number;
1523
- };
1524
- metadata: Record<string, unknown>;
1525
- payment_status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
1526
- fulfillment_status: string;
1527
- status: "CANCELLED" | "CLOSED" | "COMPLETED" | "OPEN" | "REFUNDED" | "REVERSED" | "VOIDED";
1528
- issued_at?: string | null | undefined;
1529
- resolved_at?: string | null | undefined;
1530
- }>;
1531
- declare const cancelOrder: (id: string, options?: ServiceHttpOptions) => Promise<{
1532
- uid: string;
1533
- id: string;
1534
- brand_id?: string | null | undefined;
1535
- store_id: string;
1536
- channel_id: string;
1537
- customer_id: string;
1538
- fulfillment_id: string;
1539
- is_anonymous: boolean;
1540
- lines: {
1541
- type: "FEE" | "PRODUCT";
1542
- uid: string;
1543
- id: string;
1544
- parent_uid: string | null;
1545
- parent_id: string | null;
1546
- name: string;
1547
- image_url?: string | undefined;
1548
- menu_id?: string | undefined;
1549
- internal_attribution_source?: string | undefined;
1550
- internal_attribution_id?: string | undefined;
1551
- metadata: Record<string, unknown>;
1552
- bundled_items: {
1553
- id: string;
1554
- refund_price: number;
1555
- included_quantity: number;
1556
- }[];
1557
- redeem: {
1558
- reward_id: string;
1559
- quantity: number;
1560
- discount_rate?: number | undefined;
1561
- discount_amount?: number | undefined;
1562
- expires_at?: string | undefined;
1563
- }[];
1564
- quantity: number;
1565
- tax_rate: number | null;
1566
- discount_rate: number;
1567
- unit_subtotal: number;
1568
- unit_discount: number;
1569
- unit_tax_total: number;
1570
- unit_total: number;
1571
- subtotal: number;
1572
- discount_total: number;
1573
- tax_total: number;
1574
- total: number;
1575
- unit_group_subtotal: number;
1576
- unit_group_discount: number;
1577
- unit_group_tax_total: number;
1578
- unit_group_total: number;
1579
- group_subtotal: number;
1580
- group_discount: number;
1581
- group_tax_total: number;
1582
- group_total: number;
1583
- }[];
1584
- redeem: {
1585
- reward_id: string;
1586
- quantity: number;
1587
- discount_rate?: number | undefined;
1588
- discount_amount?: number | undefined;
1589
- expires_at?: string | undefined;
1590
- }[];
1591
- redemption_steps: {
1592
- reward_id: string;
1593
- reward_quantity: number;
1594
- target: "LINE" | "ORDER";
1595
- target_id?: string | undefined;
1596
- action: "CREATE" | "DELETE" | "READ" | "UPDATE";
1597
- discount_amount: number;
1598
- before: {
1599
- value: number;
1600
- quantity: number;
1601
- discount_amount: number;
1602
- discount_rate: number;
1603
- };
1604
- after: {
1605
- value: number;
1606
- quantity: number;
1607
- discount_amount: number;
1608
- discount_rate: number;
1609
- };
1610
- target_before?: {
1611
- value: number;
1612
- quantity: number;
1613
- discount_amount: number;
1614
- discount_rate: number;
1615
- } | undefined;
1616
- target_after?: {
1617
- value: number;
1618
- quantity: number;
1619
- discount_amount: number;
1620
- discount_rate: number;
1621
- } | undefined;
1622
- error?: string | undefined;
1623
- }[];
1624
- customer: {
1625
- customer_info: {
1626
- display_name: string;
1627
- first_name: string;
1628
- middle_name?: string | undefined;
1629
- last_name: string;
1630
- second_last_name?: string | undefined;
1631
- email: string;
1632
- phone: string;
1633
- gender?: "FEMALE" | "MALE" | undefined;
1634
- dob?: string | undefined;
1635
- document_type?: "CI" | "DNI" | "OTHER" | "PASSPORT" | "RUC" | undefined;
1636
- document_number?: string | undefined;
1637
- city?: string | undefined;
1638
- country?: string | undefined;
1639
- };
1640
- address_info?: {
1641
- address_line1: string;
1642
- address_line2?: string | undefined;
1643
- city?: string | undefined;
1644
- state?: string | undefined;
1645
- zip?: string | undefined;
1646
- country?: string | undefined;
1647
- reference?: string | undefined;
1648
- latitude?: number | undefined;
1649
- longitude?: number | undefined;
1650
- instructions?: string | undefined;
1651
- metadata: Record<string, unknown> | null;
1652
- } | null | undefined;
1653
- billing_info?: {
1654
- type: "BUSINESS" | "INDIVIDUAL";
1655
- legal_name: string;
1656
- address_line1: string;
1657
- address_line2?: string | undefined;
1658
- city?: string | undefined;
1659
- state?: string | undefined;
1660
- zip?: string | undefined;
1661
- country?: string | undefined;
1662
- tax_id: string;
1663
- tax_id_type: "CI" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
1664
- metadata: Record<string, unknown> | null;
1665
- } | null | undefined;
1666
- };
1667
- payment_intents: {
1668
- id?: string | undefined;
1669
- payment_id?: string | undefined;
1670
- method: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "WALLET";
1671
- provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
1672
- collect_at: "COUNTER" | "DEVICE" | "DOOR" | "KIOSK" | "OTHER";
1673
- status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
1674
- totals: {
1675
- currency: string;
1676
- subtotal: number;
1677
- discount_rate: number;
1678
- discount_total: number;
1679
- tax_rate: number;
1680
- tax_total: number;
1681
- total: number;
1682
- };
1683
- error_message?: string | undefined;
1684
- placed_at: string;
1685
- resolved_at?: string | undefined;
1686
- metadata: Record<string, unknown>;
1687
- }[];
1688
- totals: {
1689
- currency: string;
1690
- subtotal: number;
1691
- discount_rate: number;
1692
- discount_total: number;
1693
- tax_rate: number;
1694
- tax_total: number;
1695
- total: number;
1696
- };
1697
- metadata: Record<string, unknown>;
1698
- payment_status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
1699
- fulfillment_status: string;
1700
- status: "CANCELLED" | "CLOSED" | "COMPLETED" | "OPEN" | "REFUNDED" | "REVERSED" | "VOIDED";
1701
- issued_at?: string | null | undefined;
1702
- resolved_at?: string | null | undefined;
1703
- }>;
1704
- declare const refundOrder: (id: string, options?: ServiceHttpOptions) => Promise<{
1705
- uid: string;
1706
- id: string;
1707
- brand_id?: string | null | undefined;
1708
- store_id: string;
1709
- channel_id: string;
1710
- customer_id: string;
1711
- fulfillment_id: string;
1712
- is_anonymous: boolean;
1713
- lines: {
1714
- type: "FEE" | "PRODUCT";
1715
- uid: string;
1716
- id: string;
1717
- parent_uid: string | null;
1718
- parent_id: string | null;
1719
- name: string;
1720
- image_url?: string | undefined;
1721
- menu_id?: string | undefined;
1722
- internal_attribution_source?: string | undefined;
1723
- internal_attribution_id?: string | undefined;
1724
- metadata: Record<string, unknown>;
1725
- bundled_items: {
1726
- id: string;
1727
- refund_price: number;
1728
- included_quantity: number;
1729
- }[];
1730
- redeem: {
1731
- reward_id: string;
1732
- quantity: number;
1733
- discount_rate?: number | undefined;
1734
- discount_amount?: number | undefined;
1735
- expires_at?: string | undefined;
1736
- }[];
1737
- quantity: number;
1738
- tax_rate: number | null;
1739
- discount_rate: number;
1740
- unit_subtotal: number;
1741
- unit_discount: number;
1742
- unit_tax_total: number;
1743
- unit_total: number;
1744
- subtotal: number;
1745
- discount_total: number;
1746
- tax_total: number;
1747
- total: number;
1748
- unit_group_subtotal: number;
1749
- unit_group_discount: number;
1750
- unit_group_tax_total: number;
1751
- unit_group_total: number;
1752
- group_subtotal: number;
1753
- group_discount: number;
1754
- group_tax_total: number;
1755
- group_total: number;
1756
- }[];
1757
- redeem: {
1758
- reward_id: string;
1759
- quantity: number;
1760
- discount_rate?: number | undefined;
1761
- discount_amount?: number | undefined;
1762
- expires_at?: string | undefined;
1763
- }[];
1764
- redemption_steps: {
1765
- reward_id: string;
1766
- reward_quantity: number;
1767
- target: "LINE" | "ORDER";
1768
- target_id?: string | undefined;
1769
- action: "CREATE" | "DELETE" | "READ" | "UPDATE";
1770
- discount_amount: number;
1771
- before: {
1772
- value: number;
1773
- quantity: number;
1774
- discount_amount: number;
1775
- discount_rate: number;
1776
- };
1777
- after: {
1778
- value: number;
1779
- quantity: number;
1780
- discount_amount: number;
1781
- discount_rate: number;
1782
- };
1783
- target_before?: {
1784
- value: number;
1785
- quantity: number;
1786
- discount_amount: number;
1787
- discount_rate: number;
1788
- } | undefined;
1789
- target_after?: {
1790
- value: number;
1791
- quantity: number;
1792
- discount_amount: number;
1793
- discount_rate: number;
1794
- } | undefined;
1795
- error?: string | undefined;
1796
- }[];
1797
- customer: {
1798
- customer_info: {
1799
- display_name: string;
1800
- first_name: string;
1801
- middle_name?: string | undefined;
1802
- last_name: string;
1803
- second_last_name?: string | undefined;
1804
- email: string;
1805
- phone: string;
1806
- gender?: "FEMALE" | "MALE" | undefined;
1807
- dob?: string | undefined;
1808
- document_type?: "CI" | "DNI" | "OTHER" | "PASSPORT" | "RUC" | undefined;
1809
- document_number?: string | undefined;
1810
- city?: string | undefined;
1811
- country?: string | undefined;
1812
- };
1813
- address_info?: {
1814
- address_line1: string;
1815
- address_line2?: string | undefined;
1816
- city?: string | undefined;
1817
- state?: string | undefined;
1818
- zip?: string | undefined;
1819
- country?: string | undefined;
1820
- reference?: string | undefined;
1821
- latitude?: number | undefined;
1822
- longitude?: number | undefined;
1823
- instructions?: string | undefined;
1824
- metadata: Record<string, unknown> | null;
1825
- } | null | undefined;
1826
- billing_info?: {
1827
- type: "BUSINESS" | "INDIVIDUAL";
1828
- legal_name: string;
1829
- address_line1: string;
1830
- address_line2?: string | undefined;
1831
- city?: string | undefined;
1832
- state?: string | undefined;
1833
- zip?: string | undefined;
1834
- country?: string | undefined;
1835
- tax_id: string;
1836
- tax_id_type: "CI" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
1837
- metadata: Record<string, unknown> | null;
1838
- } | null | undefined;
1839
- };
1840
- payment_intents: {
1841
- id?: string | undefined;
1842
- payment_id?: string | undefined;
1843
- method: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "WALLET";
1844
- provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
1845
- collect_at: "COUNTER" | "DEVICE" | "DOOR" | "KIOSK" | "OTHER";
1846
- status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
1847
- totals: {
1848
- currency: string;
1849
- subtotal: number;
1850
- discount_rate: number;
1851
- discount_total: number;
1852
- tax_rate: number;
1853
- tax_total: number;
1854
- total: number;
1855
- };
1856
- error_message?: string | undefined;
1857
- placed_at: string;
1858
- resolved_at?: string | undefined;
1859
- metadata: Record<string, unknown>;
1860
- }[];
1861
- totals: {
1862
- currency: string;
1863
- subtotal: number;
1864
- discount_rate: number;
1865
- discount_total: number;
1866
- tax_rate: number;
1867
- tax_total: number;
1868
- total: number;
1869
- };
1870
- metadata: Record<string, unknown>;
1871
- payment_status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
1872
- fulfillment_status: string;
1873
- status: "CANCELLED" | "CLOSED" | "COMPLETED" | "OPEN" | "REFUNDED" | "REVERSED" | "VOIDED";
1874
- issued_at?: string | null | undefined;
1875
- resolved_at?: string | null | undefined;
1876
- }>;
1877
- declare const reorderOrder: (id: string, body?: OrderReorderInput, options?: ServiceHttpOptions) => Promise<{
1878
- uid: string;
1879
- id: string;
1880
- brand_id?: string | null | undefined;
1881
- store_id: string;
1882
- channel_id: string;
1883
- customer_id: string;
1884
- fulfillment_id: string;
1885
- is_anonymous: boolean;
1886
- lines: {
1887
- type: "FEE" | "PRODUCT";
1888
- uid: string;
1889
- id: string;
1890
- parent_uid: string | null;
1891
- parent_id: string | null;
1892
- name: string;
1893
- image_url?: string | undefined;
1894
- menu_id?: string | undefined;
1895
- internal_attribution_source?: string | undefined;
1896
- internal_attribution_id?: string | undefined;
1897
- metadata: Record<string, unknown>;
1898
- bundled_items: {
1899
- id: string;
1900
- refund_price: number;
1901
- included_quantity: number;
1902
- }[];
1903
- redeem: {
1904
- reward_id: string;
1905
- quantity: number;
1906
- discount_rate?: number | undefined;
1907
- discount_amount?: number | undefined;
1908
- expires_at?: string | undefined;
1909
- }[];
1910
- quantity: number;
1911
- tax_rate: number | null;
1912
- discount_rate: number;
1913
- unit_subtotal: number;
1914
- unit_discount: number;
1915
- unit_tax_total: number;
1916
- unit_total: number;
1917
- subtotal: number;
1918
- discount_total: number;
1919
- tax_total: number;
1920
- total: number;
1921
- unit_group_subtotal: number;
1922
- unit_group_discount: number;
1923
- unit_group_tax_total: number;
1924
- unit_group_total: number;
1925
- group_subtotal: number;
1926
- group_discount: number;
1927
- group_tax_total: number;
1928
- group_total: number;
1929
- }[];
1930
- redeem: {
1931
- reward_id: string;
1932
- quantity: number;
1933
- discount_rate?: number | undefined;
1934
- discount_amount?: number | undefined;
1935
- expires_at?: string | undefined;
1936
- }[];
1937
- redemption_steps: {
1938
- reward_id: string;
1939
- reward_quantity: number;
1940
- target: "LINE" | "ORDER";
1941
- target_id?: string | undefined;
1942
- action: "CREATE" | "DELETE" | "READ" | "UPDATE";
1943
- discount_amount: number;
1944
- before: {
1945
- value: number;
1946
- quantity: number;
1947
- discount_amount: number;
1948
- discount_rate: number;
1949
- };
1950
- after: {
1951
- value: number;
1952
- quantity: number;
1953
- discount_amount: number;
1954
- discount_rate: number;
1955
- };
1956
- target_before?: {
1957
- value: number;
1958
- quantity: number;
1959
- discount_amount: number;
1960
- discount_rate: number;
1961
- } | undefined;
1962
- target_after?: {
1963
- value: number;
1964
- quantity: number;
1965
- discount_amount: number;
1966
- discount_rate: number;
1967
- } | undefined;
1968
- error?: string | undefined;
1969
- }[];
1970
- customer: {
1971
- customer_info: {
1972
- display_name: string;
1973
- first_name: string;
1974
- middle_name?: string | undefined;
1975
- last_name: string;
1976
- second_last_name?: string | undefined;
1977
- email: string;
1978
- phone: string;
1979
- gender?: "FEMALE" | "MALE" | undefined;
1980
- dob?: string | undefined;
1981
- document_type?: "CI" | "DNI" | "OTHER" | "PASSPORT" | "RUC" | undefined;
1982
- document_number?: string | undefined;
1983
- city?: string | undefined;
1984
- country?: string | undefined;
1985
- };
1986
- address_info?: {
1987
- address_line1: string;
1988
- address_line2?: string | undefined;
1989
- city?: string | undefined;
1990
- state?: string | undefined;
1991
- zip?: string | undefined;
1992
- country?: string | undefined;
1993
- reference?: string | undefined;
1994
- latitude?: number | undefined;
1995
- longitude?: number | undefined;
1996
- instructions?: string | undefined;
1997
- metadata: Record<string, unknown> | null;
1998
- } | null | undefined;
1999
- billing_info?: {
2000
- type: "BUSINESS" | "INDIVIDUAL";
2001
- legal_name: string;
2002
- address_line1: string;
2003
- address_line2?: string | undefined;
2004
- city?: string | undefined;
2005
- state?: string | undefined;
2006
- zip?: string | undefined;
2007
- country?: string | undefined;
2008
- tax_id: string;
2009
- tax_id_type: "CI" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
2010
- metadata: Record<string, unknown> | null;
2011
- } | null | undefined;
2012
- };
2013
- payment_intents: {
2014
- id?: string | undefined;
2015
- payment_id?: string | undefined;
2016
- method: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "WALLET";
2017
- provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
2018
- collect_at: "COUNTER" | "DEVICE" | "DOOR" | "KIOSK" | "OTHER";
2019
- status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
2020
- totals: {
2021
- currency: string;
2022
- subtotal: number;
2023
- discount_rate: number;
2024
- discount_total: number;
2025
- tax_rate: number;
2026
- tax_total: number;
2027
- total: number;
2028
- };
2029
- error_message?: string | undefined;
2030
- placed_at: string;
2031
- resolved_at?: string | undefined;
2032
- metadata: Record<string, unknown>;
2033
- }[];
2034
- totals: {
2035
- currency: string;
2036
- subtotal: number;
2037
- discount_rate: number;
2038
- discount_total: number;
2039
- tax_rate: number;
2040
- tax_total: number;
2041
- total: number;
2042
- };
2043
- metadata: Record<string, unknown>;
2044
- payment_status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
2045
- fulfillment_status: string;
2046
- status: "CANCELLED" | "CLOSED" | "COMPLETED" | "OPEN" | "REFUNDED" | "REVERSED" | "VOIDED";
2047
- issued_at?: string | null | undefined;
2048
- resolved_at?: string | null | undefined;
2049
- }>;
239
+ declare const recordOrderPayment: (id: string, body: OrderRecordPaymentInput, options?: ServiceHttpOptions) => Promise<Order$1>;
240
+ declare const getOrderFulfillment: (id: string, options?: ServiceHttpOptions) => Promise<OrderFulfillment>;
241
+ declare const listOrderFulfillments: (ids: string[], options?: ServiceHttpOptions) => Promise<OrderFulfillment[]>;
242
+ declare const updateOrder: (id: string, body: OrderUpdateInput, options?: ServiceHttpOptions) => Promise<Order$1>;
243
+ declare const cancelOrder: (id: string, options?: ServiceHttpOptions) => Promise<Order$1>;
244
+ declare const refundOrder: (id: string, options?: ServiceHttpOptions) => Promise<Order$1>;
245
+ declare const reorderOrder: (id: string, body?: OrderReorderInput, options?: ServiceHttpOptions) => Promise<Order$1>;
2050
246
  declare const validateOrder: (body: OrderValidateInput, options?: ServiceHttpOptions) => Promise<OrderValidateOutput>;
2051
247
  //#endregion
2052
248
  //#region src/order/payments/orchestrator.d.ts
@@ -2235,144 +431,7 @@ declare class Order {
2235
431
  /** Environment, collect point and this device's `payment_settings`. */
2236
432
  setPaymentOptions(options: PaymentSessionOptions): void;
2237
433
  /** Merchant payments with an adapter installed and configured here. */
2238
- getPaymentOptions(payments: MerchantPayment[]): {
2239
- created_at: string;
2240
- updated_at: string;
2241
- deleted_at: string | null;
2242
- id: string;
2243
- payment_provider_id: string;
2244
- payment_method_id: string;
2245
- rules: {
2246
- minimum_order_value: number;
2247
- maximum_order_value: number;
2248
- }[];
2249
- conditions: ({
2250
- interpretation?: "both" | "client" | "server" | undefined;
2251
- product_id?: string | undefined;
2252
- tag?: string | undefined;
2253
- fulfillment_id: string;
2254
- store_id: string;
2255
- channel_id: string;
2256
- brand_id: string;
2257
- primitive: "string";
2258
- type: "Failure message" | "Order includes product with tag" | "Request path";
2259
- operator: "contains" | "ends with" | "equal to" | "not equal to" | "starts with";
2260
- caseInsensitive?: boolean | undefined;
2261
- value: string;
2262
- invalidMessage?: string | undefined;
2263
- } | {
2264
- interpretation?: "both" | "client" | "server" | undefined;
2265
- product_id?: string | undefined;
2266
- tag?: string | undefined;
2267
- fulfillment_id: string;
2268
- store_id: string;
2269
- channel_id: string;
2270
- brand_id: string;
2271
- primitive: "number";
2272
- type: "API error rate" | "Accumulated events" | "Cart product count" | "Customer age" | "HTTP status" | "Order includes product" | "Order includes product with tag";
2273
- operator: "equal to" | "greater than" | "greater than or equal to" | "less than" | "less than or equal to" | "not equal to";
2274
- value: number;
2275
- include_modifiers?: boolean | undefined;
2276
- window_minutes?: number | undefined;
2277
- invalidMessage?: string | undefined;
2278
- } | {
2279
- interpretation?: "both" | "client" | "server" | undefined;
2280
- product_id?: string | undefined;
2281
- tag?: string | undefined;
2282
- fulfillment_id: string;
2283
- store_id: string;
2284
- channel_id: string;
2285
- brand_id: string;
2286
- primitive: "currency";
2287
- type: "Order includes product with tag" | "Order total";
2288
- operator: "equal to" | "greater than" | "greater than or equal to" | "less than" | "less than or equal to" | "not equal to";
2289
- value: number;
2290
- invalidMessage?: string | undefined;
2291
- } | {
2292
- interpretation?: "both" | "client" | "server" | undefined;
2293
- product_id?: string | undefined;
2294
- tag?: string | undefined;
2295
- fulfillment_id: string;
2296
- store_id: string;
2297
- channel_id: string;
2298
- brand_id: string;
2299
- primitive: "boolean";
2300
- type: "Customer is anonymous" | "Is anonymous order" | "Order includes product with tag";
2301
- operator: "is" | "is not";
2302
- value: boolean;
2303
- invalidMessage?: string | undefined;
2304
- } | {
2305
- interpretation?: "both" | "client" | "server" | undefined;
2306
- primitive: "enum";
2307
- type: "Payment collect at" | "Payment method" | "Payment status";
2308
- operator: "is" | "is any of" | "is none of" | "is not";
2309
- value: string | string[];
2310
- invalidMessage?: string | undefined;
2311
- } | {
2312
- interpretation?: "both" | "client" | "server" | undefined;
2313
- primitive: "absolute date";
2314
- type: "Today";
2315
- operator: "is" | "is after" | "is before" | "is not";
2316
- value: Date;
2317
- invalidMessage?: string | undefined;
2318
- } | {
2319
- interpretation?: "both" | "client" | "server" | undefined;
2320
- primitive: "relative date";
2321
- type: "Birthday" | "Customer last session" | "Customer last visit" | "Registration";
2322
- operator: "occurred" | "occurred in the last" | "occurred more than";
2323
- value: string;
2324
- invalidMessage?: string | undefined;
2325
- } | {
2326
- interpretation?: "both" | "client" | "server" | undefined;
2327
- primitive: "recurring date";
2328
- type: "Current date";
2329
- operator: "falls within period";
2330
- startDate: Date;
2331
- endDate: Date;
2332
- allDay: boolean;
2333
- repeat: "CUSTOM" | "DAILY" | "FORTNIGHTLY" | "LAST_DAY_OF_MONTH" | "MONTHLY" | "NONE" | "WEEKDAYS" | "WEEKENDS" | "WEEKLY" | "WEEK_OF_MONTH";
2334
- value: string;
2335
- invalidMessage?: string | undefined;
2336
- } | {
2337
- interpretation?: "both" | "client" | "server" | undefined;
2338
- primitive: "custom";
2339
- type: "Brand" | "Brands" | "Channel" | "Channels" | "Fulfillment" | "Fulfillments" | "Payment" | "Payments" | "Store" | "Stores";
2340
- operator: "is" | "is all of" | "is any of" | "is none of" | "is not";
2341
- value: string;
2342
- label_ids?: string[] | undefined;
2343
- invalidMessage?: string | undefined;
2344
- })[][];
2345
- status: string;
2346
- provider: {
2347
- id: string;
2348
- provider_id: string;
2349
- name: string;
2350
- logo_url?: string | null | undefined;
2351
- };
2352
- method: {
2353
- id: string;
2354
- method: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "WALLET";
2355
- name: string;
2356
- version: string;
2357
- config?: {
2358
- [x: string]: unknown;
2359
- device_fields?: {
2360
- key: string;
2361
- label: string;
2362
- type: "boolean" | "number" | "password" | "select" | "text";
2363
- required: boolean;
2364
- secret: boolean;
2365
- options?: string[] | undefined;
2366
- visible_if?: Record<string, unknown> | undefined;
2367
- }[] | undefined;
2368
- qr_ttl_ms?: number | undefined;
2369
- terminal_models?: string[] | undefined;
2370
- supports_installments?: boolean | undefined;
2371
- } | undefined;
2372
- };
2373
- config: Record<string, unknown>;
2374
- has_conditions: boolean;
2375
- }[];
434
+ getPaymentOptions(payments: MerchantPayment[]): MerchantPayment[];
2376
435
  /** Device fields still missing for `payment` on this device. */
2377
436
  getMissingPaymentFields(payment: MerchantPayment): import("@fire-spark/payments").DeviceField[];
2378
437
  /** Order total minus PAID (and confirm-after-inject) intents. */
@@ -2516,48 +575,8 @@ declare const recomputeRedemptions: (input: {
2516
575
  redemption_steps: OrderRedemptionStep[];
2517
576
  currency: string;
2518
577
  }) => {
2519
- redemption_steps: {
2520
- reward_id: string;
2521
- reward_quantity: number;
2522
- target: "LINE" | "ORDER";
2523
- target_id?: string | undefined;
2524
- action: "CREATE" | "DELETE" | "READ" | "UPDATE";
2525
- discount_amount: number;
2526
- before: {
2527
- value: number;
2528
- quantity: number;
2529
- discount_amount: number;
2530
- discount_rate: number;
2531
- };
2532
- after: {
2533
- value: number;
2534
- quantity: number;
2535
- discount_amount: number;
2536
- discount_rate: number;
2537
- };
2538
- target_before?: {
2539
- value: number;
2540
- quantity: number;
2541
- discount_amount: number;
2542
- discount_rate: number;
2543
- } | undefined;
2544
- target_after?: {
2545
- value: number;
2546
- quantity: number;
2547
- discount_amount: number;
2548
- discount_rate: number;
2549
- } | undefined;
2550
- error?: string | undefined;
2551
- }[];
2552
- totals: {
2553
- currency: string;
2554
- subtotal: number;
2555
- discount_rate: number;
2556
- discount_total: number;
2557
- tax_rate: number;
2558
- tax_total: number;
2559
- total: number;
2560
- };
578
+ redemption_steps: OrderRedemptionStep[];
579
+ totals: OrderTotals;
2561
580
  };
2562
581
  //#endregion
2563
582
  //#region src/order/totals.d.ts
@@ -2576,520 +595,18 @@ declare const replaceLine: (lines: OrderLine[], lineUid: string, next: OrderLine
2576
595
  declare const getAvailability: (scope?: StorefrontMenuScope, options?: ServiceHttpOptions) => Promise<StorefrontAvailability>;
2577
596
  //#endregion
2578
597
  //#region src/services/cms.d.ts
2579
- declare const getCmsBlock: (name: string, options?: ServiceHttpOptions) => Promise<{
2580
- id: string;
2581
- name: string;
2582
- items: ({
2583
- id: string;
2584
- key: string;
2585
- label?: string | null | undefined;
2586
- type: "TEXT";
2587
- text: string;
2588
- } | {
2589
- id: string;
2590
- key: string;
2591
- label?: string | null | undefined;
2592
- type: "IMAGE";
2593
- url: string;
2594
- alt?: string | null | undefined;
2595
- mime_type?: string | null | undefined;
2596
- size_bytes?: number | null | undefined;
2597
- } | {
2598
- id: string;
2599
- key: string;
2600
- label?: string | null | undefined;
2601
- type: "VIDEO";
2602
- url: string;
2603
- title?: string | null | undefined;
2604
- mime_type?: string | null | undefined;
2605
- size_bytes?: number | null | undefined;
2606
- } | {
2607
- id: string;
2608
- key: string;
2609
- label?: string | null | undefined;
2610
- type: "DOCUMENT";
2611
- url: string;
2612
- title?: string | null | undefined;
2613
- mime_type?: string | null | undefined;
2614
- size_bytes?: number | null | undefined;
2615
- } | {
2616
- id: string;
2617
- key: string;
2618
- label?: string | null | undefined;
2619
- type: "LIST";
2620
- item_type: "DOCUMENT" | "IMAGE" | "TEXT" | "VIDEO";
2621
- items: ({
2622
- id: string;
2623
- type: "TEXT";
2624
- text: string;
2625
- } | {
2626
- id: string;
2627
- type: "IMAGE";
2628
- url: string;
2629
- alt?: string | null | undefined;
2630
- mime_type?: string | null | undefined;
2631
- size_bytes?: number | null | undefined;
2632
- } | {
2633
- id: string;
2634
- type: "VIDEO";
2635
- url: string;
2636
- title?: string | null | undefined;
2637
- mime_type?: string | null | undefined;
2638
- size_bytes?: number | null | undefined;
2639
- } | {
2640
- id: string;
2641
- type: "DOCUMENT";
2642
- url: string;
2643
- title?: string | null | undefined;
2644
- mime_type?: string | null | undefined;
2645
- size_bytes?: number | null | undefined;
2646
- })[];
2647
- })[];
2648
- status: string;
2649
- }>;
598
+ declare const getCmsBlock: (name: string, options?: ServiceHttpOptions) => Promise<CmsBlock>;
2650
599
  //#endregion
2651
600
  //#region src/services/customers.d.ts
2652
- declare const getCustomer: (id: string, options?: ServiceHttpOptions) => Promise<{
2653
- id: string;
2654
- uid: string;
2655
- merchant_id: string;
2656
- name: string;
2657
- email: string | null;
2658
- status: string;
2659
- metadata: Record<string, unknown> | null;
2660
- dob: string | null;
2661
- gender: "FEMALE" | "MALE" | "OTHER" | null;
2662
- registration_date: string;
2663
- devices: {
2664
- id: string;
2665
- os: "ANDROID" | "IOS" | "WEB";
2666
- fcm_token: string;
2667
- created_at: string;
2668
- updated_at: string;
2669
- }[];
2670
- delivery_addresses: {
2671
- alias: string;
2672
- address_line1: string;
2673
- address_line2?: string | undefined;
2674
- city?: string | undefined;
2675
- state?: string | undefined;
2676
- zip?: string | undefined;
2677
- country?: string | undefined;
2678
- reference?: string | undefined;
2679
- latitude?: number | undefined;
2680
- longitude?: number | undefined;
2681
- instructions?: string | undefined;
2682
- preferred: boolean;
2683
- metadata: Record<string, unknown> | null;
2684
- }[];
2685
- billing_profiles: {
2686
- alias: string;
2687
- type: "BUSINESS" | "INDIVIDUAL";
2688
- legal_name: string;
2689
- address_line1: string;
2690
- address_line2?: string | undefined;
2691
- city?: string | undefined;
2692
- state?: string | undefined;
2693
- zip?: string | undefined;
2694
- country?: string | undefined;
2695
- tax_id: string;
2696
- tax_id_type: "CI" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
2697
- preferred: boolean;
2698
- metadata: Record<string, unknown> | null;
2699
- }[];
2700
- payments: ({
2701
- id: string;
2702
- type: "CASH";
2703
- alias?: string | undefined;
2704
- preferred: boolean;
2705
- metadata: Record<string, unknown> | null;
2706
- } | {
2707
- id: string;
2708
- type: "CARD";
2709
- alias: string;
2710
- brand: "amex" | "diners" | "discover" | "mastercard" | "other" | "visa";
2711
- first4: string;
2712
- last4: string;
2713
- exp_month: number;
2714
- exp_year: number;
2715
- provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
2716
- provider_payment_method_id: string;
2717
- preferred: boolean;
2718
- metadata: Record<string, unknown> | null;
2719
- } | {
2720
- id: string;
2721
- type: "WALLET";
2722
- alias: string;
2723
- provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
2724
- provider_payment_method_id: string;
2725
- account_hint?: string | undefined;
2726
- preferred: boolean;
2727
- metadata: Record<string, unknown> | null;
2728
- } | {
2729
- id: string;
2730
- type: "BANK_ACCOUNT";
2731
- alias: string;
2732
- bank_name?: string | undefined;
2733
- last4: string;
2734
- provider?: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape" | undefined;
2735
- provider_payment_method_id?: string | undefined;
2736
- preferred: boolean;
2737
- metadata: Record<string, unknown> | null;
2738
- })[];
2739
- email_verified: boolean;
2740
- consent: {
2741
- marketing: boolean;
2742
- } | null;
2743
- notification_preferences: {
2744
- email: boolean;
2745
- push: boolean;
2746
- push_token?: string | undefined;
2747
- push_token_expires_at?: string | undefined;
2748
- };
2749
- is_anonymous: boolean;
2750
- document_type?: string | null | undefined;
2751
- document_number?: string | null | undefined;
2752
- country?: string | null | undefined;
2753
- phone?: string | null | undefined;
2754
- phone_verified: boolean;
2755
- }>;
2756
- declare const createCustomer: (body: CustomerRegisterInput, options?: ServiceHttpOptions) => Promise<{
2757
- id: string;
2758
- uid: string;
2759
- merchant_id: string;
2760
- name: string;
2761
- email: string | null;
2762
- status: string;
2763
- metadata: Record<string, unknown> | null;
2764
- dob: string | null;
2765
- gender: "FEMALE" | "MALE" | "OTHER" | null;
2766
- registration_date: string;
2767
- devices: {
2768
- id: string;
2769
- os: "ANDROID" | "IOS" | "WEB";
2770
- fcm_token: string;
2771
- created_at: string;
2772
- updated_at: string;
2773
- }[];
2774
- delivery_addresses: {
2775
- alias: string;
2776
- address_line1: string;
2777
- address_line2?: string | undefined;
2778
- city?: string | undefined;
2779
- state?: string | undefined;
2780
- zip?: string | undefined;
2781
- country?: string | undefined;
2782
- reference?: string | undefined;
2783
- latitude?: number | undefined;
2784
- longitude?: number | undefined;
2785
- instructions?: string | undefined;
2786
- preferred: boolean;
2787
- metadata: Record<string, unknown> | null;
2788
- }[];
2789
- billing_profiles: {
2790
- alias: string;
2791
- type: "BUSINESS" | "INDIVIDUAL";
2792
- legal_name: string;
2793
- address_line1: string;
2794
- address_line2?: string | undefined;
2795
- city?: string | undefined;
2796
- state?: string | undefined;
2797
- zip?: string | undefined;
2798
- country?: string | undefined;
2799
- tax_id: string;
2800
- tax_id_type: "CI" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
2801
- preferred: boolean;
2802
- metadata: Record<string, unknown> | null;
2803
- }[];
2804
- payments: ({
2805
- id: string;
2806
- type: "CASH";
2807
- alias?: string | undefined;
2808
- preferred: boolean;
2809
- metadata: Record<string, unknown> | null;
2810
- } | {
2811
- id: string;
2812
- type: "CARD";
2813
- alias: string;
2814
- brand: "amex" | "diners" | "discover" | "mastercard" | "other" | "visa";
2815
- first4: string;
2816
- last4: string;
2817
- exp_month: number;
2818
- exp_year: number;
2819
- provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
2820
- provider_payment_method_id: string;
2821
- preferred: boolean;
2822
- metadata: Record<string, unknown> | null;
2823
- } | {
2824
- id: string;
2825
- type: "WALLET";
2826
- alias: string;
2827
- provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
2828
- provider_payment_method_id: string;
2829
- account_hint?: string | undefined;
2830
- preferred: boolean;
2831
- metadata: Record<string, unknown> | null;
2832
- } | {
2833
- id: string;
2834
- type: "BANK_ACCOUNT";
2835
- alias: string;
2836
- bank_name?: string | undefined;
2837
- last4: string;
2838
- provider?: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape" | undefined;
2839
- provider_payment_method_id?: string | undefined;
2840
- preferred: boolean;
2841
- metadata: Record<string, unknown> | null;
2842
- })[];
2843
- email_verified: boolean;
2844
- consent: {
2845
- marketing: boolean;
2846
- } | null;
2847
- notification_preferences: {
2848
- email: boolean;
2849
- push: boolean;
2850
- push_token?: string | undefined;
2851
- push_token_expires_at?: string | undefined;
2852
- };
2853
- is_anonymous: boolean;
2854
- document_type?: string | null | undefined;
2855
- document_number?: string | null | undefined;
2856
- country?: string | null | undefined;
2857
- phone?: string | null | undefined;
2858
- phone_verified: boolean;
2859
- }>;
2860
- declare const identifyAnonymousCustomer: (id: string, body: CustomerIdentifyInput, options?: ServiceHttpOptions) => Promise<{
2861
- id: string;
2862
- uid: string;
2863
- merchant_id: string;
2864
- name: string;
2865
- email: string | null;
2866
- status: string;
2867
- metadata: Record<string, unknown> | null;
2868
- dob: string | null;
2869
- gender: "FEMALE" | "MALE" | "OTHER" | null;
2870
- registration_date: string;
2871
- devices: {
2872
- id: string;
2873
- os: "ANDROID" | "IOS" | "WEB";
2874
- fcm_token: string;
2875
- created_at: string;
2876
- updated_at: string;
2877
- }[];
2878
- delivery_addresses: {
2879
- alias: string;
2880
- address_line1: string;
2881
- address_line2?: string | undefined;
2882
- city?: string | undefined;
2883
- state?: string | undefined;
2884
- zip?: string | undefined;
2885
- country?: string | undefined;
2886
- reference?: string | undefined;
2887
- latitude?: number | undefined;
2888
- longitude?: number | undefined;
2889
- instructions?: string | undefined;
2890
- preferred: boolean;
2891
- metadata: Record<string, unknown> | null;
2892
- }[];
2893
- billing_profiles: {
2894
- alias: string;
2895
- type: "BUSINESS" | "INDIVIDUAL";
2896
- legal_name: string;
2897
- address_line1: string;
2898
- address_line2?: string | undefined;
2899
- city?: string | undefined;
2900
- state?: string | undefined;
2901
- zip?: string | undefined;
2902
- country?: string | undefined;
2903
- tax_id: string;
2904
- tax_id_type: "CI" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
2905
- preferred: boolean;
2906
- metadata: Record<string, unknown> | null;
2907
- }[];
2908
- payments: ({
2909
- id: string;
2910
- type: "CASH";
2911
- alias?: string | undefined;
2912
- preferred: boolean;
2913
- metadata: Record<string, unknown> | null;
2914
- } | {
2915
- id: string;
2916
- type: "CARD";
2917
- alias: string;
2918
- brand: "amex" | "diners" | "discover" | "mastercard" | "other" | "visa";
2919
- first4: string;
2920
- last4: string;
2921
- exp_month: number;
2922
- exp_year: number;
2923
- provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
2924
- provider_payment_method_id: string;
2925
- preferred: boolean;
2926
- metadata: Record<string, unknown> | null;
2927
- } | {
2928
- id: string;
2929
- type: "WALLET";
2930
- alias: string;
2931
- provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
2932
- provider_payment_method_id: string;
2933
- account_hint?: string | undefined;
2934
- preferred: boolean;
2935
- metadata: Record<string, unknown> | null;
2936
- } | {
2937
- id: string;
2938
- type: "BANK_ACCOUNT";
2939
- alias: string;
2940
- bank_name?: string | undefined;
2941
- last4: string;
2942
- provider?: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape" | undefined;
2943
- provider_payment_method_id?: string | undefined;
2944
- preferred: boolean;
2945
- metadata: Record<string, unknown> | null;
2946
- })[];
2947
- email_verified: boolean;
2948
- consent: {
2949
- marketing: boolean;
2950
- } | null;
2951
- notification_preferences: {
2952
- email: boolean;
2953
- push: boolean;
2954
- push_token?: string | undefined;
2955
- push_token_expires_at?: string | undefined;
2956
- };
2957
- is_anonymous: boolean;
2958
- document_type?: string | null | undefined;
2959
- document_number?: string | null | undefined;
2960
- country?: string | null | undefined;
2961
- phone?: string | null | undefined;
2962
- phone_verified: boolean;
2963
- }>;
2964
- declare const updateCustomer: (id: string, body: CustomerUpdateInput, options?: ServiceHttpOptions) => Promise<{
2965
- id: string;
2966
- uid: string;
2967
- merchant_id: string;
2968
- name: string;
2969
- email: string | null;
2970
- status: string;
2971
- metadata: Record<string, unknown> | null;
2972
- dob: string | null;
2973
- gender: "FEMALE" | "MALE" | "OTHER" | null;
2974
- registration_date: string;
2975
- devices: {
2976
- id: string;
2977
- os: "ANDROID" | "IOS" | "WEB";
2978
- fcm_token: string;
2979
- created_at: string;
2980
- updated_at: string;
2981
- }[];
2982
- delivery_addresses: {
2983
- alias: string;
2984
- address_line1: string;
2985
- address_line2?: string | undefined;
2986
- city?: string | undefined;
2987
- state?: string | undefined;
2988
- zip?: string | undefined;
2989
- country?: string | undefined;
2990
- reference?: string | undefined;
2991
- latitude?: number | undefined;
2992
- longitude?: number | undefined;
2993
- instructions?: string | undefined;
2994
- preferred: boolean;
2995
- metadata: Record<string, unknown> | null;
2996
- }[];
2997
- billing_profiles: {
2998
- alias: string;
2999
- type: "BUSINESS" | "INDIVIDUAL";
3000
- legal_name: string;
3001
- address_line1: string;
3002
- address_line2?: string | undefined;
3003
- city?: string | undefined;
3004
- state?: string | undefined;
3005
- zip?: string | undefined;
3006
- country?: string | undefined;
3007
- tax_id: string;
3008
- tax_id_type: "CI" | "CUIT" | "DNI" | "EIN" | "NIF" | "NIT" | "OTHER" | "PASSPORT" | "RCN" | "RUC" | "RUT" | "SSN" | "TIN" | "VAT";
3009
- preferred: boolean;
3010
- metadata: Record<string, unknown> | null;
3011
- }[];
3012
- payments: ({
3013
- id: string;
3014
- type: "CASH";
3015
- alias?: string | undefined;
3016
- preferred: boolean;
3017
- metadata: Record<string, unknown> | null;
3018
- } | {
3019
- id: string;
3020
- type: "CARD";
3021
- alias: string;
3022
- brand: "amex" | "diners" | "discover" | "mastercard" | "other" | "visa";
3023
- first4: string;
3024
- last4: string;
3025
- exp_month: number;
3026
- exp_year: number;
3027
- provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
3028
- provider_payment_method_id: string;
3029
- preferred: boolean;
3030
- metadata: Record<string, unknown> | null;
3031
- } | {
3032
- id: string;
3033
- type: "WALLET";
3034
- alias: string;
3035
- provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
3036
- provider_payment_method_id: string;
3037
- account_hint?: string | undefined;
3038
- preferred: boolean;
3039
- metadata: Record<string, unknown> | null;
3040
- } | {
3041
- id: string;
3042
- type: "BANK_ACCOUNT";
3043
- alias: string;
3044
- bank_name?: string | undefined;
3045
- last4: string;
3046
- provider?: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape" | undefined;
3047
- provider_payment_method_id?: string | undefined;
3048
- preferred: boolean;
3049
- metadata: Record<string, unknown> | null;
3050
- })[];
3051
- email_verified: boolean;
3052
- consent: {
3053
- marketing: boolean;
3054
- } | null;
3055
- notification_preferences: {
3056
- email: boolean;
3057
- push: boolean;
3058
- push_token?: string | undefined;
3059
- push_token_expires_at?: string | undefined;
3060
- };
3061
- is_anonymous: boolean;
3062
- document_type?: string | null | undefined;
3063
- document_number?: string | null | undefined;
3064
- country?: string | null | undefined;
3065
- phone?: string | null | undefined;
3066
- phone_verified: boolean;
3067
- }>;
601
+ declare const getCustomer: (id: string, options?: ServiceHttpOptions) => Promise<Customer>;
602
+ declare const createCustomer: (body: CustomerRegisterInput, options?: ServiceHttpOptions) => Promise<Customer>;
603
+ declare const identifyAnonymousCustomer: (id: string, body: CustomerIdentifyInput, options?: ServiceHttpOptions) => Promise<Customer>;
604
+ declare const updateCustomer: (id: string, body: CustomerUpdateInput, options?: ServiceHttpOptions) => Promise<Customer>;
3068
605
  declare const deleteCustomer: (id: string, options?: ServiceHttpOptions) => Promise<void>;
3069
606
  //#endregion
3070
607
  //#region src/services/fulfillment.d.ts
3071
- declare const listFulfillment: (input?: FulfillmentListInput, options?: ServiceHttpOptions) => Promise<{
3072
- id: string;
3073
- uid: string;
3074
- brand_id?: string | null | undefined;
3075
- merchant_id: string;
3076
- name: string;
3077
- type: string;
3078
- status: string;
3079
- checkout_release: boolean;
3080
- labels: string[];
3081
- }[]>;
3082
- declare const getFulfillment: (id: string, input?: FulfillmentListInput, options?: ServiceHttpOptions) => Promise<{
3083
- id: string;
3084
- uid: string;
3085
- brand_id?: string | null | undefined;
3086
- merchant_id: string;
3087
- name: string;
3088
- type: string;
3089
- status: string;
3090
- checkout_release: boolean;
3091
- labels: string[];
3092
- }>;
608
+ declare const listFulfillment: (input?: FulfillmentListInput, options?: ServiceHttpOptions) => Promise<Fulfillment[]>;
609
+ declare const getFulfillment: (id: string, input?: FulfillmentListInput, options?: ServiceHttpOptions) => Promise<Fulfillment>;
3093
610
  //#endregion
3094
611
  //#region src/services/kiosk.d.ts
3095
612
  declare const isDeviceNotLinked: (error: unknown) => boolean;
@@ -3132,580 +649,11 @@ declare const fetchKioskRealtimeToken: (input: {
3132
649
  type ListMenusStreamOptions = ServiceHttpOptions & StorefrontMenuStreamOptions;
3133
650
  //#endregion
3134
651
  //#region src/services/menus.d.ts
3135
- declare const listMenus: (scope?: StorefrontMenuScope, options?: ServiceHttpOptions) => Promise<{
3136
- id: string;
3137
- uid: string;
3138
- merchant_id: string;
3139
- brand_id: string;
3140
- store_id: string;
3141
- store_uid?: string | null | undefined;
3142
- channel_id: string;
3143
- channel_uid?: string | null | undefined;
3144
- fulfillment_id: string;
3145
- fulfillment_uid?: string | null | undefined;
3146
- name: Record<string, string>;
3147
- description: Record<string, string> | null;
3148
- schedules: {
3149
- day_of_week: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
3150
- periods: {
3151
- closed: boolean;
3152
- start_time?: string | undefined;
3153
- end_time?: string | undefined;
3154
- start_date?: string | null | undefined;
3155
- end_date?: string | null | undefined;
3156
- }[];
3157
- }[] | null;
3158
- products: {
3159
- id: string;
3160
- name: Record<string, string>;
3161
- description: Record<string, string> | null;
3162
- image_url: string | null;
3163
- cms_template_id?: string | null | undefined;
3164
- bundled_items: {
3165
- id: string;
3166
- refund_price: number;
3167
- included_quantity: number;
3168
- }[];
3169
- pricing: {
3170
- minimum_quantity: number;
3171
- maximum_quantity: number;
3172
- is_tax_inclusive: boolean;
3173
- tax_rate: number;
3174
- price: number;
3175
- anchor_price?: number | undefined;
3176
- anchor_price_percentage?: number | undefined;
3177
- starting_price?: number | null | undefined;
3178
- modifiers: {
3179
- modifier_group_id: string;
3180
- default_quantity: number;
3181
- charge_above_quantity?: number | null | undefined;
3182
- display_type?: "CHECKBOX" | "QUANTITY" | "RADIO" | null | undefined;
3183
- recommendations: {
3184
- recommendation_id: string;
3185
- default_quantity: number;
3186
- }[];
3187
- minimum_quantity: number;
3188
- maximum_quantity?: number | undefined;
3189
- is_tax_inclusive: boolean;
3190
- tax_rate: number;
3191
- price: number;
3192
- anchor_price?: number | undefined;
3193
- anchor_price_percentage?: number | undefined;
3194
- }[];
3195
- modifier_group_ids: string[];
3196
- variants: {
3197
- product_id: string;
3198
- variant_group_option_ids: string[];
3199
- }[];
3200
- variant_group_ids: string[];
3201
- recommendations: {
3202
- recommendation_id: string;
3203
- default_quantity: number;
3204
- }[];
3205
- recommendations_ids: string[];
3206
- };
3207
- availability: {
3208
- schedules?: {
3209
- day_of_week: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
3210
- periods: {
3211
- closed: boolean;
3212
- start_time?: string | undefined;
3213
- end_time?: string | undefined;
3214
- start_date?: string | null | undefined;
3215
- end_date?: string | null | undefined;
3216
- }[];
3217
- }[] | null | undefined;
3218
- out_of_stock_until?: string | null | undefined;
3219
- status: "AVAILABLE" | "HIDDEN" | "OUT_OF_STOCK";
3220
- };
3221
- image_origin_url?: string | null | undefined;
3222
- labels: string[];
3223
- tags: Record<string, string | number | boolean>;
3224
- metadata: Record<string, unknown>;
3225
- }[];
3226
- categories: {
3227
- id: string;
3228
- name: Record<string, string>;
3229
- description?: Record<string, string> | null | undefined;
3230
- cms_template_id?: string | null | undefined;
3231
- cms?: {
3232
- id: string;
3233
- merchant_id: string;
3234
- env: string;
3235
- name: string;
3236
- fields: {
3237
- name: string;
3238
- type: "IMAGE" | "LIST" | "SELECT" | "TEXT";
3239
- label?: Record<string, string> | null | undefined;
3240
- required: boolean;
3241
- placeholder?: string | null | undefined;
3242
- options?: {
3243
- label: string;
3244
- value: string;
3245
- }[] | null | undefined;
3246
- altText?: string | null | undefined;
3247
- src?: string | null | undefined;
3248
- href?: string | null | undefined;
3249
- }[];
3250
- entity: "BRANDS" | "CATEGORIES" | "CHANNELS" | "MENUS" | "PRODUCTS" | "STORES";
3251
- status: string;
3252
- } | null | undefined;
3253
- items: {
3254
- type: "CATEGORY" | "PRODUCT";
3255
- id: string;
3256
- }[];
3257
- availability: {
3258
- schedules?: {
3259
- day_of_week: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
3260
- periods: {
3261
- closed: boolean;
3262
- start_time?: string | undefined;
3263
- end_time?: string | undefined;
3264
- start_date?: string | null | undefined;
3265
- end_date?: string | null | undefined;
3266
- }[];
3267
- }[] | null | undefined;
3268
- inactive_until?: string | null | undefined;
3269
- status: "ACTIVE" | "HIDDEN" | "INACTIVE";
3270
- };
3271
- image_url: string | null;
3272
- image_origin_url?: string | null | undefined;
3273
- labels: string[];
3274
- tags: Record<string, string | number | boolean>;
3275
- metadata: Record<string, unknown>;
3276
- }[];
3277
- modifier_groups: {
3278
- id: string;
3279
- title: Record<string, string>;
3280
- description?: Record<string, string> | null | undefined;
3281
- display_type?: "GRID" | "LIST" | null | undefined;
3282
- modifier_ids: string[];
3283
- minimum_quantity: number;
3284
- maximum_quantity: number;
3285
- charge_above_quantity?: number | null | undefined;
3286
- metadata: Record<string, unknown>;
3287
- }[];
3288
- variant_groups: {
3289
- id: string;
3290
- title: Record<string, string>;
3291
- description?: Record<string, string> | null | undefined;
3292
- display_type?: "GRID" | "LIST" | null | undefined;
3293
- variants: {
3294
- id: string;
3295
- name: Record<string, string>;
3296
- description?: Record<string, string> | null | undefined;
3297
- image_url?: string | null | undefined;
3298
- image_origin_url?: string | null | undefined;
3299
- product_ids: string[];
3300
- metadata: Record<string, unknown>;
3301
- }[];
3302
- metadata: Record<string, unknown>;
3303
- }[];
3304
- recommendations: ({
3305
- id: string;
3306
- title: Record<string, string>;
3307
- description?: Record<string, string> | null | undefined;
3308
- metadata: Record<string, unknown>;
3309
- target_product_id: string;
3310
- type: "UPSELL";
3311
- } | {
3312
- id: string;
3313
- title: Record<string, string>;
3314
- description?: Record<string, string> | null | undefined;
3315
- metadata: Record<string, unknown>;
3316
- target_product_id: string;
3317
- type: "CROSS_SELL";
3318
- } | {
3319
- id: string;
3320
- title: Record<string, string>;
3321
- description?: Record<string, string> | null | undefined;
3322
- metadata: Record<string, unknown>;
3323
- target_product_id: string;
3324
- type: "DOWNSELL";
3325
- })[];
3326
- metadata: Record<string, unknown>;
3327
- cms_template_id?: string | null | undefined;
3328
- status: string;
3329
- release: string;
3330
- cms?: {
3331
- id: string;
3332
- name: string;
3333
- entity: "BRANDS" | "CATEGORIES" | "CHANNELS" | "MENUS" | "PRODUCTS" | "STORES";
3334
- status: string;
3335
- fields: {
3336
- name: string;
3337
- type: "IMAGE" | "LIST" | "SELECT" | "TEXT";
3338
- label?: Record<string, string> | null | undefined;
3339
- required: boolean;
3340
- placeholder?: string | null | undefined;
3341
- options?: {
3342
- label: string;
3343
- value: string;
3344
- }[] | null | undefined;
3345
- altText?: string | null | undefined;
3346
- src?: string | null | undefined;
3347
- href?: string | null | undefined;
3348
- value?: unknown;
3349
- }[];
3350
- } | null | undefined;
3351
- }[]>;
3352
- declare const listMenusStream: (scope?: StorefrontMenuScope, options?: ListMenusStreamOptions) => AsyncGenerator<{
3353
- id: string;
3354
- uid: string;
3355
- merchant_id: string;
3356
- brand_id: string;
3357
- store_id: string;
3358
- store_uid?: string | null | undefined;
3359
- channel_id: string;
3360
- channel_uid?: string | null | undefined;
3361
- fulfillment_id: string;
3362
- fulfillment_uid?: string | null | undefined;
3363
- name: Record<string, string>;
3364
- description: Record<string, string> | null;
3365
- schedules: {
3366
- day_of_week: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
3367
- periods: {
3368
- closed: boolean;
3369
- start_time?: string | undefined;
3370
- end_time?: string | undefined;
3371
- start_date?: string | null | undefined;
3372
- end_date?: string | null | undefined;
3373
- }[];
3374
- }[] | null;
3375
- products: {
3376
- id: string;
3377
- name: Record<string, string>;
3378
- description: Record<string, string> | null;
3379
- image_url: string | null;
3380
- cms_template_id?: string | null | undefined;
3381
- bundled_items: {
3382
- id: string;
3383
- refund_price: number;
3384
- included_quantity: number;
3385
- }[];
3386
- pricing: {
3387
- minimum_quantity: number;
3388
- maximum_quantity: number;
3389
- is_tax_inclusive: boolean;
3390
- tax_rate: number;
3391
- price: number;
3392
- anchor_price?: number | undefined;
3393
- anchor_price_percentage?: number | undefined;
3394
- starting_price?: number | null | undefined;
3395
- modifiers: {
3396
- modifier_group_id: string;
3397
- default_quantity: number;
3398
- charge_above_quantity?: number | null | undefined;
3399
- display_type?: "CHECKBOX" | "QUANTITY" | "RADIO" | null | undefined;
3400
- recommendations: {
3401
- recommendation_id: string;
3402
- default_quantity: number;
3403
- }[];
3404
- minimum_quantity: number;
3405
- maximum_quantity?: number | undefined;
3406
- is_tax_inclusive: boolean;
3407
- tax_rate: number;
3408
- price: number;
3409
- anchor_price?: number | undefined;
3410
- anchor_price_percentage?: number | undefined;
3411
- }[];
3412
- modifier_group_ids: string[];
3413
- variants: {
3414
- product_id: string;
3415
- variant_group_option_ids: string[];
3416
- }[];
3417
- variant_group_ids: string[];
3418
- recommendations: {
3419
- recommendation_id: string;
3420
- default_quantity: number;
3421
- }[];
3422
- recommendations_ids: string[];
3423
- };
3424
- availability: {
3425
- schedules?: {
3426
- day_of_week: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
3427
- periods: {
3428
- closed: boolean;
3429
- start_time?: string | undefined;
3430
- end_time?: string | undefined;
3431
- start_date?: string | null | undefined;
3432
- end_date?: string | null | undefined;
3433
- }[];
3434
- }[] | null | undefined;
3435
- out_of_stock_until?: string | null | undefined;
3436
- status: "AVAILABLE" | "HIDDEN" | "OUT_OF_STOCK";
3437
- };
3438
- image_origin_url?: string | null | undefined;
3439
- labels: string[];
3440
- tags: Record<string, string | number | boolean>;
3441
- metadata: Record<string, unknown>;
3442
- }[];
3443
- categories: {
3444
- id: string;
3445
- name: Record<string, string>;
3446
- description?: Record<string, string> | null | undefined;
3447
- cms_template_id?: string | null | undefined;
3448
- cms?: {
3449
- id: string;
3450
- merchant_id: string;
3451
- env: string;
3452
- name: string;
3453
- fields: {
3454
- name: string;
3455
- type: "IMAGE" | "LIST" | "SELECT" | "TEXT";
3456
- label?: Record<string, string> | null | undefined;
3457
- required: boolean;
3458
- placeholder?: string | null | undefined;
3459
- options?: {
3460
- label: string;
3461
- value: string;
3462
- }[] | null | undefined;
3463
- altText?: string | null | undefined;
3464
- src?: string | null | undefined;
3465
- href?: string | null | undefined;
3466
- }[];
3467
- entity: "BRANDS" | "CATEGORIES" | "CHANNELS" | "MENUS" | "PRODUCTS" | "STORES";
3468
- status: string;
3469
- } | null | undefined;
3470
- items: {
3471
- type: "CATEGORY" | "PRODUCT";
3472
- id: string;
3473
- }[];
3474
- availability: {
3475
- schedules?: {
3476
- day_of_week: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
3477
- periods: {
3478
- closed: boolean;
3479
- start_time?: string | undefined;
3480
- end_time?: string | undefined;
3481
- start_date?: string | null | undefined;
3482
- end_date?: string | null | undefined;
3483
- }[];
3484
- }[] | null | undefined;
3485
- inactive_until?: string | null | undefined;
3486
- status: "ACTIVE" | "HIDDEN" | "INACTIVE";
3487
- };
3488
- image_url: string | null;
3489
- image_origin_url?: string | null | undefined;
3490
- labels: string[];
3491
- tags: Record<string, string | number | boolean>;
3492
- metadata: Record<string, unknown>;
3493
- }[];
3494
- modifier_groups: {
3495
- id: string;
3496
- title: Record<string, string>;
3497
- description?: Record<string, string> | null | undefined;
3498
- display_type?: "GRID" | "LIST" | null | undefined;
3499
- modifier_ids: string[];
3500
- minimum_quantity: number;
3501
- maximum_quantity: number;
3502
- charge_above_quantity?: number | null | undefined;
3503
- metadata: Record<string, unknown>;
3504
- }[];
3505
- variant_groups: {
3506
- id: string;
3507
- title: Record<string, string>;
3508
- description?: Record<string, string> | null | undefined;
3509
- display_type?: "GRID" | "LIST" | null | undefined;
3510
- variants: {
3511
- id: string;
3512
- name: Record<string, string>;
3513
- description?: Record<string, string> | null | undefined;
3514
- image_url?: string | null | undefined;
3515
- image_origin_url?: string | null | undefined;
3516
- product_ids: string[];
3517
- metadata: Record<string, unknown>;
3518
- }[];
3519
- metadata: Record<string, unknown>;
3520
- }[];
3521
- recommendations: ({
3522
- id: string;
3523
- title: Record<string, string>;
3524
- description?: Record<string, string> | null | undefined;
3525
- metadata: Record<string, unknown>;
3526
- target_product_id: string;
3527
- type: "UPSELL";
3528
- } | {
3529
- id: string;
3530
- title: Record<string, string>;
3531
- description?: Record<string, string> | null | undefined;
3532
- metadata: Record<string, unknown>;
3533
- target_product_id: string;
3534
- type: "CROSS_SELL";
3535
- } | {
3536
- id: string;
3537
- title: Record<string, string>;
3538
- description?: Record<string, string> | null | undefined;
3539
- metadata: Record<string, unknown>;
3540
- target_product_id: string;
3541
- type: "DOWNSELL";
3542
- })[];
3543
- metadata: Record<string, unknown>;
3544
- cms_template_id?: string | null | undefined;
3545
- status: string;
3546
- release: string;
3547
- cms?: {
3548
- id: string;
3549
- name: string;
3550
- entity: "BRANDS" | "CATEGORIES" | "CHANNELS" | "MENUS" | "PRODUCTS" | "STORES";
3551
- status: string;
3552
- fields: {
3553
- name: string;
3554
- type: "IMAGE" | "LIST" | "SELECT" | "TEXT";
3555
- label?: Record<string, string> | null | undefined;
3556
- required: boolean;
3557
- placeholder?: string | null | undefined;
3558
- options?: {
3559
- label: string;
3560
- value: string;
3561
- }[] | null | undefined;
3562
- altText?: string | null | undefined;
3563
- src?: string | null | undefined;
3564
- href?: string | null | undefined;
3565
- value?: unknown;
3566
- }[];
3567
- } | null | undefined;
3568
- }[], any, any>;
652
+ declare const listMenus: (scope?: StorefrontMenuScope, options?: ServiceHttpOptions) => Promise<StorefrontMenu[]>;
653
+ declare const listMenusStream: (scope?: StorefrontMenuScope, options?: ListMenusStreamOptions) => AsyncGenerator<StorefrontMenu[], any, any>;
3569
654
  //#endregion
3570
655
  //#region src/services/payments.d.ts
3571
- declare const listPayments: (input: StorefrontPaymentsListInput, options?: ServiceHttpOptions) => Promise<{
3572
- created_at: string;
3573
- updated_at: string;
3574
- deleted_at: string | null;
3575
- id: string;
3576
- payment_provider_id: string;
3577
- payment_method_id: string;
3578
- rules: {
3579
- minimum_order_value: number;
3580
- maximum_order_value: number;
3581
- }[];
3582
- conditions: ({
3583
- interpretation?: "both" | "client" | "server" | undefined;
3584
- product_id?: string | undefined;
3585
- tag?: string | undefined;
3586
- fulfillment_id: string;
3587
- store_id: string;
3588
- channel_id: string;
3589
- brand_id: string;
3590
- primitive: "string";
3591
- type: "Failure message" | "Order includes product with tag" | "Request path";
3592
- operator: "contains" | "ends with" | "equal to" | "not equal to" | "starts with";
3593
- caseInsensitive?: boolean | undefined;
3594
- value: string;
3595
- invalidMessage?: string | undefined;
3596
- } | {
3597
- interpretation?: "both" | "client" | "server" | undefined;
3598
- product_id?: string | undefined;
3599
- tag?: string | undefined;
3600
- fulfillment_id: string;
3601
- store_id: string;
3602
- channel_id: string;
3603
- brand_id: string;
3604
- primitive: "number";
3605
- type: "API error rate" | "Accumulated events" | "Cart product count" | "Customer age" | "HTTP status" | "Order includes product" | "Order includes product with tag";
3606
- operator: "equal to" | "greater than" | "greater than or equal to" | "less than" | "less than or equal to" | "not equal to";
3607
- value: number;
3608
- include_modifiers?: boolean | undefined;
3609
- window_minutes?: number | undefined;
3610
- invalidMessage?: string | undefined;
3611
- } | {
3612
- interpretation?: "both" | "client" | "server" | undefined;
3613
- product_id?: string | undefined;
3614
- tag?: string | undefined;
3615
- fulfillment_id: string;
3616
- store_id: string;
3617
- channel_id: string;
3618
- brand_id: string;
3619
- primitive: "currency";
3620
- type: "Order includes product with tag" | "Order total";
3621
- operator: "equal to" | "greater than" | "greater than or equal to" | "less than" | "less than or equal to" | "not equal to";
3622
- value: number;
3623
- invalidMessage?: string | undefined;
3624
- } | {
3625
- interpretation?: "both" | "client" | "server" | undefined;
3626
- product_id?: string | undefined;
3627
- tag?: string | undefined;
3628
- fulfillment_id: string;
3629
- store_id: string;
3630
- channel_id: string;
3631
- brand_id: string;
3632
- primitive: "boolean";
3633
- type: "Customer is anonymous" | "Is anonymous order" | "Order includes product with tag";
3634
- operator: "is" | "is not";
3635
- value: boolean;
3636
- invalidMessage?: string | undefined;
3637
- } | {
3638
- interpretation?: "both" | "client" | "server" | undefined;
3639
- primitive: "enum";
3640
- type: "Payment collect at" | "Payment method" | "Payment status";
3641
- operator: "is" | "is any of" | "is none of" | "is not";
3642
- value: string | string[];
3643
- invalidMessage?: string | undefined;
3644
- } | {
3645
- interpretation?: "both" | "client" | "server" | undefined;
3646
- primitive: "absolute date";
3647
- type: "Today";
3648
- operator: "is" | "is after" | "is before" | "is not";
3649
- value: Date;
3650
- invalidMessage?: string | undefined;
3651
- } | {
3652
- interpretation?: "both" | "client" | "server" | undefined;
3653
- primitive: "relative date";
3654
- type: "Birthday" | "Customer last session" | "Customer last visit" | "Registration";
3655
- operator: "occurred" | "occurred in the last" | "occurred more than";
3656
- value: string;
3657
- invalidMessage?: string | undefined;
3658
- } | {
3659
- interpretation?: "both" | "client" | "server" | undefined;
3660
- primitive: "recurring date";
3661
- type: "Current date";
3662
- operator: "falls within period";
3663
- startDate: Date;
3664
- endDate: Date;
3665
- allDay: boolean;
3666
- repeat: "CUSTOM" | "DAILY" | "FORTNIGHTLY" | "LAST_DAY_OF_MONTH" | "MONTHLY" | "NONE" | "WEEKDAYS" | "WEEKENDS" | "WEEKLY" | "WEEK_OF_MONTH";
3667
- value: string;
3668
- invalidMessage?: string | undefined;
3669
- } | {
3670
- interpretation?: "both" | "client" | "server" | undefined;
3671
- primitive: "custom";
3672
- type: "Brand" | "Brands" | "Channel" | "Channels" | "Fulfillment" | "Fulfillments" | "Payment" | "Payments" | "Store" | "Stores";
3673
- operator: "is" | "is all of" | "is any of" | "is none of" | "is not";
3674
- value: string;
3675
- label_ids?: string[] | undefined;
3676
- invalidMessage?: string | undefined;
3677
- })[][];
3678
- status: string;
3679
- provider: {
3680
- id: string;
3681
- provider_id: string;
3682
- name: string;
3683
- logo_url?: string | null | undefined;
3684
- };
3685
- method: {
3686
- id: string;
3687
- method: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "WALLET";
3688
- name: string;
3689
- version: string;
3690
- config?: {
3691
- [x: string]: unknown;
3692
- device_fields?: {
3693
- key: string;
3694
- label: string;
3695
- type: "boolean" | "number" | "password" | "select" | "text";
3696
- required: boolean;
3697
- secret: boolean;
3698
- options?: string[] | undefined;
3699
- visible_if?: Record<string, unknown> | undefined;
3700
- }[] | undefined;
3701
- qr_ttl_ms?: number | undefined;
3702
- terminal_models?: string[] | undefined;
3703
- supports_installments?: boolean | undefined;
3704
- } | undefined;
3705
- };
3706
- config: Record<string, unknown>;
3707
- has_conditions: boolean;
3708
- }[]>;
656
+ declare const listPayments: (input: StorefrontPaymentsListInput, options?: ServiceHttpOptions) => Promise<MerchantPayment[]>;
3709
657
  type PaymentOperationBody = {
3710
658
  order_id: string | null;
3711
659
  attempt_reference: string | null;
@@ -3789,363 +737,13 @@ declare const getPosCatalog: (input: {
3789
737
  declare const createPosOrder: (input: PosOrderInput, options?: ServiceHttpOptions) => Promise<PosOrderResult>;
3790
738
  //#endregion
3791
739
  //#region src/services/preferences.d.ts
3792
- declare const getPreferences: (scope?: StorefrontMenuScope, options?: ServiceHttpOptions) => Promise<{
3793
- availability: {
3794
- status: "AVAILABLE";
3795
- next_change_at: string | null;
3796
- } | {
3797
- status: "UNAVAILABLE";
3798
- rule: {
3799
- id: string;
3800
- title: string;
3801
- description: string;
3802
- schedule: {
3803
- mode: "IMMEDIATE";
3804
- } | {
3805
- mode: "SCHEDULED";
3806
- start_date: string;
3807
- end_date: string;
3808
- };
3809
- };
3810
- next_change_at: string | null;
3811
- };
3812
- analytics: {
3813
- session: {
3814
- value: number;
3815
- unit: "h" | "min" | "s";
3816
- };
3817
- session_ms: number;
3818
- };
3819
- prep_time: {
3820
- strategy: "PER_ITEM" | "PER_ORDER";
3821
- value: number;
3822
- unit: "min";
3823
- operator?: "eq" | "gt" | "gte" | "lt" | "lte" | undefined;
3824
- preparing?: number | undefined;
3825
- };
3826
- order_rules: {
3827
- order: {
3828
- min_items: number;
3829
- max_items: number;
3830
- min_total: number;
3831
- max_total: number;
3832
- };
3833
- redeems: {
3834
- max_redeems: number;
3835
- max_total: number;
3836
- };
3837
- };
3838
- release: {
3839
- min_version: string | null;
3840
- title: string;
3841
- description: string;
3842
- ios_store_url: string;
3843
- android_store_url: string;
3844
- };
3845
- country?: string | undefined;
3846
- locale?: string | undefined;
3847
- currency?: {
3848
- code: string;
3849
- symbol: string;
3850
- name: string;
3851
- } | undefined;
3852
- denominations?: {
3853
- kind: "BILL" | "COIN";
3854
- value: number;
3855
- sort_order: number;
3856
- }[] | undefined;
3857
- }>;
740
+ declare const getPreferences: (scope?: StorefrontMenuScope, options?: ServiceHttpOptions) => Promise<StorefrontPreferences>;
3858
741
  //#endregion
3859
742
  //#region src/services/stores.d.ts
3860
743
  /** Active stores of the merchant/env in the access token (one page). */
3861
- declare const listStores: (input?: StoreListInput, options?: ServiceHttpOptions) => Promise<{
3862
- id: string;
3863
- uid: string;
3864
- merchant_id: string;
3865
- brand_id?: string | null | undefined;
3866
- name: string;
3867
- contact: {
3868
- email: string;
3869
- phone: string;
3870
- name?: string | null | undefined;
3871
- };
3872
- location: {
3873
- latitude: number;
3874
- longitude: number;
3875
- address_line_1: string;
3876
- address_line_2?: string | null | undefined;
3877
- city: string;
3878
- country: string;
3879
- postal_code?: string | null | undefined;
3880
- business_name: string;
3881
- unit_number?: string | null | undefined;
3882
- };
3883
- timezone: string;
3884
- instructions?: Record<string, string> | null | undefined;
3885
- availability: {
3886
- schedules: {
3887
- day_of_week: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
3888
- periods: {
3889
- closed: boolean;
3890
- start_time?: string | undefined;
3891
- end_time?: string | undefined;
3892
- start_date?: string | null | undefined;
3893
- end_date?: string | null | undefined;
3894
- }[];
3895
- }[] | null;
3896
- temporary_closed_reason?: Record<string, string> | null | undefined;
3897
- temporary_closed_until?: string | null | undefined;
3898
- status: "CLOSED" | "OPEN" | "TEMPORARILY_CLOSED";
3899
- };
3900
- channel_ids: string[];
3901
- fulfillment_ids: string[];
3902
- tags: Record<string, string | number | boolean>;
3903
- cms_template_id?: string | null | undefined;
3904
- status: string;
3905
- coverage_zones: {
3906
- id: string;
3907
- name: string;
3908
- type: "POLYGON" | "RADIUS";
3909
- radius_info?: {
3910
- latitude: number;
3911
- longitude: number;
3912
- radius: number;
3913
- } | null | undefined;
3914
- polygon_info?: {
3915
- polygon: {
3916
- latitude: number;
3917
- longitude: number;
3918
- }[];
3919
- } | null | undefined;
3920
- schedules: {
3921
- day_of_week: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
3922
- periods: {
3923
- closed: boolean;
3924
- start_time?: string | undefined;
3925
- end_time?: string | undefined;
3926
- start_date?: string | null | undefined;
3927
- end_date?: string | null | undefined;
3928
- }[];
3929
- }[] | null;
3930
- labels: string[];
3931
- tags: Record<string, string | number | boolean>;
3932
- status: string;
3933
- }[];
3934
- cms?: {
3935
- id: string;
3936
- name: string;
3937
- entity: "BRANDS" | "CATEGORIES" | "CHANNELS" | "MENUS" | "PRODUCTS" | "STORES";
3938
- status: string;
3939
- fields: {
3940
- name: string;
3941
- type: "IMAGE" | "LIST" | "SELECT" | "TEXT";
3942
- label?: Record<string, string> | null | undefined;
3943
- required: boolean;
3944
- placeholder?: string | null | undefined;
3945
- options?: {
3946
- label: string;
3947
- value: string;
3948
- }[] | null | undefined;
3949
- altText?: string | null | undefined;
3950
- src?: string | null | undefined;
3951
- href?: string | null | undefined;
3952
- value?: unknown;
3953
- }[];
3954
- } | null | undefined;
3955
- labels: string[];
3956
- }[]>;
3957
- declare const listNearbyStores: (input: StoreNearbyInput, options?: ServiceHttpOptions) => Promise<{
3958
- id: string;
3959
- uid: string;
3960
- merchant_id: string;
3961
- brand_id?: string | null | undefined;
3962
- name: string;
3963
- contact: {
3964
- email: string;
3965
- phone: string;
3966
- name?: string | null | undefined;
3967
- };
3968
- location: {
3969
- latitude: number;
3970
- longitude: number;
3971
- address_line_1: string;
3972
- address_line_2?: string | null | undefined;
3973
- city: string;
3974
- country: string;
3975
- postal_code?: string | null | undefined;
3976
- business_name: string;
3977
- unit_number?: string | null | undefined;
3978
- };
3979
- timezone: string;
3980
- instructions?: Record<string, string> | null | undefined;
3981
- availability: {
3982
- schedules: {
3983
- day_of_week: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
3984
- periods: {
3985
- closed: boolean;
3986
- start_time?: string | undefined;
3987
- end_time?: string | undefined;
3988
- start_date?: string | null | undefined;
3989
- end_date?: string | null | undefined;
3990
- }[];
3991
- }[] | null;
3992
- temporary_closed_reason?: Record<string, string> | null | undefined;
3993
- temporary_closed_until?: string | null | undefined;
3994
- status: "CLOSED" | "OPEN" | "TEMPORARILY_CLOSED";
3995
- };
3996
- channel_ids: string[];
3997
- fulfillment_ids: string[];
3998
- tags: Record<string, string | number | boolean>;
3999
- cms_template_id?: string | null | undefined;
4000
- status: string;
4001
- coverage_zones: {
4002
- id: string;
4003
- name: string;
4004
- type: "POLYGON" | "RADIUS";
4005
- radius_info?: {
4006
- latitude: number;
4007
- longitude: number;
4008
- radius: number;
4009
- } | null | undefined;
4010
- polygon_info?: {
4011
- polygon: {
4012
- latitude: number;
4013
- longitude: number;
4014
- }[];
4015
- } | null | undefined;
4016
- schedules: {
4017
- day_of_week: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
4018
- periods: {
4019
- closed: boolean;
4020
- start_time?: string | undefined;
4021
- end_time?: string | undefined;
4022
- start_date?: string | null | undefined;
4023
- end_date?: string | null | undefined;
4024
- }[];
4025
- }[] | null;
4026
- labels: string[];
4027
- tags: Record<string, string | number | boolean>;
4028
- status: string;
4029
- }[];
4030
- cms?: {
4031
- id: string;
4032
- name: string;
4033
- entity: "BRANDS" | "CATEGORIES" | "CHANNELS" | "MENUS" | "PRODUCTS" | "STORES";
4034
- status: string;
4035
- fields: {
4036
- name: string;
4037
- type: "IMAGE" | "LIST" | "SELECT" | "TEXT";
4038
- label?: Record<string, string> | null | undefined;
4039
- required: boolean;
4040
- placeholder?: string | null | undefined;
4041
- options?: {
4042
- label: string;
4043
- value: string;
4044
- }[] | null | undefined;
4045
- altText?: string | null | undefined;
4046
- src?: string | null | undefined;
4047
- href?: string | null | undefined;
4048
- value?: unknown;
4049
- }[];
4050
- } | null | undefined;
4051
- labels: string[];
4052
- }[]>;
4053
- declare const getStore: (id: string, input?: StoreGetInput, options?: ServiceHttpOptions) => Promise<{
4054
- id: string;
4055
- uid: string;
4056
- merchant_id: string;
4057
- brand_id?: string | null | undefined;
4058
- name: string;
4059
- contact: {
4060
- email: string;
4061
- phone: string;
4062
- name?: string | null | undefined;
4063
- };
4064
- location: {
4065
- latitude: number;
4066
- longitude: number;
4067
- address_line_1: string;
4068
- address_line_2?: string | null | undefined;
4069
- city: string;
4070
- country: string;
4071
- postal_code?: string | null | undefined;
4072
- business_name: string;
4073
- unit_number?: string | null | undefined;
4074
- };
4075
- timezone: string;
4076
- instructions?: Record<string, string> | null | undefined;
4077
- availability: {
4078
- schedules: {
4079
- day_of_week: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
4080
- periods: {
4081
- closed: boolean;
4082
- start_time?: string | undefined;
4083
- end_time?: string | undefined;
4084
- start_date?: string | null | undefined;
4085
- end_date?: string | null | undefined;
4086
- }[];
4087
- }[] | null;
4088
- temporary_closed_reason?: Record<string, string> | null | undefined;
4089
- temporary_closed_until?: string | null | undefined;
4090
- status: "CLOSED" | "OPEN" | "TEMPORARILY_CLOSED";
4091
- };
4092
- channel_ids: string[];
4093
- fulfillment_ids: string[];
4094
- tags: Record<string, string | number | boolean>;
4095
- cms_template_id?: string | null | undefined;
4096
- status: string;
4097
- coverage_zones: {
4098
- id: string;
4099
- name: string;
4100
- type: "POLYGON" | "RADIUS";
4101
- radius_info?: {
4102
- latitude: number;
4103
- longitude: number;
4104
- radius: number;
4105
- } | null | undefined;
4106
- polygon_info?: {
4107
- polygon: {
4108
- latitude: number;
4109
- longitude: number;
4110
- }[];
4111
- } | null | undefined;
4112
- schedules: {
4113
- day_of_week: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
4114
- periods: {
4115
- closed: boolean;
4116
- start_time?: string | undefined;
4117
- end_time?: string | undefined;
4118
- start_date?: string | null | undefined;
4119
- end_date?: string | null | undefined;
4120
- }[];
4121
- }[] | null;
4122
- labels: string[];
4123
- tags: Record<string, string | number | boolean>;
4124
- status: string;
4125
- }[];
4126
- cms?: {
4127
- id: string;
4128
- name: string;
4129
- entity: "BRANDS" | "CATEGORIES" | "CHANNELS" | "MENUS" | "PRODUCTS" | "STORES";
4130
- status: string;
4131
- fields: {
4132
- name: string;
4133
- type: "IMAGE" | "LIST" | "SELECT" | "TEXT";
4134
- label?: Record<string, string> | null | undefined;
4135
- required: boolean;
4136
- placeholder?: string | null | undefined;
4137
- options?: {
4138
- label: string;
4139
- value: string;
4140
- }[] | null | undefined;
4141
- altText?: string | null | undefined;
4142
- src?: string | null | undefined;
4143
- href?: string | null | undefined;
4144
- value?: unknown;
4145
- }[];
4146
- } | null | undefined;
4147
- labels: string[];
4148
- }>;
744
+ declare const listStores: (input?: StoreListInput, options?: ServiceHttpOptions) => Promise<Store[]>;
745
+ declare const listNearbyStores: (input: StoreNearbyInput, options?: ServiceHttpOptions) => Promise<Store[]>;
746
+ declare const getStore: (id: string, input?: StoreGetInput, options?: ServiceHttpOptions) => Promise<Store>;
4149
747
  //#endregion
4150
748
  //#region src/services/index.d.ts
4151
749
  declare const services: {
@@ -4273,6 +871,20 @@ type SerializedError = {
4273
871
  /** Accepts anything a `catch` can receive. */
4274
872
  declare const serializeError: (value: unknown) => SerializedError;
4275
873
  //#endregion
874
+ //#region src/webhooks/webhooks.types.d.ts
875
+ interface VerifyWebhookSignatureInput {
876
+ /** Webhook secret configured in Fire Spark. */
877
+ secret: string;
878
+ /** Raw request body, exactly as received. */
879
+ body: string;
880
+ /** `X-Firespark-Signature` header value (`sha256=<hex>`). */
881
+ signature: string | null | undefined;
882
+ }
883
+ //#endregion
884
+ //#region src/webhooks/verifyWebhookSignature.d.ts
885
+ /** Checks a Fire Spark webhook/callback signature in constant time. */
886
+ declare const verifyWebhookSignature: (input: VerifyWebhookSignatureInput) => Promise<boolean>;
887
+ //#endregion
4276
888
  //#region src/shared/genId.d.ts
4277
889
  type IdBuilder = {
4278
890
  /**
@@ -4489,4 +1101,4 @@ declare const validateCardholderName: (value: string) => CardholderNameError | n
4489
1101
  */
4490
1102
  declare const cardPreviewGroups: (value: string) => CardPreviewSlot[][];
4491
1103
  //#endregion
4492
- 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 FlatMenuCategory, type GroupDisplayType, type IdBuilder, type ListMenusStreamOptions, type Menu, type MenuCategoryNode, type MenuLookup, type MilestoneSteps, type MilestoneTrackItem, type ModifierControlType, type ModifierCtx, type ModifierGroupCtx, type NestedMenuCategory, Order, type OrderCustomerSource, type OrderDraft, type OrderIssue, type OrderIssueCode, type OrderLineDiff, type OrderLineIssue, type OrderLineIssueCode, type OrderScope, OrderSyncPendingError, OrderValidationError, type OrderValidationResult, type PayOptions, type PaymentCardBrand, type PaymentRunOptions, type PaymentSessionOptions, type PricingModifier, type Product, type ProductCtx, type QuantitiesByPath, type RecommendationType, RecurringDateCron, type RemoveRedeemInput, type ReorderOrderOptions, type ResetOptions, type ReversalOutcome, RulesEngine, type ScheduleWindow, type SelectionStatus, type SelectionsByPath, type SerializedError, type ServiceHttpOptions, type Snapshot, type StorefrontAccessToken, StorefrontHttpError, type TrackWorkflow, type ValidateOptions, type ValidateOrderAgainstMenuInput, type Variant, type VariantGroup, type VariantGroupCtx, type VariantOptionCtx, type VariantSelection, type VisitedState, addLines, auth, buildCustomerSnapshot, cardBrandSpec, cardDigits, cardNumberGaps, cardNumberMaxLength, cardPreviewGroups, caretAfterDigits, collectOrderLineDiffs, computeStartingPrice, countCartProducts, coveredAmount, createSession, currentNodes, cvcMaxLength, defaultConditionError, detectCardBrand, flattenMenuCategories, flushLogs, formatCardNumber, formatCvc, formatExpiry, fromOrderLines, genId, genOrderId, getLogContext, getScheduleWindow, indexMenu, isCardNumberComplete, isCardNumberDefinitelyInvalid, isCheckoutFieldFilled, isCvcComplete, isDeviceNotLinked, isExpiryComplete, isKioskUnauthorized, isMilestoneStepDone, isOnSchedule, isOrderValidationError, isPosDeviceNotLinked, isPosUnauthorized, isStorefrontNotFound, isVariantBase, listMenusStream, localizePosError, log, logError, luhnCheck, matchAbsoluteDateOperator, matchBooleanOperator, matchCurrencyOperator, matchEnumOperator, matchNumberOperator, matchRecurringDateOperator, matchRelativeDateOperator, matchStringOperator, milestoneSteps, milestoneTrack, nestMenuCategories, normalizeCardholderName, parseExpiry, paymentMatchesClientConditions, recomputeRedemptions, recomputeTotals, remainingAmount, removeLine, replaceLine, resolveCheckout, reversePayment, runPaymentAttempt, serializeError, services, setLineQuantity, storefrontJson, toOrderLines, toPaymentCardBrand, validateCardNumber, validateCardholderName, validateCvc, validateExpiry, validateOrderAgainstMenu, visitedStates };
1104
+ 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 FlatMenuCategory, type GroupDisplayType, type IdBuilder, type ListMenusStreamOptions, type Menu, type MenuCategoryNode, type MenuLookup, type MilestoneSteps, type MilestoneTrackItem, type ModifierControlType, type ModifierCtx, type ModifierGroupCtx, type NestedMenuCategory, Order, type OrderCustomerSource, type OrderDraft, type OrderIssue, type OrderIssueCode, type OrderLineDiff, type OrderLineIssue, type OrderLineIssueCode, type OrderScope, OrderSyncPendingError, OrderValidationError, type OrderValidationResult, type PayOptions, type PaymentCardBrand, type PaymentRunOptions, type PaymentSessionOptions, type PricingModifier, type Product, type ProductCtx, type QuantitiesByPath, type RecommendationType, RecurringDateCron, type RemoveRedeemInput, type ReorderOrderOptions, type ResetOptions, type ReversalOutcome, RulesEngine, type ScheduleWindow, type SelectionStatus, type SelectionsByPath, type SerializedError, type ServiceHttpOptions, type Snapshot, type StorefrontAccessToken, StorefrontHttpError, type TrackWorkflow, type ValidateOptions, type ValidateOrderAgainstMenuInput, type Variant, type VariantGroup, type VariantGroupCtx, type VariantOptionCtx, type VariantSelection, type VerifyWebhookSignatureInput, type VisitedState, addLines, auth, buildCustomerSnapshot, cardBrandSpec, cardDigits, cardNumberGaps, cardNumberMaxLength, cardPreviewGroups, caretAfterDigits, collectOrderLineDiffs, computeStartingPrice, countCartProducts, coveredAmount, createSession, currentNodes, cvcMaxLength, defaultConditionError, detectCardBrand, flattenMenuCategories, flushLogs, formatCardNumber, formatCvc, formatExpiry, fromOrderLines, genId, genOrderId, getLogContext, getScheduleWindow, indexMenu, isCardNumberComplete, isCardNumberDefinitelyInvalid, isCheckoutFieldFilled, isCvcComplete, isDeviceNotLinked, isExpiryComplete, isKioskUnauthorized, isMilestoneStepDone, isOnSchedule, isOrderValidationError, isPosDeviceNotLinked, isPosUnauthorized, isStorefrontNotFound, isVariantBase, listMenusStream, localizePosError, log, logError, luhnCheck, matchAbsoluteDateOperator, matchBooleanOperator, matchCurrencyOperator, matchEnumOperator, matchNumberOperator, matchRecurringDateOperator, matchRelativeDateOperator, matchStringOperator, milestoneSteps, milestoneTrack, nestMenuCategories, normalizeCardholderName, parseExpiry, paymentMatchesClientConditions, recomputeRedemptions, recomputeTotals, remainingAmount, removeLine, replaceLine, resolveCheckout, reversePayment, runPaymentAttempt, serializeError, services, setLineQuantity, storefrontJson, toOrderLines, toPaymentCardBrand, validateCardNumber, validateCardholderName, validateCvc, validateExpiry, validateOrderAgainstMenu, verifyWebhookSignature, visitedStates };