squarefi-bff-api-module 1.36.85 → 1.36.87
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 +8 -2
- package/dist/constants.d.ts +5 -4
- package/dist/constants.js +2 -1
- package/package.json +1 -1
|
@@ -2016,7 +2016,12 @@ 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.
|
|
2023
|
+
*/
|
|
2024
|
+
type OrderStatus = NonNullable<API.Orders.Frontend.Order['status']>;
|
|
2020
2025
|
namespace OrderTypes {
|
|
2021
2026
|
type OrderTypeKycRail = {
|
|
2022
2027
|
id: string;
|
|
@@ -2660,9 +2665,10 @@ export declare namespace API {
|
|
|
2660
2665
|
namespace Frontend {
|
|
2661
2666
|
type OrderDocumentInput = componentsV1Frontend['schemas']['OrderDocumentInput'];
|
|
2662
2667
|
type OrderCalculation = componentsV1Frontend['schemas']['OrderCalculation'];
|
|
2668
|
+
type Order = componentsV1Frontend['schemas']['Order'];
|
|
2663
2669
|
type OrderEnvelope = {
|
|
2664
2670
|
success?: boolean;
|
|
2665
|
-
data?:
|
|
2671
|
+
data?: Order;
|
|
2666
2672
|
message?: string;
|
|
2667
2673
|
};
|
|
2668
2674
|
namespace Create {
|
package/dist/constants.d.ts
CHANGED
|
@@ -347,14 +347,15 @@ 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",
|
|
353
|
-
|
|
354
|
-
|
|
354
|
+
FAILED = "FAILED",
|
|
355
|
+
REFUNDED = "REFUNDED"
|
|
355
356
|
}
|
|
356
|
-
export declare const OrderStatusCheck: IsEnumEqualToUnion<OrderStatuses, API.Orders.
|
|
357
|
-
export type OrderStatusMismatch = EnumUnionMismatch<OrderStatuses, API.Orders.
|
|
357
|
+
export declare const OrderStatusCheck: IsEnumEqualToUnion<OrderStatuses, API.Orders.OrderStatus>;
|
|
358
|
+
export type OrderStatusMismatch = EnumUnionMismatch<OrderStatuses, API.Orders.OrderStatus>;
|
|
358
359
|
export declare enum CardStatus {
|
|
359
360
|
ACTIVE = "ACTIVE",
|
|
360
361
|
FROZEN = "FROZEN",
|
package/dist/constants.js
CHANGED
|
@@ -363,11 +363,12 @@ 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";
|
|
369
|
-
OrderStatuses["ERROR"] = "ERROR";
|
|
370
370
|
OrderStatuses["FAILED"] = "FAILED";
|
|
371
|
+
OrderStatuses["REFUNDED"] = "REFUNDED";
|
|
371
372
|
})(OrderStatuses || (OrderStatuses = {}));
|
|
372
373
|
export const OrderStatusCheck = true;
|
|
373
374
|
export var CardStatus;
|