@fire-spark/types 0.46.1 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +186 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2284,6 +2284,191 @@ type OrderRecordPaymentInput = {
|
|
|
2284
2284
|
error_message?: string | undefined;
|
|
2285
2285
|
metadata?: Record<string, unknown> | undefined;
|
|
2286
2286
|
};
|
|
2287
|
+
/** `GET /admin/v1/orders/{id}/payments` response `data`. */
|
|
2288
|
+
type AdminOrderPayments = {
|
|
2289
|
+
order_id: string;
|
|
2290
|
+
store_id: string;
|
|
2291
|
+
order_status: "CANCELLED" | "CLOSED" | "COMPLETED" | "FAILED" | "OPEN" | "REFUNDED" | "REVERSED" | "VOIDED";
|
|
2292
|
+
payment_status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
|
|
2293
|
+
currency: string | null;
|
|
2294
|
+
total: number | null;
|
|
2295
|
+
current_intent_id: string | null;
|
|
2296
|
+
payment_intents: {
|
|
2297
|
+
id: string;
|
|
2298
|
+
status: "ABANDONED" | "COMPLETED" | "DRAFT" | "LOCKED";
|
|
2299
|
+
is_mixed: boolean;
|
|
2300
|
+
primary_tender_id: string | null;
|
|
2301
|
+
totals: {
|
|
2302
|
+
currency: string;
|
|
2303
|
+
subtotal: number;
|
|
2304
|
+
discount_rate: number;
|
|
2305
|
+
discount_total: number;
|
|
2306
|
+
tax_rate: number;
|
|
2307
|
+
tax_total: number;
|
|
2308
|
+
total: number;
|
|
2309
|
+
};
|
|
2310
|
+
placed_at: string | null;
|
|
2311
|
+
resolved_at?: string | undefined;
|
|
2312
|
+
tenders: {
|
|
2313
|
+
id: string;
|
|
2314
|
+
sequence: number;
|
|
2315
|
+
attempt_reference: string;
|
|
2316
|
+
previous_attempt_references: string[];
|
|
2317
|
+
method: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "REDEMPTION" | "WALLET";
|
|
2318
|
+
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "mxp_paybridge" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
2319
|
+
payment_id?: string | undefined;
|
|
2320
|
+
collect_at: "COUNTER" | "DEVICE" | "DOOR" | "KIOSK" | "OTHER";
|
|
2321
|
+
status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
|
|
2322
|
+
amount: {
|
|
2323
|
+
currency: string;
|
|
2324
|
+
total: number;
|
|
2325
|
+
};
|
|
2326
|
+
refunded_total: number;
|
|
2327
|
+
allocation: {
|
|
2328
|
+
lines: {
|
|
2329
|
+
line_uid: string;
|
|
2330
|
+
units?: number | undefined;
|
|
2331
|
+
}[];
|
|
2332
|
+
fees: string[];
|
|
2333
|
+
amounts: {
|
|
2334
|
+
line_uid: string;
|
|
2335
|
+
units?: number | undefined;
|
|
2336
|
+
total: number;
|
|
2337
|
+
children: {
|
|
2338
|
+
line_uid: string;
|
|
2339
|
+
quantity: number;
|
|
2340
|
+
total: number;
|
|
2341
|
+
}[];
|
|
2342
|
+
}[];
|
|
2343
|
+
} | null;
|
|
2344
|
+
details: {
|
|
2345
|
+
method: "REDEMPTION";
|
|
2346
|
+
rewards: {
|
|
2347
|
+
reward_id: string;
|
|
2348
|
+
quantity: number;
|
|
2349
|
+
amount: number;
|
|
2350
|
+
}[];
|
|
2351
|
+
amount: number;
|
|
2352
|
+
loyalty_transaction_id?: string | undefined;
|
|
2353
|
+
} | {
|
|
2354
|
+
brand: string;
|
|
2355
|
+
last4: string;
|
|
2356
|
+
auth_code?: string | undefined;
|
|
2357
|
+
installments?: number | undefined;
|
|
2358
|
+
method: "CARD";
|
|
2359
|
+
} | {
|
|
2360
|
+
brand: string;
|
|
2361
|
+
last4: string;
|
|
2362
|
+
auth_code?: string | undefined;
|
|
2363
|
+
installments?: number | undefined;
|
|
2364
|
+
method: "PIN_PAD";
|
|
2365
|
+
terminal_id: string;
|
|
2366
|
+
} | {
|
|
2367
|
+
method: "CASH";
|
|
2368
|
+
tendered: number;
|
|
2369
|
+
change: number;
|
|
2370
|
+
} | {
|
|
2371
|
+
method: "BANK_TRANSFER";
|
|
2372
|
+
reference: string;
|
|
2373
|
+
bank?: string | undefined;
|
|
2374
|
+
} | {
|
|
2375
|
+
method: "WALLET";
|
|
2376
|
+
wallet: string;
|
|
2377
|
+
reference: string;
|
|
2378
|
+
} | {
|
|
2379
|
+
method: "FINANCING";
|
|
2380
|
+
provider_reference: string;
|
|
2381
|
+
installments: number;
|
|
2382
|
+
} | {
|
|
2383
|
+
method: "REDEMPTION";
|
|
2384
|
+
rewards: {
|
|
2385
|
+
reward_id: string;
|
|
2386
|
+
quantity: number;
|
|
2387
|
+
amount: number;
|
|
2388
|
+
}[];
|
|
2389
|
+
loyalty_transaction_id?: string | undefined;
|
|
2390
|
+
amount: number;
|
|
2391
|
+
} | {
|
|
2392
|
+
method: "REDEMPTION";
|
|
2393
|
+
loyalty_transaction_id?: string | undefined;
|
|
2394
|
+
rewards: {
|
|
2395
|
+
reward_id: string;
|
|
2396
|
+
quantity: number;
|
|
2397
|
+
amount: number;
|
|
2398
|
+
}[];
|
|
2399
|
+
amount: number;
|
|
2400
|
+
} | null;
|
|
2401
|
+
replaces_tender_id?: string | undefined;
|
|
2402
|
+
error_message?: string | undefined;
|
|
2403
|
+
placed_at: string | null;
|
|
2404
|
+
resolved_at?: string | undefined;
|
|
2405
|
+
}[];
|
|
2406
|
+
}[];
|
|
2407
|
+
};
|
|
2408
|
+
/** `POST /admin/v1/orders/{id}/payments` body. */
|
|
2409
|
+
type AdminOrderRecordPaymentInput = {
|
|
2410
|
+
tender_id: string;
|
|
2411
|
+
attempt_reference: string;
|
|
2412
|
+
status: "PAID" | "REFUNDED";
|
|
2413
|
+
details?: {
|
|
2414
|
+
method: "REDEMPTION";
|
|
2415
|
+
reward_id: string;
|
|
2416
|
+
points_value: number;
|
|
2417
|
+
loyalty_transaction_id?: string | undefined;
|
|
2418
|
+
} | {
|
|
2419
|
+
method: "REDEMPTION";
|
|
2420
|
+
rewards: {
|
|
2421
|
+
reward_id: string;
|
|
2422
|
+
quantity?: number | undefined;
|
|
2423
|
+
points_value: number;
|
|
2424
|
+
}[];
|
|
2425
|
+
loyalty_transaction_id?: string | undefined;
|
|
2426
|
+
} | {
|
|
2427
|
+
brand: string;
|
|
2428
|
+
last4: string;
|
|
2429
|
+
auth_code?: string | undefined;
|
|
2430
|
+
installments?: number | undefined;
|
|
2431
|
+
method: "CARD";
|
|
2432
|
+
} | {
|
|
2433
|
+
brand: string;
|
|
2434
|
+
last4: string;
|
|
2435
|
+
auth_code?: string | undefined;
|
|
2436
|
+
installments?: number | undefined;
|
|
2437
|
+
method: "PIN_PAD";
|
|
2438
|
+
terminal_id: string;
|
|
2439
|
+
} | {
|
|
2440
|
+
method: "CASH";
|
|
2441
|
+
tendered: number;
|
|
2442
|
+
change: number;
|
|
2443
|
+
} | {
|
|
2444
|
+
method: "BANK_TRANSFER";
|
|
2445
|
+
reference: string;
|
|
2446
|
+
bank?: string | undefined;
|
|
2447
|
+
} | {
|
|
2448
|
+
method: "WALLET";
|
|
2449
|
+
wallet: string;
|
|
2450
|
+
reference: string;
|
|
2451
|
+
} | {
|
|
2452
|
+
method: "FINANCING";
|
|
2453
|
+
provider_reference: string;
|
|
2454
|
+
installments: number;
|
|
2455
|
+
} | {
|
|
2456
|
+
method: "REDEMPTION";
|
|
2457
|
+
rewards: {
|
|
2458
|
+
reward_id: string;
|
|
2459
|
+
quantity?: number | undefined;
|
|
2460
|
+
amount: number;
|
|
2461
|
+
}[];
|
|
2462
|
+
amount: number;
|
|
2463
|
+
loyalty_transaction_id?: string | undefined;
|
|
2464
|
+
} | null | undefined;
|
|
2465
|
+
approved_amount?: number | undefined;
|
|
2466
|
+
provider_reference?: string | undefined;
|
|
2467
|
+
error_message?: string | undefined;
|
|
2468
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2469
|
+
};
|
|
2470
|
+
/** Allowed status values for `POST /admin/v1/orders/{id}/payments`. */
|
|
2471
|
+
type AdminRecordPaymentStatus = "PAID" | "REFUNDED";
|
|
2287
2472
|
/** Optional injection IDs forwarded when advancing from `INJECTING`. */
|
|
2288
2473
|
interface OrderAdvanceFulfillmentOptions {
|
|
2289
2474
|
order_authorization_id?: string;
|
|
@@ -5906,4 +6091,4 @@ type WordFilterCheckResult = {
|
|
|
5906
6091
|
matches: WordFilterMatch[];
|
|
5907
6092
|
};
|
|
5908
6093
|
//#endregion
|
|
5909
|
-
export type { AddressInfo, AndConditions, ApplyFeesInput, ApplyFeesOrderScope, BillingInfo, BillingProfile, BundledItem, Category, CategoryAvailability, CategoryItem, ChannelManifest, ChannelManifestNative, ChannelManifestWeb, ChannelPlatform, ChannelTemplate, CheckoutMode, CheckoutResolved, CmsBlock, CmsBlockItem, Condition, Customer, CustomerGender, CustomerIdentifyInput, CustomerRegisterInput, CustomerUpdateInput, DayOfWeek, DeliveryAddress, DeviceSecretStorage, DeviceSecretsConfigureOptions, DeviceSecretsPayload, Fee, Fulfillment, FulfillmentEligibilityInput, FulfillmentListInput, GroupDisplayType, KioskAdminGesture, KioskAppState, KioskCommandPayload, KioskCommandType, KioskConfigChangedPayload, KioskDeviceConfig, KioskDeviceConfigDevice, KioskDeviceConfigInput, KioskDeviceConfigPayment, KioskDeviceConfigScope, KioskDeviceConfigSettings, KioskDeviceOverrides, KioskDevicePaymentSettings, KioskHealthBatchInput, KioskHealthBatchResult, KioskHealthSample, KioskHeartbeatHealth, KioskHeartbeatInput, KioskHeartbeatResult, KioskOrderPager, KioskPagerMode, KioskPagerSide, KioskPagersOverrides, KioskPagersSettings, KioskPickupNameRules, KioskRealtimeToken, LocalServerConfig, LocalServerHealthResult, MasivoTotpCode, MasivoTotpCreateInput, MasivoTotpCustomer, MasivoTotpVerification, MasivoTotpVerifyInput, MatchResult, MatchableRule, Menu, MenuLookup, MerchantPayment, Metadata, MixedPaymentsEffect, MixedPaymentsLimits, ModifierControlType, ModifierGroup, MultiLanguageText, OrConditions, Order, OrderAdvanceFulfillmentInput, OrderAdvanceFulfillmentOptions, OrderCancelInput, OrderCancelType, OrderChangedCallback, OrderChangedCallbackError, OrderChangedCheckoutState, OrderChangedDeviceReversal, OrderChangedDeviceReversalTender, OrderChangedError, OrderChangedPayload, OrderChangedRunStatus, OrderDeviceCredential, OrderDeviceKind, OrderDeviceListInput, OrderDeviceListResult, OrderFulfillment, OrderFulfillmentEmailRun, OrderFulfillmentEmailRunStatus, OrderFulfillmentWorkflow, OrderFulfillmentWorkflowEdge, OrderFulfillmentWorkflowNode, OrderFulfillmentWorkflowNodeNotification, OrderInsertInput, OrderLine, OrderListInput, OrderRateInput, OrderRating, OrderRecord, OrderRecordPaymentInput, OrderRedeem, OrderRedeemInput, OrderRedemptionState, OrderRedemptionStep, OrderReorderInput, OrderReportedTender, OrderRouteKind, OrderRouteStatus, OrderRoutes, OrderSetCustomerInput, OrderTotals, OrderUpdateInput, OrderValidateInput, OrderValidateOutput, Payment, PaymentCollectAt, PaymentEligibilityInput, PaymentErrorCode, PaymentIntent, PaymentIntentInput, PaymentIntentPutInput, PaymentIntentStatus, PaymentMethod, PaymentProvider, PaymentScope, PaymentStatus, PaymentTender, PaymentTenderInput, PlaceOrderResult, PosActorKind, PosCashBreakdownItem, PosCatalog, PosDenominationKind, PosDeviceConfigDevice, PosDeviceConfigScope, PosDeviceOverrides, PosErrorCode, PosFloor, PosFloorChangedPayload, PosFloorElement, PosFloorInput, PosFloorLayout, PosFloorOccupancy, PosFloorPlan, PosFloorRealtimeToken, PosFloorTable, PosHealthBatchInput, PosHealthBatchResult, PosHealthSample, PosHeartbeatHealth, PosHeartbeatInput, PosHeartbeatResult, PosKioskOrder, PosKioskSettleInput, PosKioskSettleResult, PosOrderInput, PosOrderResult, PosReservationHold, PosReservationHoldStatus, PosStaff, PosTableAttachOrderInput, PosTableCloseInput, PosTableJoinInput, PosTableSeatInput, PosTableSeatReservationInput, PosTableSession, PosTableSessionOrder, PosTableSessionStatus, PosTableSplitInput, PricingModifier, PricingVariant, Product, ProductAvailability, ProductPricing, ProductRecommendationLink, ProductRewardSavings, Recommendation, RecurringDateCronDateParts, RecurringDateCronExpression, RecurringDateCronFormatter, RecurringDateCronRepeat, RecurringDateCronResult, RecurringDateCronSummary, RecurringDateCronValues, RouteEligibility, RouteEligibilityDetail, RouteEligibilityFlags, RouteEligibilityReason, RouteFailureKind, RouteHealthEvent, RouteHealthListener, RuleInterpretation, RulesEngineMonitoring, RulesEngineOrder, RulesEngineOrderLine, RulesEngineParams, RulesEngineRuntime, RulesEngineTagValue, Schedule, ScheduleDay, SchedulePeriod, SdkLogContext, SdkLogEntry, SdkLogErrorInfo, SdkLogIngestResult, SdkLogLevel, SdkLogOptions, Store, StoreAvailabilityFilters, StoreGetInput, StoreListInput, StoreNearbyInput, StorefrontAvailability, StorefrontAvailabilityChangedPayload, StorefrontAvailabilityInput, StorefrontAvailabilityRule, StorefrontCmsChangedPayload, StorefrontMenu, StorefrontMenuChangedPayload, StorefrontMenuScope, StorefrontMenuStreamOptions, StorefrontPaymentsListInput, StorefrontPreferences, StorefrontPreferencesInput, StorefrontRealtimeToken, StorefrontRealtimeTokenInput, StorefrontWorkspaceChangedPayload, StringMatchCaseOptions, SwitchCustomerArg, SwitchCustomerIdToken, SwitchCustomerOptions, SwitchCustomerResult, TenderAllocation, TenderAllocationInput, TenderAmount, TenderDetails, TenderRefundInput, TenderReplaceInput, TenderVoidInput, Variant, VariantGroup, WordFilterCategory, WordFilterCheckInput, WordFilterCheckResult, WordFilterMatch };
|
|
6094
|
+
export type { AddressInfo, AdminOrderPayments, AdminOrderRecordPaymentInput, AdminRecordPaymentStatus, AndConditions, ApplyFeesInput, ApplyFeesOrderScope, BillingInfo, BillingProfile, BundledItem, Category, CategoryAvailability, CategoryItem, ChannelManifest, ChannelManifestNative, ChannelManifestWeb, ChannelPlatform, ChannelTemplate, CheckoutMode, CheckoutResolved, CmsBlock, CmsBlockItem, Condition, Customer, CustomerGender, CustomerIdentifyInput, CustomerRegisterInput, CustomerUpdateInput, DayOfWeek, DeliveryAddress, DeviceSecretStorage, DeviceSecretsConfigureOptions, DeviceSecretsPayload, Fee, Fulfillment, FulfillmentEligibilityInput, FulfillmentListInput, GroupDisplayType, KioskAdminGesture, KioskAppState, KioskCommandPayload, KioskCommandType, KioskConfigChangedPayload, KioskDeviceConfig, KioskDeviceConfigDevice, KioskDeviceConfigInput, KioskDeviceConfigPayment, KioskDeviceConfigScope, KioskDeviceConfigSettings, KioskDeviceOverrides, KioskDevicePaymentSettings, KioskHealthBatchInput, KioskHealthBatchResult, KioskHealthSample, KioskHeartbeatHealth, KioskHeartbeatInput, KioskHeartbeatResult, KioskOrderPager, KioskPagerMode, KioskPagerSide, KioskPagersOverrides, KioskPagersSettings, KioskPickupNameRules, KioskRealtimeToken, LocalServerConfig, LocalServerHealthResult, MasivoTotpCode, MasivoTotpCreateInput, MasivoTotpCustomer, MasivoTotpVerification, MasivoTotpVerifyInput, MatchResult, MatchableRule, Menu, MenuLookup, MerchantPayment, Metadata, MixedPaymentsEffect, MixedPaymentsLimits, ModifierControlType, ModifierGroup, MultiLanguageText, OrConditions, Order, OrderAdvanceFulfillmentInput, OrderAdvanceFulfillmentOptions, OrderCancelInput, OrderCancelType, OrderChangedCallback, OrderChangedCallbackError, OrderChangedCheckoutState, OrderChangedDeviceReversal, OrderChangedDeviceReversalTender, OrderChangedError, OrderChangedPayload, OrderChangedRunStatus, OrderDeviceCredential, OrderDeviceKind, OrderDeviceListInput, OrderDeviceListResult, OrderFulfillment, OrderFulfillmentEmailRun, OrderFulfillmentEmailRunStatus, OrderFulfillmentWorkflow, OrderFulfillmentWorkflowEdge, OrderFulfillmentWorkflowNode, OrderFulfillmentWorkflowNodeNotification, OrderInsertInput, OrderLine, OrderListInput, OrderRateInput, OrderRating, OrderRecord, OrderRecordPaymentInput, OrderRedeem, OrderRedeemInput, OrderRedemptionState, OrderRedemptionStep, OrderReorderInput, OrderReportedTender, OrderRouteKind, OrderRouteStatus, OrderRoutes, OrderSetCustomerInput, OrderTotals, OrderUpdateInput, OrderValidateInput, OrderValidateOutput, Payment, PaymentCollectAt, PaymentEligibilityInput, PaymentErrorCode, PaymentIntent, PaymentIntentInput, PaymentIntentPutInput, PaymentIntentStatus, PaymentMethod, PaymentProvider, PaymentScope, PaymentStatus, PaymentTender, PaymentTenderInput, PlaceOrderResult, PosActorKind, PosCashBreakdownItem, PosCatalog, PosDenominationKind, PosDeviceConfigDevice, PosDeviceConfigScope, PosDeviceOverrides, PosErrorCode, PosFloor, PosFloorChangedPayload, PosFloorElement, PosFloorInput, PosFloorLayout, PosFloorOccupancy, PosFloorPlan, PosFloorRealtimeToken, PosFloorTable, PosHealthBatchInput, PosHealthBatchResult, PosHealthSample, PosHeartbeatHealth, PosHeartbeatInput, PosHeartbeatResult, PosKioskOrder, PosKioskSettleInput, PosKioskSettleResult, PosOrderInput, PosOrderResult, PosReservationHold, PosReservationHoldStatus, PosStaff, PosTableAttachOrderInput, PosTableCloseInput, PosTableJoinInput, PosTableSeatInput, PosTableSeatReservationInput, PosTableSession, PosTableSessionOrder, PosTableSessionStatus, PosTableSplitInput, PricingModifier, PricingVariant, Product, ProductAvailability, ProductPricing, ProductRecommendationLink, ProductRewardSavings, Recommendation, RecurringDateCronDateParts, RecurringDateCronExpression, RecurringDateCronFormatter, RecurringDateCronRepeat, RecurringDateCronResult, RecurringDateCronSummary, RecurringDateCronValues, RouteEligibility, RouteEligibilityDetail, RouteEligibilityFlags, RouteEligibilityReason, RouteFailureKind, RouteHealthEvent, RouteHealthListener, RuleInterpretation, RulesEngineMonitoring, RulesEngineOrder, RulesEngineOrderLine, RulesEngineParams, RulesEngineRuntime, RulesEngineTagValue, Schedule, ScheduleDay, SchedulePeriod, SdkLogContext, SdkLogEntry, SdkLogErrorInfo, SdkLogIngestResult, SdkLogLevel, SdkLogOptions, Store, StoreAvailabilityFilters, StoreGetInput, StoreListInput, StoreNearbyInput, StorefrontAvailability, StorefrontAvailabilityChangedPayload, StorefrontAvailabilityInput, StorefrontAvailabilityRule, StorefrontCmsChangedPayload, StorefrontMenu, StorefrontMenuChangedPayload, StorefrontMenuScope, StorefrontMenuStreamOptions, StorefrontPaymentsListInput, StorefrontPreferences, StorefrontPreferencesInput, StorefrontRealtimeToken, StorefrontRealtimeTokenInput, StorefrontWorkspaceChangedPayload, StringMatchCaseOptions, SwitchCustomerArg, SwitchCustomerIdToken, SwitchCustomerOptions, SwitchCustomerResult, TenderAllocation, TenderAllocationInput, TenderAmount, TenderDetails, TenderRefundInput, TenderReplaceInput, TenderVoidInput, Variant, VariantGroup, WordFilterCategory, WordFilterCheckInput, WordFilterCheckResult, WordFilterMatch };
|