@fire-spark/types 0.3.0 → 0.3.1
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 +132 -16
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2123,6 +2123,18 @@ type Order = {
|
|
|
2123
2123
|
}[];
|
|
2124
2124
|
} | null;
|
|
2125
2125
|
details: {
|
|
2126
|
+
method: "REDEMPTION";
|
|
2127
|
+
program?: string | undefined;
|
|
2128
|
+
rewards: {
|
|
2129
|
+
reward_id: string;
|
|
2130
|
+
quantity: number;
|
|
2131
|
+
points: number;
|
|
2132
|
+
points_value: number;
|
|
2133
|
+
}[];
|
|
2134
|
+
points: number;
|
|
2135
|
+
points_value: number;
|
|
2136
|
+
loyalty_transaction_id?: string | undefined;
|
|
2137
|
+
} | {
|
|
2126
2138
|
brand: string;
|
|
2127
2139
|
last4: string;
|
|
2128
2140
|
auth_code?: string | undefined;
|
|
@@ -2153,11 +2165,16 @@ type Order = {
|
|
|
2153
2165
|
installments: number;
|
|
2154
2166
|
} | {
|
|
2155
2167
|
method: "REDEMPTION";
|
|
2156
|
-
reward_id: string;
|
|
2157
2168
|
program: string;
|
|
2169
|
+
loyalty_transaction_id?: string | undefined;
|
|
2170
|
+
rewards: {
|
|
2171
|
+
reward_id: string;
|
|
2172
|
+
quantity: number;
|
|
2173
|
+
points: number;
|
|
2174
|
+
points_value: number;
|
|
2175
|
+
}[];
|
|
2158
2176
|
points: number;
|
|
2159
2177
|
points_value: number;
|
|
2160
|
-
loyalty_transaction_id?: string | undefined;
|
|
2161
2178
|
} | null;
|
|
2162
2179
|
replaces_tender_id?: string | undefined;
|
|
2163
2180
|
error_message?: string | undefined;
|
|
@@ -2288,6 +2305,18 @@ type PaymentIntent = {
|
|
|
2288
2305
|
}[];
|
|
2289
2306
|
} | null;
|
|
2290
2307
|
details: {
|
|
2308
|
+
method: "REDEMPTION";
|
|
2309
|
+
program?: string | undefined;
|
|
2310
|
+
rewards: {
|
|
2311
|
+
reward_id: string;
|
|
2312
|
+
quantity: number;
|
|
2313
|
+
points: number;
|
|
2314
|
+
points_value: number;
|
|
2315
|
+
}[];
|
|
2316
|
+
points: number;
|
|
2317
|
+
points_value: number;
|
|
2318
|
+
loyalty_transaction_id?: string | undefined;
|
|
2319
|
+
} | {
|
|
2291
2320
|
brand: string;
|
|
2292
2321
|
last4: string;
|
|
2293
2322
|
auth_code?: string | undefined;
|
|
@@ -2318,11 +2347,16 @@ type PaymentIntent = {
|
|
|
2318
2347
|
installments: number;
|
|
2319
2348
|
} | {
|
|
2320
2349
|
method: "REDEMPTION";
|
|
2321
|
-
reward_id: string;
|
|
2322
2350
|
program: string;
|
|
2351
|
+
loyalty_transaction_id?: string | undefined;
|
|
2352
|
+
rewards: {
|
|
2353
|
+
reward_id: string;
|
|
2354
|
+
quantity: number;
|
|
2355
|
+
points: number;
|
|
2356
|
+
points_value: number;
|
|
2357
|
+
}[];
|
|
2323
2358
|
points: number;
|
|
2324
2359
|
points_value: number;
|
|
2325
|
-
loyalty_transaction_id?: string | undefined;
|
|
2326
2360
|
} | null;
|
|
2327
2361
|
replaces_tender_id?: string | undefined;
|
|
2328
2362
|
error_message?: string | undefined;
|
|
@@ -2405,6 +2439,13 @@ type PaymentIntentInput = {
|
|
|
2405
2439
|
}[] | undefined;
|
|
2406
2440
|
} | null | undefined;
|
|
2407
2441
|
details?: {
|
|
2442
|
+
method: "REDEMPTION";
|
|
2443
|
+
reward_id: string;
|
|
2444
|
+
program: string;
|
|
2445
|
+
points: number;
|
|
2446
|
+
points_value: number;
|
|
2447
|
+
loyalty_transaction_id?: string | undefined;
|
|
2448
|
+
} | {
|
|
2408
2449
|
brand: string;
|
|
2409
2450
|
last4: string;
|
|
2410
2451
|
auth_code?: string | undefined;
|
|
@@ -2435,8 +2476,13 @@ type PaymentIntentInput = {
|
|
|
2435
2476
|
installments: number;
|
|
2436
2477
|
} | {
|
|
2437
2478
|
method: "REDEMPTION";
|
|
2438
|
-
|
|
2439
|
-
|
|
2479
|
+
program?: string | undefined;
|
|
2480
|
+
rewards: {
|
|
2481
|
+
reward_id: string;
|
|
2482
|
+
quantity?: number | undefined;
|
|
2483
|
+
points: number;
|
|
2484
|
+
points_value: number;
|
|
2485
|
+
}[];
|
|
2440
2486
|
points: number;
|
|
2441
2487
|
points_value: number;
|
|
2442
2488
|
loyalty_transaction_id?: string | undefined;
|
|
@@ -2503,6 +2549,18 @@ type PaymentTender = {
|
|
|
2503
2549
|
}[];
|
|
2504
2550
|
} | null;
|
|
2505
2551
|
details: {
|
|
2552
|
+
method: "REDEMPTION";
|
|
2553
|
+
program?: string | undefined;
|
|
2554
|
+
rewards: {
|
|
2555
|
+
reward_id: string;
|
|
2556
|
+
quantity: number;
|
|
2557
|
+
points: number;
|
|
2558
|
+
points_value: number;
|
|
2559
|
+
}[];
|
|
2560
|
+
points: number;
|
|
2561
|
+
points_value: number;
|
|
2562
|
+
loyalty_transaction_id?: string | undefined;
|
|
2563
|
+
} | {
|
|
2506
2564
|
brand: string;
|
|
2507
2565
|
last4: string;
|
|
2508
2566
|
auth_code?: string | undefined;
|
|
@@ -2533,11 +2591,16 @@ type PaymentTender = {
|
|
|
2533
2591
|
installments: number;
|
|
2534
2592
|
} | {
|
|
2535
2593
|
method: "REDEMPTION";
|
|
2536
|
-
reward_id: string;
|
|
2537
2594
|
program: string;
|
|
2595
|
+
loyalty_transaction_id?: string | undefined;
|
|
2596
|
+
rewards: {
|
|
2597
|
+
reward_id: string;
|
|
2598
|
+
quantity: number;
|
|
2599
|
+
points: number;
|
|
2600
|
+
points_value: number;
|
|
2601
|
+
}[];
|
|
2538
2602
|
points: number;
|
|
2539
2603
|
points_value: number;
|
|
2540
|
-
loyalty_transaction_id?: string | undefined;
|
|
2541
2604
|
} | null;
|
|
2542
2605
|
replaces_tender_id?: string | undefined;
|
|
2543
2606
|
error_message?: string | undefined;
|
|
@@ -2591,6 +2654,18 @@ type TenderAllocationInput = {
|
|
|
2591
2654
|
};
|
|
2592
2655
|
/** Non-sensitive tender data, discriminated by `method`. */
|
|
2593
2656
|
type TenderDetails = {
|
|
2657
|
+
method: "REDEMPTION";
|
|
2658
|
+
program?: string | undefined;
|
|
2659
|
+
rewards: {
|
|
2660
|
+
reward_id: string;
|
|
2661
|
+
quantity: number;
|
|
2662
|
+
points: number;
|
|
2663
|
+
points_value: number;
|
|
2664
|
+
}[];
|
|
2665
|
+
points: number;
|
|
2666
|
+
points_value: number;
|
|
2667
|
+
loyalty_transaction_id?: string | undefined;
|
|
2668
|
+
} | {
|
|
2594
2669
|
brand: string;
|
|
2595
2670
|
last4: string;
|
|
2596
2671
|
auth_code?: string | undefined;
|
|
@@ -2621,11 +2696,16 @@ type TenderDetails = {
|
|
|
2621
2696
|
installments: number;
|
|
2622
2697
|
} | {
|
|
2623
2698
|
method: "REDEMPTION";
|
|
2624
|
-
reward_id: string;
|
|
2625
2699
|
program: string;
|
|
2700
|
+
loyalty_transaction_id?: string | undefined;
|
|
2701
|
+
rewards: {
|
|
2702
|
+
reward_id: string;
|
|
2703
|
+
quantity: number;
|
|
2704
|
+
points: number;
|
|
2705
|
+
points_value: number;
|
|
2706
|
+
}[];
|
|
2626
2707
|
points: number;
|
|
2627
2708
|
points_value: number;
|
|
2628
|
-
loyalty_transaction_id?: string | undefined;
|
|
2629
2709
|
};
|
|
2630
2710
|
/** One tender in `PUT /storefront/v1/orders/{id}/payment-intent`. */
|
|
2631
2711
|
type PaymentTenderInput = {
|
|
@@ -2643,6 +2723,13 @@ type PaymentTenderInput = {
|
|
|
2643
2723
|
fees?: string[] | undefined;
|
|
2644
2724
|
} | null | undefined;
|
|
2645
2725
|
details?: {
|
|
2726
|
+
method: "REDEMPTION";
|
|
2727
|
+
reward_id: string;
|
|
2728
|
+
program: string;
|
|
2729
|
+
points: number;
|
|
2730
|
+
points_value: number;
|
|
2731
|
+
loyalty_transaction_id?: string | undefined;
|
|
2732
|
+
} | {
|
|
2646
2733
|
brand: string;
|
|
2647
2734
|
last4: string;
|
|
2648
2735
|
auth_code?: string | undefined;
|
|
@@ -2673,8 +2760,13 @@ type PaymentTenderInput = {
|
|
|
2673
2760
|
installments: number;
|
|
2674
2761
|
} | {
|
|
2675
2762
|
method: "REDEMPTION";
|
|
2676
|
-
|
|
2677
|
-
|
|
2763
|
+
program?: string | undefined;
|
|
2764
|
+
rewards: {
|
|
2765
|
+
reward_id: string;
|
|
2766
|
+
quantity?: number | undefined;
|
|
2767
|
+
points: number;
|
|
2768
|
+
points_value: number;
|
|
2769
|
+
}[];
|
|
2678
2770
|
points: number;
|
|
2679
2771
|
points_value: number;
|
|
2680
2772
|
loyalty_transaction_id?: string | undefined;
|
|
@@ -2697,6 +2789,13 @@ type PaymentIntentPutInput = {
|
|
|
2697
2789
|
fees?: string[] | undefined;
|
|
2698
2790
|
} | null | undefined;
|
|
2699
2791
|
details?: {
|
|
2792
|
+
method: "REDEMPTION";
|
|
2793
|
+
reward_id: string;
|
|
2794
|
+
program: string;
|
|
2795
|
+
points: number;
|
|
2796
|
+
points_value: number;
|
|
2797
|
+
loyalty_transaction_id?: string | undefined;
|
|
2798
|
+
} | {
|
|
2700
2799
|
brand: string;
|
|
2701
2800
|
last4: string;
|
|
2702
2801
|
auth_code?: string | undefined;
|
|
@@ -2727,8 +2826,13 @@ type PaymentIntentPutInput = {
|
|
|
2727
2826
|
installments: number;
|
|
2728
2827
|
} | {
|
|
2729
2828
|
method: "REDEMPTION";
|
|
2730
|
-
|
|
2731
|
-
|
|
2829
|
+
program?: string | undefined;
|
|
2830
|
+
rewards: {
|
|
2831
|
+
reward_id: string;
|
|
2832
|
+
quantity?: number | undefined;
|
|
2833
|
+
points: number;
|
|
2834
|
+
points_value: number;
|
|
2835
|
+
}[];
|
|
2732
2836
|
points: number;
|
|
2733
2837
|
points_value: number;
|
|
2734
2838
|
loyalty_transaction_id?: string | undefined;
|
|
@@ -3228,6 +3332,13 @@ type OrderRecordPaymentInput = {
|
|
|
3228
3332
|
attempt_reference: string;
|
|
3229
3333
|
status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
|
|
3230
3334
|
details?: {
|
|
3335
|
+
method: "REDEMPTION";
|
|
3336
|
+
reward_id: string;
|
|
3337
|
+
program: string;
|
|
3338
|
+
points: number;
|
|
3339
|
+
points_value: number;
|
|
3340
|
+
loyalty_transaction_id?: string | undefined;
|
|
3341
|
+
} | {
|
|
3231
3342
|
brand: string;
|
|
3232
3343
|
last4: string;
|
|
3233
3344
|
auth_code?: string | undefined;
|
|
@@ -3258,8 +3369,13 @@ type OrderRecordPaymentInput = {
|
|
|
3258
3369
|
installments: number;
|
|
3259
3370
|
} | {
|
|
3260
3371
|
method: "REDEMPTION";
|
|
3261
|
-
|
|
3262
|
-
|
|
3372
|
+
program?: string | undefined;
|
|
3373
|
+
rewards: {
|
|
3374
|
+
reward_id: string;
|
|
3375
|
+
quantity?: number | undefined;
|
|
3376
|
+
points: number;
|
|
3377
|
+
points_value: number;
|
|
3378
|
+
}[];
|
|
3263
3379
|
points: number;
|
|
3264
3380
|
points_value: number;
|
|
3265
3381
|
loyalty_transaction_id?: string | undefined;
|