squarefi-bff-api-module 1.36.85 → 1.36.86
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/api/types/types.d.ts +9 -2
- package/dist/constants.d.ts +6 -3
- package/dist/constants.js +3 -0
- package/package.json +1 -1
|
@@ -2016,7 +2016,13 @@ export declare namespace API {
|
|
|
2016
2016
|
}
|
|
2017
2017
|
export {};
|
|
2018
2018
|
}
|
|
2019
|
-
|
|
2019
|
+
/**
|
|
2020
|
+
* Read off the `Order` schema rather than re-declared, so a status the backend adds lands here
|
|
2021
|
+
* on the next regeneration. `EXPECTED` = a scheduled payment waiting for its `scheduled_at`;
|
|
2022
|
+
* `REFUNDED` = a failed order whose funds were paid back. `ERROR` is not in the schema: it exists on
|
|
2023
|
+
* legacy orders only and is kept so code that handles it keeps compiling; new orders fail as `FAILED`.
|
|
2024
|
+
*/
|
|
2025
|
+
type OrderStatus = NonNullable<API.Orders.Frontend.Order['status']> | 'ERROR';
|
|
2020
2026
|
namespace OrderTypes {
|
|
2021
2027
|
type OrderTypeKycRail = {
|
|
2022
2028
|
id: string;
|
|
@@ -2660,9 +2666,10 @@ export declare namespace API {
|
|
|
2660
2666
|
namespace Frontend {
|
|
2661
2667
|
type OrderDocumentInput = componentsV1Frontend['schemas']['OrderDocumentInput'];
|
|
2662
2668
|
type OrderCalculation = componentsV1Frontend['schemas']['OrderCalculation'];
|
|
2669
|
+
type Order = componentsV1Frontend['schemas']['Order'];
|
|
2663
2670
|
type OrderEnvelope = {
|
|
2664
2671
|
success?: boolean;
|
|
2665
|
-
data?:
|
|
2672
|
+
data?: Order;
|
|
2666
2673
|
message?: string;
|
|
2667
2674
|
};
|
|
2668
2675
|
namespace Create {
|
package/dist/constants.d.ts
CHANGED
|
@@ -347,14 +347,17 @@ export type UserVerificationFlowMismatch = EnumUnionMismatch<UserVerificationFlo
|
|
|
347
347
|
export declare enum OrderStatuses {
|
|
348
348
|
NEW = "NEW",
|
|
349
349
|
PENDING = "PENDING",
|
|
350
|
+
EXPECTED = "EXPECTED",
|
|
350
351
|
PROCESSING = "PROCESSING",
|
|
351
352
|
CANCELED = "CANCELED",
|
|
352
353
|
COMPLETE = "COMPLETE",
|
|
354
|
+
/** @deprecated Legacy orders only; the `Order` schema has no `ERROR` and reports a failure as `FAILED`. */
|
|
353
355
|
ERROR = "ERROR",
|
|
354
|
-
FAILED = "FAILED"
|
|
356
|
+
FAILED = "FAILED",
|
|
357
|
+
REFUNDED = "REFUNDED"
|
|
355
358
|
}
|
|
356
|
-
export declare const OrderStatusCheck: IsEnumEqualToUnion<OrderStatuses, API.Orders.
|
|
357
|
-
export type OrderStatusMismatch = EnumUnionMismatch<OrderStatuses, API.Orders.
|
|
359
|
+
export declare const OrderStatusCheck: IsEnumEqualToUnion<OrderStatuses, API.Orders.OrderStatus>;
|
|
360
|
+
export type OrderStatusMismatch = EnumUnionMismatch<OrderStatuses, API.Orders.OrderStatus>;
|
|
358
361
|
export declare enum CardStatus {
|
|
359
362
|
ACTIVE = "ACTIVE",
|
|
360
363
|
FROZEN = "FROZEN",
|
package/dist/constants.js
CHANGED
|
@@ -363,11 +363,14 @@ export var OrderStatuses;
|
|
|
363
363
|
(function (OrderStatuses) {
|
|
364
364
|
OrderStatuses["NEW"] = "NEW";
|
|
365
365
|
OrderStatuses["PENDING"] = "PENDING";
|
|
366
|
+
OrderStatuses["EXPECTED"] = "EXPECTED";
|
|
366
367
|
OrderStatuses["PROCESSING"] = "PROCESSING";
|
|
367
368
|
OrderStatuses["CANCELED"] = "CANCELED";
|
|
368
369
|
OrderStatuses["COMPLETE"] = "COMPLETE";
|
|
370
|
+
/** @deprecated Legacy orders only; the `Order` schema has no `ERROR` and reports a failure as `FAILED`. */
|
|
369
371
|
OrderStatuses["ERROR"] = "ERROR";
|
|
370
372
|
OrderStatuses["FAILED"] = "FAILED";
|
|
373
|
+
OrderStatuses["REFUNDED"] = "REFUNDED";
|
|
371
374
|
})(OrderStatuses || (OrderStatuses = {}));
|
|
372
375
|
export const OrderStatusCheck = true;
|
|
373
376
|
export var CardStatus;
|